CN111447293A - User statistical method, device, equipment and machine readable storage medium - Google Patents

User statistical method, device, equipment and machine readable storage medium Download PDF

Info

Publication number
CN111447293A
CN111447293A CN202010132837.7A CN202010132837A CN111447293A CN 111447293 A CN111447293 A CN 111447293A CN 202010132837 A CN202010132837 A CN 202010132837A CN 111447293 A CN111447293 A CN 111447293A
Authority
CN
China
Prior art keywords
dhcpv6
message
summary information
information
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010132837.7A
Other languages
Chinese (zh)
Other versions
CN111447293B (en
Inventor
王阳
廖以顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010132837.7A priority Critical patent/CN111447293B/en
Publication of CN111447293A publication Critical patent/CN111447293A/en
Application granted granted Critical
Publication of CN111447293B publication Critical patent/CN111447293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure provides a user statistical method, apparatus, device and machine-readable storage medium, which are applied to a CPE device, and the method includes: generating user information according to the user with the acquired address; generating summary information according to the generated user information; and packaging the summary information into a DHCPv6 renewal message which is used for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment so that the BRAS equipment acquires the summary information according to the received DHCPv6 renewal message. According to the technical scheme, after the CPE equipment counts and summarizes the user information, the user information is added to the DHCPv6 continuation message and reported to the BRAS equipment along with the continuation message, so that the BRAS equipment obtains summary information, and the BRAS equipment counts accurate summary user information including the number of users according to the information reported by each CPE equipment, so that the problem that the user number cannot be counted at the BRAS equipment is solved.

Description

User statistical method, device, equipment and machine readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a user statistics method, apparatus, device, and machine-readable storage medium.
Background
DHCP (Dynamic Host Configuration Protocol) is a network Protocol of a local area network, and means that a server controls an ip (Internet Protocol) address range, and a client can automatically obtain an ip address and a subnet mask allocated by the server when logging in the server. The options field in the DHCP message can be used to store control information and parameters that are not defined in the common protocol, and the content of the options field generally includes three parts, i.e., type, length, and value. The DHCPv6 is a network protocol used to configure IP addresses, IP prefixes, and/or other configurations required by IPv6 hosts operating on an IPv6 network.
IPv6 is an abbreviation of english (Internet Protocol Version 6, Version 6 of the Internet Protocol), and is a next-generation IP Protocol used to replace IPv4, because the biggest problem of IPv4 is that network address resources are limited, which severely restricts the application and development of the Internet, and the use of IPv6 not only solves the problem of the number of network address resources, but also solves the obstacle that various access devices access the Internet.
A BRAS (Broadband Remote Access Server) is a novel Access gateway facing Broadband Network application, which is located at an edge layer of a backbone Network, and can complete data Access of an IP/ATM (asynchronous transfer Mode) Network of a user bandwidth, thereby implementing Broadband Internet Access of a terminal, IP VPN (Virtual Private Network) Service based on IPSec (Internet security Protocol), building an enterprise Intranet, and supporting ISP (Internet Service Provider) to wholesale services to users.
The method comprises the steps that a CPE (Customer Premise Equipment), the CPE Equipment authenticates and acquires a prefix on BRAS Equipment through a DHCPv6 message in a PD mode, the BRAS Equipment distributes a PD prefix of CPE Equipment IPv6 after the authentication is passed, and the CPE Equipment distributes an IPv6 address to a connected terminal according to the acquired prefix.
The PD (Prefix deletion) is Prefix binding information created by the DHCPv6 server for the allocated Prefix, and information such as IPv6 Prefix, client DUID, IAID, valid time, preferred time, lease expiration time, and IPv6 address of the client applying for the Prefix is recorded in the Prefix binding information.
In the current networking environment, if an operator needs to count the number of users for reference in subsequent business activities, the operator is difficult to directly count the number of users through BRAS equipment, and needs to count the number of terminals under CPE equipment one by one, thereby causing high collection and maintenance costs.
Disclosure of Invention
In view of the above, the present disclosure provides a user counting method, a user counting device, an electronic device, and a machine-readable storage medium, so as to solve the problem that the user count cannot be counted in the BRAS device.
The specific technical scheme is as follows:
the present disclosure provides a user statistical method, applied to CPE equipment, the method including: generating user information according to the user with the acquired address; generating summary information according to the generated user information; and packaging the summary information into a DHCPv6 renewal message which is used for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment so that the BRAS equipment acquires the summary information according to the received DHCPv6 renewal message.
As a technical solution, the encapsulating the summary information into a DHCPv6 offer continuation message for sending to the BRAS device includes: and defining a new option field of the DHCPv6 continuation message, wherein the type of the new option field is different from that of the existing option field, and the value of the new option field is summary information.
As a technical solution, the summary information includes the number of users and/or user information.
As a technical solution, the encapsulating the summary information to the DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: and according to a preset DHCPv6 renewal period, packaging the summary information into a DHCPv6 renewal message for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment.
As a technical solution, the encapsulating the summary information to the DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: if the user information changes, the summary information is encapsulated to a DHCPv6 renewal message which is used for being sent to the BRAS equipment, and the DHCPv6 renewal message encapsulated with the summary information is sent to the BRAS equipment.
The present disclosure also provides a user statistical method, which is applied to BRAS equipment, and the method includes: receiving a DHCPv6 continuous offer message sent by CPE equipment; analyzing the DHCPv6 successive offer message and acquiring summary information; the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address; the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
The present disclosure also provides a user statistic device, which is applied to CPE equipment, and the device includes: the information module is used for generating user information according to the user with the acquired address and generating summary information according to the generated user information; and the message module is used for packaging the summary information into a DHCPv6 appointment continuing message which is used for being sent to the BRAS equipment, and sending the DHCPv6 appointment continuing message packaged with the summary information to the BRAS equipment so that the BRAS equipment can obtain the summary information according to the received DHCPv6 appointment continuing message.
The present disclosure also provides a user statistics device, which is applied to BRAS equipment, and the device includes:
a receiving module, configured to receive a DHCPv6 successive offer message sent by a CPE device; the analysis module is used for analyzing the DHCPv6 successive offer message and acquiring summary information; the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address; the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
The present disclosure also provides an electronic device including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement the foregoing user statistical method.
The present disclosure also provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned user statistics method.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
the CPE counts and summarizes the user information, adds the user information to a DHCPv6 successive offer message, reports the successive offer message to the BRAS equipment so that the BRAS equipment obtains summary information, and the BRAS equipment counts accurate summarized user information including the number of users according to the information reported by the CPE, so that the problem that the user number cannot be counted by the BRAS equipment is solved. By using the technical scheme provided by the disclosure, the CPE equipment completes DHCPv6 contract continuation while reporting the summary information, thereby saving bandwidth flow.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
FIG. 1 is a flow chart of a user statistics method in one embodiment of the present disclosure;
FIG. 2 is a flow chart of a user statistics method in one embodiment of the present disclosure;
FIG. 3 is a block diagram of a user statistics apparatus in one embodiment of the present disclosure;
FIG. 4 is a block diagram of a user statistics apparatus in one embodiment of the present disclosure;
FIG. 5 is a hardware block diagram of an electronic device in one embodiment of the disclosure;
fig. 6 is a CPE networking of BRAS access authentication according to the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
Fig. 6 shows a typical CPE networking of BRAS access authentication, where a CPE device may be any device having a function of allocating an IPv6 address to a lower device, such as a routing device, the CPE device acquires a prefix from the BRAS device through a DHCPv6 message in a PD manner, after the authentication is passed, the BRAS device allocates a PD prefix of IPv6 to the CPE device, and the CPE device allocates a corresponding IPv6 address to a lower terminal according to the acquired prefix. AAA (Authentication, Authorization, Accounting, Authentication, Authorization, Accounting) is a server program capable of processing a user access request, and the AAA server provides Authentication Authorization and account services, and mainly aims to manage the user access to a network server and provide services for the user with access rights.
In the current networking environment, if an operator needs to count the number of users for reference in subsequent business activities, the operator is difficult to directly count the number of users through BRAS equipment, and needs to count the number of terminals under CPE equipment one by one, thereby causing high collection and maintenance costs.
There is a need for a method that enables an operator to count the number of subscribers on the BRAS equipment side.
In view of the above, the present disclosure provides a user counting method, a user counting device, an electronic device, and a machine-readable storage medium, so as to solve the problem that the user count cannot be counted in the BRAS device.
The specific technical scheme is as follows.
In an actual network system, one or more CPE devices may be directly connected to a BRAS device or indirectly connected to the BRAS device through other network devices, such as switches, and any CPE device assigned with a PD prefix under the BRAS device may submit relevant information through the BRAS device using the technical scheme provided by the present disclosure, so that the BRAS device can count the number of users.
In one embodiment, the present disclosure provides a user statistics method applied to CPE equipment, the method including: generating user information according to the user with the acquired address; generating summary information according to the generated user information; and packaging the summary information into a DHCPv6 renewal message which is used for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment so that the BRAS equipment acquires the summary information according to the received DHCPv6 renewal message.
Specifically, as shown in fig. 1, the present embodiment includes the steps of:
in step S11, user information is generated based on the user who has acquired the address.
After acquiring the PD prefix, the CPE device allocates an IPv6 address to the next-stage device, where the next-stage device in this embodiment may be a terminal device, and the terminal device is directly or indirectly (e.g., through a switch) connected to the CPE device, or may be another network device to which an IPv6 address needs to be allocated.
In this embodiment, taking the terminal device as an example, when the CPE device allocates an IPv6 address to the terminal device according to the PD prefix and the request message of the terminal device, or when the terminal device that has been allocated an IPv6 address is disconnected and disconnected from the network, the CPE device updates the user table, records the user information, and matches the user information in the user table with the user that has currently acquired the address.
In step S12, summary information is generated based on the generated user information.
The CPE device generates summary information based on the user information according to specific needs, where the summary information may include the number of next-stage devices to which the CPE device allocates the IPv6 address, or may include other user information of the next-stage devices to which the CPE device allocates the IPv6 address, such as lease information, IPv6 addresses, and MAC addresses, and the summary information may be any information that corresponds to each next-stage device one by one, so that the number of the next-stage devices can be accurately counted.
Step S13, the summary information is packaged into the DHCPv6 offer message sent to the BRAS device.
The summary information generated in the step S12 is encapsulated in the DHCPv6 renewal message, and since the CPE device sends the DHCPv6 message to the BRAS device before the lease expires in order to maintain the validity of the PD prefix, the summary information is encapsulated in the DHCPv6 renewal message, and it is not necessary to generate a message specifically for the summary information, and the report of the summary information is completed while the PD prefix is renewed, thereby saving bandwidth traffic.
And step S14, sending the DHCPv6 continuous offer message encapsulated with the summary information to the BRAS equipment.
The method comprises the steps of sending a DHCPv6 renewal message with summary information to BRAS equipment, enabling the BRAS equipment to obtain the summary information according to the received DHCPv6 renewal message while completing the renewal, enabling the BRAS equipment to know the number of next-stage equipment of the current CPE equipment according to the summary information, and enabling the BRAS equipment to obtain the summary information reported by all the off-hook CPE equipment and count the total number of users under the BRAS equipment.
The work of counting the number of users on the BRAS equipment is completed through the summary information reported by the CPE equipment.
In one embodiment, the encapsulating the summarized information into a DHCPv6 offer message for sending to the BRAS device includes: and defining a new option field of the DHCPv6 continuation message, wherein the type of the new option field is different from that of the existing option field, and the value of the new option field is summary information.
According to the requirement, an option field is redefined, wherein the option field generally comprises three parts of type, length and value, and specifically comprises an optional format as follows:
type, Type of option field, an optional definition is 999, which represents summary information, 999 can be any other value, but different from the types of other option fields in the prior art;
l ength, the length of the option field, which can be defined as required, for example, when the summary information is the number of users, the length here can be shorter, and when the summary information includes lease information, IPv6 address, MAC address, etc., the length here needs to be longer to satisfy the information record as the basis;
value: the value of the option field, here 2001::1/1-2-3, 2001::2/1-2-4 …, etc., is a list of ipv6 addresses and macs of users on the carrying CPE device.
In one embodiment, the encapsulating the summary information into a DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: and according to a preset DHCPv6 renewal period, packaging the summary information into a DHCPv6 renewal message for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment.
The lease period of the CPE device is generally a determinable value in a networking scenario, and when the CPE device sends a DHCPv6 lease message to the BRAS device for lease renewal, the summary information generated according to the current user information is reported to the BRAS device, so that reporting is completed under the condition that the number of protocol interactions is not changed.
In one embodiment, the encapsulating the summary information into a DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: if the user information changes, the summary information is encapsulated to a DHCPv6 renewal message which is used for being sent to the BRAS equipment, and the DHCPv6 renewal message encapsulated with the summary information is sent to the BRAS equipment.
And when the next-stage equipment of the CPE equipment is on line or off line, the user information is changed, the CPE equipment reports the updated summary information to the BRAS equipment through the instantly generated DHCPv6 renewal message, and meanwhile, renewal of renewal and lease are completed, so that the user number counted by the BRAS equipment can be updated in real time.
In one embodiment, the present disclosure provides a user statistics method applied to a BRAS device, where the method includes: receiving a DHCPv6 continuous offer message sent by CPE equipment; analyzing the DHCPv6 successive offer message and acquiring summary information; the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address; the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
Specifically, as shown in fig. 2, the present embodiment includes the steps of:
s21, receiving the DHCPv6 successive offer message sent by the CPE equipment.
Receiving a DHCPv6 successive message sent by CPE equipment, wherein the DHCPv6 successive message is generated after the CPE equipment encapsulates summary information in the message, the summary information is generated by the CPE equipment according to the generated user information, and the user information is generated by the CPE equipment according to a user of a local acquired address.
S22, analyzing DHCPv6 successive offer message and obtaining summary information.
Analyzing the received DHCPv6 renewal message, obtaining summary information while renewing the CPE equipment, and counting the number of users under the current BRAS equipment networking according to the summary information reported by each CPE equipment.
In one embodiment, the present disclosure provides a user statistic device, applied to CPE equipment, the device including: an information module 31, configured to generate user information according to the user who has obtained the address, and generate summary information according to the generated user information; the message module 32 is configured to encapsulate the summary information into a DHCPv6 appointment continuation message for sending to the BRAS device, and send a DHCPv6 appointment continuation message encapsulated with the summary information to the BRAS device, so that the BRAS device obtains the summary information according to the received DHCPv6 appointment continuation message.
As shown in fig. 3, the following is detailed:
and the information module generates user information according to the user with the address acquired.
After acquiring the PD prefix, the CPE device allocates an IPv6 address to the next-stage device, where the next-stage device in this embodiment may be a terminal device, and the terminal device is directly or indirectly (e.g., through a switch) connected to the CPE device, or may be another network device to which an IPv6 address needs to be allocated.
In this embodiment, taking the terminal device as an example, when the CPE device allocates an IPv6 address to the terminal device according to the PD prefix and the request message of the terminal device, or when the terminal device that has been allocated an IPv6 address is disconnected and disconnected from the network, the CPE device updates the user table, records the user information, and matches the user information in the user table with the user that has currently acquired the address.
And the information module generates summary information according to the generated user information.
The CPE device generates summary information based on the user information according to specific needs, where the summary information may include the number of next-stage devices to which the CPE device allocates the IPv6 address, or may include other user information of the next-stage devices to which the CPE device allocates the IPv6 address, such as lease information, IPv6 addresses, and MAC addresses, and the summary information may be any information that corresponds to each next-stage device one by one, so that the number of the next-stage devices can be accurately counted.
And the message module encapsulates the summary information to a DHCPv6 continuous offer message which is sent to the BRAS equipment.
The generated summary information is encapsulated into a DHCPv6 renewal message, and as the CPE equipment sends a DHCPv6 message to the BRAS equipment before the lease expires in order to maintain the validity of the PD prefix, the summary information is encapsulated into a DHCPv6 renewal message, a message is not required to be specially generated for the summary information, the report of the summary information is completed while the PD prefix is renewed, and the bandwidth flow is saved.
And the message module sends the DHCPv6 continuous offer message encapsulated with the summary information to the BRAS equipment.
The method comprises the steps of sending a DHCPv6 renewal message with summary information to BRAS equipment, enabling the BRAS equipment to obtain the summary information according to the received DHCPv6 renewal message while completing the renewal, enabling the BRAS equipment to know the number of next-stage equipment of the current CPE equipment according to the summary information, and enabling the BRAS equipment to obtain the summary information reported by all the off-hook CPE equipment and count the total number of users under the BRAS equipment.
The work of counting the number of users on the BRAS equipment is completed through the summary information reported by the CPE equipment.
In one embodiment, the encapsulating the summarized information into a DHCPv6 offer message for sending to the BRAS device includes: and defining a new option field of the DHCPv6 continuation message, wherein the type of the new option field is different from that of the existing option field, and the value of the new option field is summary information.
According to the requirement, an option field is redefined, wherein the option field generally comprises three parts of type, length and value, and specifically comprises an optional format as follows:
type, Type of option field, an optional definition is 999, which represents summary information, 999 can be any other value, but different from the types of other option fields in the prior art;
l ength, the length of the option field, which can be defined as required, for example, when the summary information is the number of users, the length here can be shorter, and when the summary information includes lease information, IPv6 address, MAC address, etc., the length here needs to be longer to satisfy the information record as the basis;
value: the value of the option field, here 2001::1/1-2-3, 2001::2/1-2-4 …, etc., is a list of ipv6 addresses and macs of users on the carrying CPE device.
In one embodiment, the encapsulating the summary information into a DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: and according to a preset DHCPv6 renewal period, packaging the summary information into a DHCPv6 renewal message for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment.
The lease period of the CPE device is generally a determinable value in a networking scenario, and when the CPE device sends a DHCPv6 lease message to the BRAS device for lease renewal, the summary information generated according to the current user information is reported to the BRAS device, so that reporting is completed under the condition that the number of protocol interactions is not changed.
In one embodiment, the encapsulating the summary information into a DHCPv6 appointment continuing message for sending to the BRAS device, and sending the DHCPv6 appointment continuing message encapsulated with the summary information to the BRAS device includes: if the user information changes, the summary information is encapsulated to a DHCPv6 renewal message which is used for being sent to the BRAS equipment, and the DHCPv6 renewal message encapsulated with the summary information is sent to the BRAS equipment.
And when the next-stage equipment of the CPE equipment is on line or off line, the user information is changed, the CPE equipment reports the updated summary information to the BRAS equipment through the instantly generated DHCPv6 renewal message, and meanwhile, renewal of renewal and lease are completed, so that the user number counted by the BRAS equipment can be updated in real time.
In one embodiment, the present disclosure provides a subscriber statistics apparatus, which is applied to a BRAS device, and the apparatus includes: a receiving module 41, configured to receive a DHCPv6 successive offer message sent by a CPE device; the analysis module 42 is used for analyzing the DHCPv6 renewal message and acquiring summary information; the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address; the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
As shown in fig. 4, the following is detailed:
the receiving module receives a DHCPv6 continuous offer message sent by the CPE equipment.
Receiving a DHCPv6 successive message sent by CPE equipment, wherein the DHCPv6 successive message is generated after the CPE equipment encapsulates summary information in the message, the summary information is generated by the CPE equipment according to the generated user information, and the user information is generated by the CPE equipment according to a user of a local acquired address.
The analysis module analyzes the DHCPv6 renewal message and acquires the summary information.
Analyzing the received DHCPv6 renewal message, obtaining summary information while renewing the CPE equipment, and counting the number of users under the current BRAS equipment networking according to the summary information reported by each CPE equipment.
In one embodiment, the present disclosure provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the foregoing user statistics method, and from a hardware level, a hardware architecture diagram may be shown in fig. 5.
In one embodiment, the present disclosure provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned user statistics.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A user statistics method, applied to a CPE device, the method comprising:
generating user information according to the user with the acquired address;
generating summary information according to the generated user information;
and packaging the summary information into a DHCPv6 renewal message which is used for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment so that the BRAS equipment acquires the summary information according to the received DHCPv6 renewal message.
2. The method of claim 1, wherein encapsulating the summarized information into a DHCPv6 offer message for transmission to the BRAS device comprises:
and defining a new option field of the DHCPv6 continuation message, wherein the type of the new option field is different from that of the existing option field, and the value of the new option field is summary information.
3. The method of claim 1, wherein the aggregated information comprises a number of users and/or user information.
4. The method of claim 1, wherein the encapsulating the summary information into a DHCPv6 appointment continuation message for sending to the BRAS device, and sending the DHCPv6 appointment continuation message encapsulated with the summary information to the BRAS device comprises:
and according to a preset DHCPv6 renewal period, packaging the summary information into a DHCPv6 renewal message for sending to the BRAS equipment, and sending the DHCPv6 renewal message packaged with the summary information to the BRAS equipment.
5. The method of claim 1, wherein the encapsulating the summary information into a DHCPv6 appointment continuation message for sending to the BRAS device, and sending the DHCPv6 appointment continuation message encapsulated with the summary information to the BRAS device comprises:
if the user information changes, the summary information is encapsulated to a DHCPv6 renewal message which is used for being sent to the BRAS equipment, and the DHCPv6 renewal message encapsulated with the summary information is sent to the BRAS equipment.
6. A user statistical method is applied to BRAS equipment, and the method comprises the following steps:
receiving a DHCPv6 continuous offer message sent by CPE equipment;
analyzing the DHCPv6 successive offer message and acquiring summary information;
the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address;
the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
7. A user statistics apparatus, applied to a CPE device, the apparatus comprising:
the information module is used for generating user information according to the user with the acquired address and generating summary information according to the generated user information;
and the message module is used for packaging the summary information into a DHCPv6 appointment continuing message which is used for being sent to the BRAS equipment, and sending the DHCPv6 appointment continuing message packaged with the summary information to the BRAS equipment so that the BRAS equipment can obtain the summary information according to the received DHCPv6 appointment continuing message.
8. A subscriber statistics apparatus, applied to a BRAS device, the apparatus comprising:
a receiving module, configured to receive a DHCPv6 successive offer message sent by a CPE device;
the analysis module is used for analyzing the DHCPv6 successive offer message and acquiring summary information;
the summary information is generated by CPE equipment according to generated user information, and the user information is generated according to a user of the CPE equipment which has locally obtained an address;
the DHCPv6 continue message is generated after CPE equipment encapsulates summary information in the message.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any of claims 1-6.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1-6.
CN202010132837.7A 2020-02-29 2020-02-29 User statistical method, device, equipment and machine readable storage medium Active CN111447293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010132837.7A CN111447293B (en) 2020-02-29 2020-02-29 User statistical method, device, equipment and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010132837.7A CN111447293B (en) 2020-02-29 2020-02-29 User statistical method, device, equipment and machine readable storage medium

Publications (2)

Publication Number Publication Date
CN111447293A true CN111447293A (en) 2020-07-24
CN111447293B CN111447293B (en) 2022-05-27

Family

ID=71653979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132837.7A Active CN111447293B (en) 2020-02-29 2020-02-29 User statistical method, device, equipment and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN111447293B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202883A (en) * 2020-09-30 2021-01-08 中国联合网络通信集团有限公司 Method, device and system for managing user terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684468A (en) * 2004-04-15 2005-10-19 华为技术有限公司 Statistic method for multimedium broadcast and group broadcast service user number
KR20060126175A (en) * 2005-06-03 2006-12-07 하나로텔레콤 주식회사 Method of voice over internet protocol modem, and system thereof
CN101765114A (en) * 2010-01-18 2010-06-30 杭州华三通信技术有限公司 Method, system and equipment for controlling wireless user access
CN101808018A (en) * 2010-03-26 2010-08-18 杭州华三通信技术有限公司 Method and device for detecting quantity of access terminals
CN103763149A (en) * 2013-12-27 2014-04-30 北京集奥聚合科技有限公司 Real-time statistical method for network user number
CN108429824A (en) * 2018-05-31 2018-08-21 新华三技术有限公司 A kind of address distribution method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684468A (en) * 2004-04-15 2005-10-19 华为技术有限公司 Statistic method for multimedium broadcast and group broadcast service user number
WO2005101735A1 (en) * 2004-04-15 2005-10-27 Huawei Technologies Co., Ltd A method for counting the number of multimedia broadcasting multicast service users
KR20060126175A (en) * 2005-06-03 2006-12-07 하나로텔레콤 주식회사 Method of voice over internet protocol modem, and system thereof
CN101765114A (en) * 2010-01-18 2010-06-30 杭州华三通信技术有限公司 Method, system and equipment for controlling wireless user access
CN101808018A (en) * 2010-03-26 2010-08-18 杭州华三通信技术有限公司 Method and device for detecting quantity of access terminals
CN103763149A (en) * 2013-12-27 2014-04-30 北京集奥聚合科技有限公司 Real-time statistical method for network user number
CN108429824A (en) * 2018-05-31 2018-08-21 新华三技术有限公司 A kind of address distribution method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202883A (en) * 2020-09-30 2021-01-08 中国联合网络通信集团有限公司 Method, device and system for managing user terminal equipment

Also Published As

Publication number Publication date
CN111447293B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US11528598B2 (en) Identifying and controlling remote user equipment on network side
US6885871B2 (en) Method for the addressing of a mobile terminal
EP2439903B1 (en) Method for providing information, home gateway and home network system
WO2003056751A1 (en) Method, mobile telecommunication network, and node for authenticating an originator of a data transfer
JP2004104800A (en) Method of allocating ip address to terminal in code division multiple access system
US20040128379A1 (en) Collecting standard interval metrics using a randomized collection period
CN101355489B (en) User management method based on dynamic host configuration protocol prefix proxy
JP2006505161A (en) Methods for collecting user network usage data
CN104601743A (en) IP (internet protocol) forwarding IPoE (IP over Ethernet) dual-stack user access control method and equipment based on Ethernet
CN111478879B (en) DHCP (dynamic host configuration protocol) continuation method and device, electronic equipment and machine-readable storage medium
EP3016423A1 (en) Network safety monitoring method and system
CN111447293B (en) User statistical method, device, equipment and machine readable storage medium
CN1921496B (en) Method for DHCP client terminal to identifying DHCP server
CA2502063C (en) Methods and apparatus for home address management at home agent for nai based mobile nodes
CN111478788B (en) Abnormal offline recovery method, device and equipment and machine-readable storage medium
EP3982598A1 (en) Method and apparatus for sending and receiving message, and communication system
CN106850871B (en) Method for realizing DHCP server with single physical network card and multiple VLANs
CN103141072A (en) Ip address obtaining method and network access device
CN108880971A (en) The expansion method and device of virtual broadband remote access server vBRAS resource pool
CN111478939A (en) Abnormal offline recovery method, device and equipment and machine-readable storage medium
CN107547324B (en) MAC address issuing method, device, equipment and machine readable storage medium
CN111628963A (en) Anti-attack method, device, equipment and machine readable storage medium
CN111314503B (en) Method and device for recovering IPoE user table
WO2014067157A1 (en) Method and network device for receiving packet
EP4358476A1 (en) Message processing method, apparatus and system, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant