CN113285922B - Table item processing method and device - Google Patents

Table item processing method and device Download PDF

Info

Publication number
CN113285922B
CN113285922B CN202110435756.9A CN202110435756A CN113285922B CN 113285922 B CN113285922 B CN 113285922B CN 202110435756 A CN202110435756 A CN 202110435756A CN 113285922 B CN113285922 B CN 113285922B
Authority
CN
China
Prior art keywords
account
group
working mode
letters
association table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110435756.9A
Other languages
Chinese (zh)
Other versions
CN113285922A (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 CN202110435756.9A priority Critical patent/CN113285922B/en
Publication of CN113285922A publication Critical patent/CN113285922A/en
Application granted granted Critical
Publication of CN113285922B publication Critical patent/CN113285922B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/104Grouping of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a table item processing method and a device, the method is applied to BRAS equipment, and the method comprises the following steps: after the working mode of the account is switched from a first working mode which does not distinguish the case of letters in the account to a second working mode which distinguishes the case of letters in the account, aiming at any account association table item generated in the first working mode, a first account and a second account corresponding to the first account are obtained from the account association table item; grouping the second account according to real account included in the second account; re-associating an account ID for the second account in each group, taking a real account included in the second account in the group as a third account, and re-generating a new account association table item; and updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group to the account ID re-associated with the second account. The application can improve user experience.

Description

Table item processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a table entry.
Background
Under the scene that the existing user terminal accesses a network through a Broadband Remote Access Server (BRAS) device, when the initial working mode of the BRAS device in the network is a working mode which does not distinguish the case of letters in an account, aiming at any user terminal which passes authentication, the BRAS device can uniformly convert the letters in the real account of the user terminal into capital letters or lower case letters, and judge whether an account related table item comprising the converted account exists locally; and if not, the BRAS device associates an account Identifier (ID) and a set speed limit value with the converted account, generates an account association table including the converted account, the account ID and the speed limit value, generates a terminal information table including information such as the MAC address and the IP address of the user terminal, and associates the account ID with the terminal information table.
If the determination result is yes, the BRAS device generates a terminal information table including information such as a Media Access Control (MAC) address and an Internet Protocol (IP) address of the user terminal, and associates the account ID with the terminal information table.
Therefore, when receiving a data message hitting any one of the locally generated terminal information tables, the BRAS device searches the speed limit value corresponding to the account ID in the locally generated account association table entry according to the account ID associated with the hit terminal information table, and processes the data message according to the searched speed limit value and the local forwarding table, so as to realize the common speed limit of the data message from the user terminal corresponding to the same account ID.
However, once the BRAS device receives an operation mode switching instruction input by an administrator to instruct the BRAS device to switch its operation mode to an operation mode that distinguishes the case of letters in an account, the BRAS device switches its operation mode from an initial operation mode to an operation mode that distinguishes the case of letters in an account, and the BRAS device cannot know how many accounts are associated with each account ID, and cannot generate a new account association table entry.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a table entry processing method and device.
According to a first aspect of the embodiments of the present application, there is provided an entry processing method, where the method is applied to a BRAS device, and the method includes:
after switching a working mode of the BRAS equipment from a first working mode which does not distinguish the capital and small cases of letters in an account to a second working mode which distinguishes the capital and small cases of letters in the account according to a first working mode switching instruction input by an administrator, acquiring a first account and a corresponding second account from any account association table item generated by the BRAS equipment in the first working mode, wherein the second account comprises a real account and terminal identification information of a corresponding authenticated user terminal, and the first account is obtained after the BRAS equipment converts the letters in the real account included in the second account into capital letters or lower-case letters in the first working mode;
grouping the second account numbers according to real account numbers included in the second account numbers, wherein the second account numbers with the same real account numbers are in the same group;
for the second account in each group, re-associating an account ID for the second account in the group, taking the real account included in the second account in the group as a third account, and re-generating an account association table including the third account, the account ID re-associated with the second account in the group, the speed limit value in the account association table, and the account association table of the second account in the group;
and updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode to the account ID re-associated with the second account.
According to a second aspect of the embodiments of the present application, there is provided an entry processing apparatus, which is applied to a BRAS device, and the apparatus includes:
a first obtaining module, configured to, after switching a working mode of a BRAS device from a first working mode in which cases and cases of letters in accounts are not distinguished to a second working mode in which cases and cases of letters in accounts are distinguished according to a first working mode switching instruction input by an administrator, obtain, from an account association table, a first account and a corresponding second account for any account association table generated by the BRAS device in the first working mode, where the second account includes a real account and terminal identification information of a user terminal that has passed authentication, and the first account is obtained by the BRAS device in the first working mode by converting letters in the real account included in the second account into capital letters or lower-case letters;
the first grouping module is used for grouping the second account numbers according to real account numbers included in the second account numbers, wherein the second account numbers with the same real account numbers are in the same group;
a first generation module, configured to re-associate an account ID with the second account in each group for the second account in each group, use a real account included in the second account in the group as a third account, and regenerate an account association table including the third account, the account ID re-associated with the second account in the group, a speed limit value in the account association table, and an account association table of the second account in the group;
and the first updating module is used for updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode into the account ID re-associated with the second account.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, in a scenario that a user terminal accesses a network through a BRAS device, when a BRAS device in the network switches an initial working mode, in which the case of letters in an account is not distinguished, to a working mode, in which the case of letters in the account is distinguished, from the working mode, in which the case of letters in the account is distinguished, all user terminals accessing the network are not forced to go offline any more, but a new account association table entry is regenerated according to an account association table entry generated in the initial working mode, and an account ID in a terminal information table of the user terminal corresponding to an account including a real account of the user terminal is updated according to the account ID in the new account association table entry, so that the BRAS device can normally process related data messages, and further improves user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of an entry processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an entry processing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Next, examples of the present application will be described in detail.
An embodiment of the present application provides a table entry processing method, which is applied to a BRAS device, and as shown in fig. 1, the method may include the following steps:
and S11, when the working mode of the BRAS device is switched from a first working mode which does not distinguish the case of letters in the account to a second working mode which distinguishes the case of letters in the account according to a first working mode switching instruction input by an administrator, aiming at any account association table item generated by the BRAS device in the first working mode, acquiring a first account and a second account corresponding to the first account from the account association table item.
In this step, the second account includes the real account and the terminal identification information of the corresponding authenticated user terminal; the first account is obtained by converting letters in a real account included in the second account into capital letters or lower-case letters in the BRAS device in the first working mode.
And S12, grouping the second account according to the real account included in the second account.
In this step, the second account numbers with the same real account number are included in the same group.
S13, for the second account in each group, re-associating an account identification ID for the second account in the group, taking the real account included in the second account in the group as a third account, and re-generating an account association table entry including the third account, the account ID re-associated with the second account in the group, the speed limit value in the account association table entry, and the account association table entry of the second account in the group;
s14, updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first operating mode to the account ID re-associated with the second account.
It should be noted that, in this embodiment of the present application, after the BRAS device is initially powered on, the BRAS device defaults to operate in a first operating mode in which case and case of letters in an account are not distinguished, and in the first operating mode, once a certain user terminal successfully accesses a network where the BRAS is located by using a real account, the BRAS device uniformly converts letters in the real account of the user terminal into capital letters or lowercase letters; then, the BRAS device determines whether an account association table entry including the converted account (i.e., the first account, which may also be referred to as a storage account) exists locally; and if not, the BRAS equipment associates an account ID and a set speed limit value with the converted account, generates an account association table item comprising the storage account, the account ID, the speed limit value and a second account of the user terminal, generates a terminal information table comprising information such as an MAC address and an IP address of the user terminal, and associates the account ID with the terminal information table.
Here, the second account of the user terminal may include a real account of the user terminal and terminal identification information of the user terminal, which may be presented in a combined manner, and the like, and may also be referred to as a source account; the terminal identification information of the user terminal may be a MAC address of the user terminal, may also be an IP address, and of course, may also be other information, which is not listed here.
And if so, adding the second account of the user terminal to the source account corresponding to the storage account in the account association table entry comprising the storage account by the BRAS device, generating a terminal information table comprising information such as the MAC address and the IP address of the user terminal, and associating the account ID with the terminal information table.
When the subsequent BRAS equipment receives the data message which hits any one of the locally generated terminal information tables, the speed limit processing can be carried out on the data message according to the account number association table entry, the terminal information table, the associated account number ID and the local forwarding table generated in the first working mode, so that the common speed limit of the data message from the user terminal corresponding to the same account number ID is realized. Specifically, the BRAS device searches for a speed limit value corresponding to the account ID in a locally generated account association table entry according to the account ID associated with the hit terminal information table, and processes the data message according to the searched speed limit value and a local forwarding table. Here, the specific processing procedure of the BRAS device on the data packet is the prior art, and is not described in detail here.
Once the BRAS device receives a first operation mode switching instruction input by an administrator to instruct the BRAS device to switch its operation mode to a second operation mode that distinguishes upper and lower cases of letters in an account, the BRAS device switches its operation mode from the first operation mode to the second operation mode, and then the BRAS device starts to perform the step S11.
Specifically, in the step S12, when grouping the second accounts, the BRAS device divides the second accounts, which have the same real account, into the same group, and then divides each of the remaining second accounts into one group separately.
It should be noted that after the BRAS device executes the step S14, the processing flow of the data packet executed subsequently is the same as that in the prior art, and is not described in detail here.
Further, in the embodiment of the present application, in order to save the entry resource of the BRAS device, the BRAS device may perform the following operations:
the first operation is: and after regenerating the account ID which comprises the third account, the second account in the group and is re-associated, the speed limit value in the account associated table entry and the account associated table entry of the second account in the group, the BRAS equipment deletes the account associated table entry.
The second operation is as follows: and after the corresponding account number association table entries are regenerated for the second account numbers in all the groups, the BRAS equipment deletes all the account number association table entries generated by the BRAS equipment in the first working mode.
Furthermore, in this embodiment of the present application, in order to implement that the BRAS device does not need to log off the relevant user terminal when switching the working mode of the BRAS device from the second working mode back to the first working mode, so as to improve user experience, the BRAS device may further perform the following operations:
when the working mode of the BRAS equipment is switched from the second working mode to the first working mode according to a first working mode switching instruction input by an administrator, acquiring a third account and a corresponding second account from all regenerated account association table entries;
uniformly converting all the obtained letters in the third account into capital letters or lower-case letters;
grouping corresponding second account numbers according to all converted third account numbers, wherein the second account numbers corresponding to the same converted third account numbers are in the same group;
for the second account in each group, re-associating an account identification ID for the second account in the group, taking the converted third account corresponding to the second account in the group as a fourth account, and re-generating an account association table entry comprising the fourth account, the account ID re-associated with the second account in the group, the speed limit value and the account association table entry of the second account in the group;
and updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode into the account ID re-associated with the second account.
In this operation flow, after the BRAS device has regenerated the corresponding account association table entry for the second account in all the groups, all the account association table entries regenerated by the BRAS device in the second operating mode are deleted, so as to save the table entry resources of the BRAS device.
The following describes the table entry processing method in detail with reference to specific embodiments.
Suppose that the user terminal 1 and the user terminal 2 both use the real account AAA to successfully access the network where the BRAS device is located, the MAC addresses of the user terminal 1 and the user terminal 2 are MAC1 and MAC2, respectively, and the IP addresses of the user terminal 1 and the user terminal 2 are IP1 and IP2, respectively. Assuming that the user terminal 3 and the user terminal 4 both use the real account aaA to successfully access the network, the MAC addresses of the user terminal 3 and the user terminal 4 are MAC3 and MAC4, respectively, and the IP addresses of the user terminal 3 and the user terminal 4 are IP3 and IP4, respectively; it is assumed that the access sequence of the 4 ues successfully accessing the network is ue 1, ue 2, ue 3 and ue 4, respectively. Here, at least one switching device may be connected between the 4 subscriber terminals and the BRAS device.
For the BRAS equipment, assuming that the current working mode is a first working mode which does not distinguish the case of letters in the account, aiming at the user terminal 1, the BRAS equipment uniformly converts the letters in the AAA into lower case letters to obtain a storage account AAA; then, the BRAS equipment judges whether an account number association table item comprising aaa exists locally; if the result of the judgment is negative, the BRAS device associates an account ID (for example, ID1) with a set speed limit value (for example, car1) for AAA, and generates an account association table entry (as shown in the following table one) including AAA, the account ID, the speed limit value and the source account (for example, AAA-MAC1) of the user terminal; and generating a terminal information table including information such as MAC1 and IP1, and associating ID1 with the terminal information table.
Index Storing account numbers Account ID Speed limit value Source account number
1 aaa ID1 car1 AAA-MAC1
Watch 1
Aiming at the user terminal 2, the BRAS equipment uniformly converts letters in AAA into lower case letters to obtain a storage account AAA; then, the BRAS equipment judges whether an account number association table item comprising aaa exists locally; since the account association table entry including AAA exists in the locally generated account association table entry, the determination result is yes, in this case, the BRAS device adds the source account (for example, AAA-MAC2) of the user terminal to the source account corresponding to AAA, as shown in table two below; and generates a terminal information table including information such as MAC2 and IP2, and associates ID1 with the terminal information table.
Figure BDA0003033089900000091
Watch two
It should be noted that, for the user terminal 3 and the user terminal 4, since the BRAS device uniformly converts letters in the real account numbers of the user terminal 3 and the user terminal 4 into lower-case letters, both the storage account numbers aaa are obtained, the subsequent related processing flow is the same as the processing flow of the user terminal 2, and the finally obtained account number association table entry can be shown in table three below.
Figure BDA0003033089900000092
Watch III
Next, at a certain moment, assuming that the BRAS device receives a first working mode switching instruction which is input by an administrator and used for instructing the BRAS device to switch the self working mode to a second working mode which distinguishes the case of a letter in an account, at this moment, the BRAS device switches the self working mode from the first working mode to the second working mode; and the BRAS equipment acquires aaa and a source account corresponding to aaa from table three; and then, grouping the acquired source account numbers according to real account numbers included in the acquired source account numbers.
Specifically, the BRAS device divides AAA-MAC1 and AAA-MAC2 into the same group, and divides AAA-MAC3 and AAA-MAC4 into the same group.
And then, the BRAS equipment re-associates an account ID for the source account in each group aiming at the source account in each group, takes the real account included in the source account in the group as a storage account, and re-generates an account ID including the storage account, the re-associated account ID of the second account in the group, the speed limit value in the table three and the account association table entry of the source account in the group.
Assume that for the group AAA-MAC1 and AAA-MAC2, the BRAS device re-associates an ID2 for the source account in the group; assuming that the BRAS device re-associates ID3 with the source account in the group of AaA-MAC3 and AaA-MAC4, the account association table entry re-generated by the BRAS device can be as shown in table four below.
Figure BDA0003033089900000101
Watch four
The BRAS equipment also updates the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each source account in each group generated in the first working mode to the account ID re-associated with the source account, so that the BRAS equipment can perform speed limit processing on the data message hitting any terminal information table according to the re-generated account association table entry, the terminal information table, the associated latest account ID and the local forwarding table in the second working mode.
For example, taking AAA-MAC1 as an example, the BRAS device updates the account ID (i.e., ID1) associated with the terminal information table of the user terminal 1 generated in the first operation mode to ID 2.
Subsequently, assuming that the BRAS device receives a second operation mode switching command input by the administrator to instruct the BRAS device to switch its operation mode to the first operation mode, the BRAS device obtains the storage accounts (i.e., AAA and AAA) and their corresponding source accounts (i.e., AAA-MAC1, AAA-MAC2, AAA-MAC3 and AAA-MAC4) from the table four; uniformly converting letters in AAA and AaA into lower case letters to obtain a new storage account AAA; since only one account is stored, the BRAS device divides AAA-MAC1, AAA-MAC2, AAA-MAC3 and AAA-MAC4 into a group, re-associates an account ID (e.g., ID4) with the source account in the group, and re-generates an account association table entry as shown in table five below.
Figure BDA0003033089900000111
Watch five
Then, the BRAS device also updates the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each source account in the table five regenerated in the first working mode to the account ID re-associated with the source account, so that the BRAS device performs speed-limiting processing on the data message hitting any terminal information table according to the regenerated account association table entry, the terminal information table, the associated latest account ID thereof and the local forwarding table in the first working mode.
According to the technical scheme, in the embodiment of the application, when the user terminal accesses the network through the BRAS device, when the BRAS device in the network switches the working mode of the BRAS device from the initial working mode which does not distinguish the case of the letter in the account to the working mode which distinguishes the case of the letter in the account, all the user terminals accessing the network are not forced to be offline, but new account association table items are regenerated according to the account association table items generated in the initial working mode, and the account ID in the terminal information table of the user terminal corresponding to the account including the real account of the user terminal is updated according to the account ID in the new account association table items.
Based on the same inventive concept, the present application further provides an entry processing apparatus, where the apparatus is applied to a BRAS device, and a schematic structural diagram of the apparatus is shown in fig. 2, and the apparatus specifically includes:
a first obtaining module 21, configured to, after switching a working mode of a BRAS device from a first working mode in which cases of letters in accounts are not distinguished to a second working mode in which cases of letters in accounts are distinguished according to a first working mode switching instruction input by an administrator, obtain, from an account association table, a first account and a corresponding second account for any account association table entry generated by the BRAS device in the first working mode, where the second account includes a real account and terminal identification information of a user terminal that has passed authentication, and the first account is obtained by the BRAS device in the first working mode by converting letters in the real account included in the second account into capital letters or lower-case letters;
a first grouping module 22, configured to group the second account numbers according to real account numbers included in the second account numbers, where the second account numbers that are the same in real account numbers are in the same group;
a first generating module 23, configured to re-associate an account ID for the second account in each group, take the real account included in the second account in the group as a third account, and re-generate an account association table including the third account, the account ID re-associated with the second account in the group, the speed limit value in the account association table, and the account association table of the second account in the group;
a first updating module 24, configured to update the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first operating mode to the account ID re-associated with the second account.
Preferably, the apparatus further comprises:
a second obtaining module (not shown in fig. 2), configured to obtain a third account and a second account corresponding to the third account from all regenerated account association entries after the working mode of the BRAS device is switched from the second working mode to the first working mode according to a second working mode switching instruction input by the administrator;
a conversion module (not shown in fig. 2) configured to uniformly convert letters in all third account numbers acquired by the second acquisition module into capital letters or lowercase letters;
a second grouping module (not shown in fig. 2) configured to group corresponding second account numbers according to all converted third account numbers, where the second account numbers corresponding to the same converted third account numbers are in the same group;
a second generating module (not shown in fig. 2), configured to re-associate an account ID for the second account in each group, use a converted third account corresponding to the second account in the group as a fourth account, and regenerate into an account association table entry including the fourth account, the account ID re-associated with the second account in the group, the speed limit value, and the account associated with the second account in the group;
a second updating module (not shown in fig. 2), configured to update the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first operating mode to the account ID newly associated with the second account.
Preferably, the apparatus further comprises:
a first deleting module (not shown in fig. 2), configured to delete the account association entry after the first generating module 23 regenerates the account ID including the third account, the account ID re-associated with the second account in the group, the speed limit value in the account association entry, and the account association entry of the second account in the group; or,
and after the first generation module 23 has regenerated the corresponding account association table entry for the second accounts in all the groups, deleting all the account association table entries generated by the BRAS device in the first working mode.
Preferably, the apparatus further comprises:
a second deleting module (not shown in fig. 2), configured to delete all account association entries that are regenerated by the BRAS device in the second operating mode after the second generating module has regenerated corresponding account association entries for the second accounts in all groups.
Preferably, the terminal identification information included in the second account is a media access control MAC address or an internet protocol IP address.
According to the technical scheme, in the embodiment of the application, when the user terminal accesses the network through the BRAS device, when the BRAS device in the network switches the working mode of the BRAS device from the initial working mode which does not distinguish the case of the letter in the account to the working mode which distinguishes the case of the letter in the account, all the user terminals accessing the network are not forced to be offline, but new account association table items are regenerated according to the account association table items generated in the initial working mode, and the account ID in the terminal information table of the user terminal corresponding to the account including the real account of the user terminal is updated according to the account ID in the new account association table items.
An electronic device is further provided in the embodiments of the present application, as shown in fig. 3, including a processor 31 and a machine-readable storage medium 32, where the machine-readable storage medium 32 stores machine-executable instructions that can be executed by the processor 31, and the processor 31 is caused by the machine-executable instructions to: and realizing the table item processing method.
The machine-readable storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned entry processing method.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. An entry processing method is applied to a Broadband Remote Access Server (BRAS) device, and comprises the following steps:
after switching a working mode of the BRAS equipment from a first working mode which does not distinguish the capital and small cases of letters in an account to a second working mode which distinguishes the capital and small cases of letters in the account according to a first working mode switching instruction input by an administrator, acquiring a first account and a corresponding second account from any account association table item generated by the BRAS equipment in the first working mode, wherein the second account comprises a real account and terminal identification information of a corresponding authenticated user terminal, and the first account is obtained after the BRAS equipment converts the letters in the real account included in the second account into capital letters or lower-case letters in the first working mode;
grouping the second account numbers according to real account numbers included in the second account numbers, wherein the second account numbers with the same real account numbers are in the same group;
for the second account in each group, re-associating an account identification ID for the second account in the group, taking the real account included in the second account in the group as a third account, and re-generating an account association table item including the third account, the account ID re-associated with the second account in the group, the speed limit value in the account association table item and the account association table item of the second account in the group;
and updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode to the account ID re-associated with the second account.
2. The method of claim 1, further comprising:
after the working mode of the BRAS equipment is switched from the second working mode to the first working mode according to a second working mode switching instruction input by the administrator, acquiring a third account and a corresponding second account from all regenerated account association table entries;
uniformly converting all the obtained letters in the third account into capital letters or lower-case letters;
grouping corresponding second account numbers according to all converted third account numbers, wherein the second account numbers corresponding to the same converted third account numbers are in the same group;
for the second account in each group, re-associating an account identification ID for the second account in the group, taking the converted third account corresponding to the second account in the group as a fourth account, and regenerating an account association table entry comprising the fourth account, the account ID re-associated with the second account in the group, the speed limit value and the account association table entry of the second account in the group;
and updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode to the account ID re-associated with the second account.
3. The method of claim 1, further comprising:
after the account ID re-associated with the third account, the second account in the group, the speed limit value in the account associated table entry and the account associated table entry of the second account in the group are generated again, the account associated table entry is deleted; or,
and deleting all account association table entries generated by the BRAS equipment in the first working mode after the corresponding account association table entries are regenerated for the second accounts in all the groups.
4. The method of claim 2, further comprising:
and deleting all account association table entries regenerated by the BRAS equipment in the second working mode after the corresponding account association table entries are regenerated for the second accounts in all the groups.
5. The method of claim 1, wherein the terminal identification information included in the second account is a Media Access Control (MAC) address or an Internet Protocol (IP) address.
6. An entry processing apparatus, wherein the apparatus is applied to a Broadband Remote Access Server (BRAS) device, and the apparatus comprises:
a first obtaining module, configured to, after switching a working mode of a BRAS device from a first working mode in which cases and cases of letters in accounts are not distinguished to a second working mode in which cases and cases of letters in accounts are distinguished according to a first working mode switching instruction input by an administrator, obtain, from an account association table, a first account and a corresponding second account for any account association table generated by the BRAS device in the first working mode, where the second account includes a real account and terminal identification information of a user terminal that has passed authentication, and the first account is obtained by the BRAS device in the first working mode by converting letters in the real account included in the second account into capital letters or lower-case letters;
the first grouping module is used for grouping the second account numbers according to real account numbers included in the second account numbers, wherein the second account numbers with the same real account numbers are in the same group;
a first generation module, configured to re-associate an account ID for the second account in each group, regarding the second account in each group, and taking the real account included in the second account in the group as a third account, and re-generate an account ID including the third account, the re-associated account ID of the second account in the group, a speed limit value in the account association table, and an account association table of the second account in the group;
and the first updating module is used for updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode into the account ID re-associated with the second account.
7. The apparatus of claim 6, further comprising:
a second obtaining module, configured to obtain a third account and a second account corresponding to the third account from all regenerated account association entries after switching the working mode of the BRAS device from the second working mode to the first working mode according to a second working mode switching instruction input by the administrator;
the conversion module is used for uniformly converting the letters in all the third account numbers acquired by the second acquisition module into capital letters or lower case letters;
the second grouping module is used for grouping the corresponding second account numbers according to all the converted third account numbers, wherein the second account numbers corresponding to the same converted third account numbers are in the same group;
a second generation module, configured to re-associate an account ID for the second account in each group, use a converted third account corresponding to the second account in the group as a fourth account, and regenerate a list including the fourth account, the account ID re-associated with the second account in the group, the speed limit value, and the account associated with the second account in the group;
and the second updating module is used for updating the account ID associated with the terminal information table of the user terminal corresponding to the terminal identification information included in each second account in the group generated in the first working mode into the account ID re-associated with the second account.
8. The apparatus of claim 6, further comprising:
a first deleting module, configured to delete the account association entry after the first generating module regenerates the account ID including the third account, the re-associated account ID of the second account in the group, the speed limit value in the account association entry, and the account association entry of the second account in the group; or,
and deleting all account association table entries generated by the BRAS equipment in the first working mode after the first generation module regenerates the corresponding account association table entries for the second accounts in all the groups.
9. The apparatus of claim 7, further comprising:
and the second deleting module is configured to delete all account association entries regenerated by the BRAS device in the second working mode after the second generating module has regenerated the corresponding account association entries for the second accounts in all the groups.
10. The apparatus of claim 6, wherein the terminal identification information included in the second account is a Media Access Control (MAC) address or an Internet Protocol (IP) address.
CN202110435756.9A 2021-04-22 2021-04-22 Table item processing method and device Active CN113285922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110435756.9A CN113285922B (en) 2021-04-22 2021-04-22 Table item processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110435756.9A CN113285922B (en) 2021-04-22 2021-04-22 Table item processing method and device

Publications (2)

Publication Number Publication Date
CN113285922A CN113285922A (en) 2021-08-20
CN113285922B true CN113285922B (en) 2022-04-01

Family

ID=77277159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110435756.9A Active CN113285922B (en) 2021-04-22 2021-04-22 Table item processing method and device

Country Status (1)

Country Link
CN (1) CN113285922B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101199166A (en) * 2005-04-29 2008-06-11 艾利森电话股份有限公司 Operator shop selection in broadband access
CN102035867A (en) * 2009-09-29 2011-04-27 重庆旭贤科技发展有限公司 Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system
CN102170364A (en) * 2011-05-26 2011-08-31 华为技术有限公司 Multicast communication method and device for broadband remote access server
CN104283812A (en) * 2013-07-08 2015-01-14 中国电信股份有限公司 Method and system for identifying access bandwidth of user
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107911717A (en) * 2017-11-27 2018-04-13 四川金熊猫新媒体有限公司 Screen control method, apparatus and system
CN110995924A (en) * 2019-11-22 2020-04-10 维沃移动通信有限公司 Account management method and electronic equipment
CN111638982A (en) * 2020-05-27 2020-09-08 百度在线网络技术(北京)有限公司 Diversion method, diversion device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140025426A1 (en) * 2012-07-23 2014-01-23 Markus Doehring Workflow adaptation using automated model transformation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101199166A (en) * 2005-04-29 2008-06-11 艾利森电话股份有限公司 Operator shop selection in broadband access
CN102035867A (en) * 2009-09-29 2011-04-27 重庆旭贤科技发展有限公司 Multipath PPPoE (Point-to-Point Protocol over Ethernet) fusion gateway system
CN102170364A (en) * 2011-05-26 2011-08-31 华为技术有限公司 Multicast communication method and device for broadband remote access server
CN104283812A (en) * 2013-07-08 2015-01-14 中国电信股份有限公司 Method and system for identifying access bandwidth of user
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107911717A (en) * 2017-11-27 2018-04-13 四川金熊猫新媒体有限公司 Screen control method, apparatus and system
CN110995924A (en) * 2019-11-22 2020-04-10 维沃移动通信有限公司 Account management method and electronic equipment
CN111638982A (en) * 2020-05-27 2020-09-08 百度在线网络技术(北京)有限公司 Diversion method, diversion device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于广告联盟的虚拟身份画像方法研究;彭如香等;《计算机应用与软件》;20170615(第06期);全文 *

Also Published As

Publication number Publication date
CN113285922A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US20190116220A1 (en) Neighbor Discovery for IPV6 Switching Systems
CN109981493B (en) Method and device for configuring virtual machine network
US8984112B2 (en) Internet address information processing method, apparatus, and internet system
US20200220774A1 (en) Method and device for detecting network failure
CN109327395B (en) Message processing method and device
AU2014399458A1 (en) Flow Entry Configuration Method, Apparatus, and System
CN110311866B (en) Method and device for rapidly forwarding message
CN106921578B (en) Method and device for generating forwarding table item
WO2012073137A1 (en) Hash collision resolution with key compression in a mac forwarding data structure
CN107493222B (en) VXLAN message forwarding method and device
CN106031104B (en) Retransmission method, device and the equipment of data message
CN107547242B (en) The acquisition methods and device of VM configuration information
CN109525684B (en) Message forwarding method and device
CN106803809B (en) Message forwarding method and device
CN109768906B (en) Private subnet line configuration method and device
CN111711556B (en) Routing method, device, system, equipment and storage medium of virtual private network
CN107547346B (en) Message transmission method and device
CN104040964A (en) Method, device and data center network for cross-service zone communication
CN110061921B (en) Cloud platform data packet distribution method and system
WO2021135492A1 (en) Routing table entry processing method and device
CN104301446B (en) A kind of message processing method, switch device and system
CN110012118A (en) It is a kind of that the method and controller of network address translation NAT service are provided
CN109379339B (en) Portal authentication method and device
CN106878106B (en) Reachability detection method and device
JPWO2014142258A1 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, ADDRESS ALLOCATION METHOD, AND PROGRAM

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