CN107995070B - IPOE-based networking control method and device and BRAS - Google Patents

IPOE-based networking control method and device and BRAS Download PDF

Info

Publication number
CN107995070B
CN107995070B CN201711169509.9A CN201711169509A CN107995070B CN 107995070 B CN107995070 B CN 107995070B CN 201711169509 A CN201711169509 A CN 201711169509A CN 107995070 B CN107995070 B CN 107995070B
Authority
CN
China
Prior art keywords
user terminal
dhcp request
address
access address
session record
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
CN201711169509.9A
Other languages
Chinese (zh)
Other versions
CN107995070A (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 Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711169509.9A priority Critical patent/CN107995070B/en
Publication of CN107995070A publication Critical patent/CN107995070A/en
Application granted granted Critical
Publication of CN107995070B publication Critical patent/CN107995070B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • 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]

Abstract

The disclosure provides a networking control method, device and BRAS based on IPOE; the method is applied to the BRAS, and comprises the following steps: if receiving DHCP request initiated by user terminal, judging whether user terminal has roaming; if yes, deleting the session record before the user terminal roams; and sending a NAK message to the user terminal to trigger the user terminal to initiate the next DHCP request again for networking. The method and the device can improve the speed of roaming networking, thereby improving the internet surfing experience of the user.

Description

IPOE-based networking control method and device and BRAS
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a networking control method and apparatus based on an IPOE, and a BRAS.
Background
A BRAS (Broadband Remote Access Server) is an Access gateway facing Broadband network application; the BRAS is located at an edge layer of a backbone network, can complete data access of an IP (Internet Protocol, Protocol for interconnection between networks)/ATM (Asynchronous Transfer Mode) network of a user bandwidth, and can realize applications such as broadband Internet access of commercial buildings and residential quarters.
In an IPOE (IP over ethernet, internet protocol over ethernet) based network, a BRAS is generally used to control the internet access behavior of a user terminal, such as authentication, charging, and management of user terminal access; when the user terminal roams across gateways, the user terminal re-initiates a DHCP request, and the BRAS receives the request and allocates an internet access address for the user terminal so as to enable the user terminal to be networked; however, in this process, relevant information carried in a DHCP (Dynamic Host Configuration Protocol) request message conflicts with a session record of the user terminal before roaming, and the user terminal does not know the relevant information, so that the user terminal can only passively wait for a DHCP request processing result and actively initiate a DHCP request again, which increases time consumption for roaming networking and makes networking speed slower.
Disclosure of Invention
In view of this, an object of the present disclosure is to provide a networking control method and apparatus based on an IPOE, and a BRAS, so as to improve the speed of roaming networking, thereby improving the internet experience of a user.
In order to achieve the above purpose, the technical scheme adopted by the disclosure is as follows:
in a first aspect, the present disclosure provides an IPOE-based networking control method, which is applied to a BRAS, and includes: if receiving DHCP request initiated by user terminal, judging whether user terminal is roaming; if yes, deleting the session record before the user terminal roams; and sending a NAK message to the user terminal to trigger the user terminal to initiate the next DHCP request again for networking.
In a second aspect, the present disclosure provides an IPOE-based networking control apparatus, the apparatus being provided to a BRAS, the apparatus comprising: the judging module is used for judging whether the user terminal roams or not if receiving a DHCP request initiated by the user terminal; the session record deleting module is used for deleting the session record before the roaming of the user terminal if the user terminal roams; and the sending module is used for sending a NAK message to the user terminal so as to trigger the user terminal to initiate the next DHCP request again for networking.
In a third aspect, the disclosed embodiments provide a BRAS, 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 above-mentioned method.
In a fourth aspect, the disclosed embodiments provide 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 above-described method.
According to the networking control method and device based on the IPOE, the BRAS and the machine readable storage medium, after the fact that the user terminal roams is determined, the session record before the user terminal roams is deleted, and a NAK message is sent to the user terminal so as to trigger the user terminal to initiate a DHCP request again for networking. In the method, when the user terminal roams, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending the NAK message, so that the session record before the user terminal roams is deleted, the initiated DHCP request can successfully complete networking, the speed of roaming networking is improved, and the internet surfing experience of the user is improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
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 or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an application environment of a networking control method based on IPOE according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of a method for controlling networking based on IPOE according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another IPOE-based networking control method provided by an embodiment of the present disclosure;
FIG. 4 is a flowchart of another IPOE-based networking control method provided by an embodiment of the present disclosure;
FIG. 5 is a flowchart of another IPOE-based networking control method provided by an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an IPOE-based networked control device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a BRAS according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by one of ordinary skill in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Referring to fig. 1, a schematic diagram of an application environment of an IPOE-based networking control method is shown; the BRAS is an access gateway facing the broadband network application; as a bridge between the broadband access network and the backbone network, BRAS is used to provide basic access means and management functions of the broadband access network. The BRAS mainly comprises an IPOE module and a DHCP module.
When a user terminal is networked, a DHCP request message needs to be initiated, and the message is sent to a BRAS through access equipment LSW and RELAY equipment RELAY; after the IPOE module and the DHCP module in the BRAS carry out authentication, IP address allocation, session activation and other processing on the request, an ACK message is generated; the ACK message is sent to the user terminal through RELAY and LSW, and the user terminal can be networked after receiving the ACK message.
Based on the networking mode, when the user terminal roams across the gateway, the DHCP request message needs to be initiated again; as shown in fig. 1, when the user terminal roams from area a to area B, the access device is converted by LSW1 to LSW 2; because LSW1 is connected to port1 port of RELAY, LSW2 is connected to port2 port of RELAY, and the port of RELAY receiving the DHCP request message is changed; therefore, the relevant information carried in the current DHCP request message conflicts with the session record before the user terminal roams; in this case, the BRAS deletes the session record before the user terminal roams, and waits for the user terminal to initiate the DHCP request message again before performing normal processing on the request, so that the user terminal is networked.
However, the user terminal does not know that the initiated DHCP request message is not processed normally, and usually, the user terminal can initiate the DHCP request message again only when the user terminal does not receive the ACK message within a set time period, or the user terminal is triggered to initiate the DHCP request message again; the networking mode of initiating the DHCP request message for many times causes the problem of low networking speed when the user terminal roams.
Aiming at the problem that the networking speed is low when the user terminal roams, the embodiment of the disclosure provides a networking control method and device based on IPOE, a BRAS and a machine readable storage medium; the technology can be applied to BRAS, especially to BRAS in access networking with three-layer IPOE authentication, and can be implemented by adopting related software or hardware, which is described by the following embodiments.
In one embodiment, refer to the flowchart of a method for IPOE-based networking control shown in FIG. 2; the method is applied to BRAS, and comprises the following steps:
step S202, if receiving DHCP request initiated by user terminal, judging whether user terminal is roaming;
the DHCP request usually carries transmission path information of the DHCP request, for example, an IP address of an access device of the user terminal, a port identifier of a relay device into which the DHCP request is transmitted, and the like; the BRAS can judge whether the user terminal roams through the transmission path information; for example, as in fig. 1, when the user terminal is in area a, the access device is LSW1, and the port identifier of the DHCP request incoming to RELAY is port 1; when the user terminal is in the area B, the access device is LSW2, and the port identifier of the DHCP request incoming RELAY is port 2; LSW1 and LSW2 are different access devices, so the IP addresses are also different; when the IP address of the access device and/or the port identifier of the relay device into which the DHCP request is transmitted, which are carried in the DHCP request, are not consistent with the history record in the session record of the user terminal, it may be determined that the user terminal has roamed.
For another example, an identification field may be further set in the DHCP request, and when the IP address of the access device and/or the port identification of the DHCP request incoming to the relay device changes, the identification is performed through the field, and the BRAS determines whether the user terminal roams by looking at the content of the identification field.
Step S204, if the user terminal roams, deleting the session record before the user terminal roams; wherein the SESSION record may also be referred to as SESSION.
Step S206, sending NAK (Negative acknowledgement) message to the user terminal to trigger the user terminal to initiate the next DHCP request again for networking.
When the user terminal roams, the session record before roaming can not support the user terminal to continue surfing the internet in the region after roaming; the BRAS needs to send a NAK message to notify the user terminal to initiate a next DHCP request for networking, so as to avoid a conflict between related information carried in the next DHCP request message and a session record of the user terminal before roaming, and delete the session record of the user terminal before roaming before sending the NAK message.
The NAK message can make the user terminal know that the DHCP request is not normally processed in time and the networking fails, at this time, the user terminal can immediately initiate the DHCP request again, and the DHCP request can be normally processed because the session record before the user terminal roams is deleted, so that the user terminal is networked.
If the user terminal initiates a DHCP request, the BRAS does not confirm whether the user terminal roams, which easily causes the conflict between the relevant information carried in the DHCP request message and the session record before the user terminal roams, and at this time, the BRAS discards the DHCP request and the user terminal does not know, so that the user terminal can only passively wait for the DHCP request processing result and actively initiates the DHCP request again, which increases the time consumption of roaming networking and makes the networking speed slower.
In the networking control method based on the IPOE, when the fact that the user terminal roams is determined, the session record before the user terminal roams is deleted, and a NAK message is sent to the user terminal to trigger the user terminal to initiate a DHCP request again to carry out networking. In the method, when the user terminal roams, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending the NAK message, so that the session record before the user terminal roams is deleted, the initiated DHCP request can successfully complete networking, the speed of roaming networking is improved, and the internet surfing experience of the user is improved.
In another embodiment, an example of determining whether the user terminal roams by using an access address carried by a DHCP request is described; referring to FIG. 3, a flow diagram of another IPOE-based networking control method is shown; in this embodiment, the step of determining whether the user terminal roams specifically includes: extracting a first access address in a giaddr field of the DHCP request; searching a second access address corresponding to the saved session record of the user terminal; comparing whether the first access address is the same as the second access address; if not, determining that the user terminal roams.
As shown in fig. 3, the method specifically includes the following steps:
step S302, if a DHCP request initiated by a user terminal is received, extracting a first access address in a giaddr field of the DHCP request; the giaddr field is generally used to store the IP address of the first DHCP relay that the DHCP client passes through after sending the request message.
A DHCP request initiated by a user terminal is generally forwarded to a relay device by an access device of the user terminal; after the relay equipment receives a DHCP request, a first access address is added in a giaddr field of the DHCP request; the first access address may be a port identifier of the relay device that receives the DHCP request, or an IP address of the access device; and after the addition is completed, the DHCP request is forwarded to the BRAS.
Under the condition that the network structure is fixed, the port identifier of the received DHCP request and the IP address of the access device are in a one-to-one correspondence relationship, and the relay device may add only one of the port identifier and the IP address in the giaddr field, or may add the port identifier and the IP address at the same time.
Step S304, searching a second access address corresponding to the saved session record of the user terminal;
when the user terminal accesses the internet in the area before the user terminal initiates the DHCP request in step S302, the session record corresponding to the user terminal stores the second access address of accessing the internet in the area; the second access address may be carried when the user terminal initiates a DHCP request before the area networking, an IP address of the access device, and/or a port identifier of the relay device, where the DHCP request is received.
Step S306, comparing whether the first access address is the same as the second access address; if yes, go to step S308; if not, executing step S310;
step S308, determining that the user terminal does not roam, processing the DHCP request according to a normal program, allocating an IP address for the mobile terminal, and setting a DHCP lease corresponding to the IP address, so that the user terminal is networked.
Step S310, determining that the user terminal roams, and deleting the session record before the user terminal roams;
step S312, deleting the saved DHCP lease information of the user terminal;
the DHCP lease information is the DHCP lease information corresponding to the IP address used when the user terminal surfs the internet in the area before roaming; deleting the DHCP lease information can release the IP address for other user terminals to use, thereby improving the utilization rate of the IP address; of course, the lease information may be automatically deleted when the lease time for the DHCP lease information expires.
Step S314, sending NAK message to the user terminal to trigger the user terminal to initiate the next DHCP request again for networking.
The networking control method based on the IPOE determines whether the user terminal roams or not by comparing a first access address in a giaddr field of a DHCP request with a second access address corresponding to a session record; if no roaming occurs, processing the DHCP request according to a normal program to enable the user terminal to be networked; if the roaming happens, deleting the session record and the DHCP lease information before the user terminal roams, and sending a NAK message to the user terminal to trigger the user terminal to initiate a DHCP request again for network connection. In the method, the BRAS determines whether the user terminal roams through an access address; when roaming happens, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending a NAK message, and because the session record before the user terminal roams is deleted, the network connection can be successfully completed by the initiated DHCP request again, so that the speed of roaming network connection is improved, and the internet access experience of a user is improved.
In another embodiment, the second access address is obtained in the form of searching an address field check table; referring to FIG. 4, a flow diagram of another IPOE-based networking control method is shown; in this embodiment, the step of searching for the second access address corresponding to the saved session record of the user terminal specifically includes: acquiring an identifier of a user terminal carried in a DHCP request; searching an address field check table by using the identifier of the user terminal to obtain a second access address corresponding to the session record of the user terminal; wherein, the address field checking table comprises: and the identifier of the user terminal and a second access address corresponding to the session record of the user terminal.
As shown in fig. 4, the method specifically includes the following steps:
step S402, if a DHCP request initiated by a user terminal is received, extracting a first access address in a giaddr field of the DHCP request;
step S404, obtaining the identification of the user terminal carried in the DHCP request;
the identification of the user terminal can be the content in the Client MAC address field in the DHCP request, namely the MAC address of the user terminal;
step S406, searching an address field check table by using the identifier of the user terminal to obtain a second access address corresponding to the session record of the user terminal; wherein, the address field checking table comprises: and the identifier of the user terminal and a second access address corresponding to the session record of the user terminal.
TABLE 1
Indexing Identification of a user terminal Second access address
1 MAC1 IP1
2 MAC2 IP2
As shown in table 1 above, an address field check table; generally, when a user terminal initiates a DHCP request in the roaming situation, a BRAS allocates an IP address for internet access to the user terminal; after the user terminal has been allocated the IP address, BRAS adds the identification of the user terminal and the current access address to the above-mentioned address field check table; the current access address includes: the IP address of the access device connected with the user terminal, or the port identification of the DHCP request sent by the user terminal is received; the port identification is the port identification of the relay device connected with the BRAS. In table 1, the identifier of the user terminal is taken as the MAC address of the user terminal, and the second access address is taken as the IP address of the access device.
TABLE 2
Indexing Identification of a user terminal Second access address Aging time
1 MAC1 IP1 T1
2 MAC2 IP2 T2
Another address field check table is shown in table 2 above; in order to update the address field check table in time, the check table in table 2 also sets the aging time corresponding to the entry where the identifier of the user terminal is located; if the aging time is up, deleting the table entry (i.e. the table entry corresponding to the aging time). The aging time may be a set specific value, or may be lease time in DHCP lease information corresponding to each entry. If the set aging time is longer than the lease time corresponding to the entry, the entry is also typically deleted from the check table when the DHCP lease reaches the lease time.
Step S408, comparing whether the first access address is the same as the second access address; if yes, go to step S410; if not, go to step S412;
step S410, determining that the user terminal does not roam, processing the DHCP request according to a normal program, allocating an IP address for the mobile terminal, and setting a DHCP lease corresponding to the IP address, so that the user terminal is networked.
Step S412, determining that the user terminal roams, and deleting the session record before the user terminal roams;
step S414, deleting the saved DHCP lease information of the user terminal;
step S416, sending NAK message to the user terminal to trigger the user terminal to initiate the next DHCP request again for networking.
According to the networking control method based on the IPOE, the address field check table is searched through the identification of the user terminal, and therefore a second access address corresponding to the session record is obtained; comparing the second access address with the first access address in the giaddr field of the DHCP request to determine whether the user terminal roams; if the roaming happens, deleting the session record and the DHCP lease information before the user terminal roams, and sending a NAK message to the user terminal to trigger the user terminal to initiate a DHCP request again for network connection. In the method, the BRAS obtains the access address by searching an address field check table, thereby determining whether the user terminal roams; when roaming happens, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending a NAK message, and because the session record before the user terminal roams is deleted, the network connection can be successfully completed by the initiated DHCP request again, so that the speed of roaming network connection is improved, and the internet access experience of a user is improved.
In another embodiment, the BRAS comprises an IPOE module and a DHCP module; referring to FIG. 5, a flow diagram of another IPOE-based networking control method is shown; the method comprises the following steps:
step S502, the user terminal initiates a DHCP request;
step S504: the user terminal forwards the DHCP request to the relay equipment through the access equipment;
step S506: the relay equipment adds a first access address in a giaddr field of the DHCP request;
step S508: the relay equipment forwards the DHCP request to the IPOE module;
step S510: an IPOE module in the BRAS initiates authentication to a server;
step S512: the server returns an authentication passing signal;
step S514: the IPOE module sends the DHCP request to the DHCP module;
step S516: the DHCP module judges whether the user terminal roams; if yes, go to step S518; if not, go to step S522;
step S518, the DHCP module deletes the session record, the address field check table and the DHCP lease information before the user terminal roams;
step S520: the DHCP module sends a NAK message to the user terminal so that the user terminal continues to execute S502;
step S522, the DHCP module distributes an IP address for the user terminal according to the giaddr field in the DHCP request;
step S524: the DHCP module sends an OFFER message to the IPOE module;
step S526: the IPOE module searches the session record of the user terminal;
step S528: the IPOE module forwards the OFFER message to the user terminal through the relay equipment and the access equipment;
step S530: a user terminal initiates a DHCP REQUEST;
step S532: the user terminal forwards the DHCP REQUEST to the DHCP module through the access equipment, the relay equipment and the IPOE module;
step S534: the DHCP module generates DHCP lease information;
step S536: the DHCP module responds an ACK message to the IPOE module;
step S538: the IPOE module confirms whether the MAC address of the user terminal in the ACK message is consistent with the MAC address in the session record or not; saving the IP address in the ACK message into a session record, and activating the session record;
step S540: and the IPOE module forwards the ACK message to the user terminal through the relay equipment and the access equipment so as to enable the user terminal to be networked.
The networking control method based on the IPOE is achieved by the interaction of a user terminal, access equipment, relay equipment, an IPOE module, a DHCP module and a server; the user terminal initiates a DHCP request, and after the server passes the authentication, the DHCP module can judge whether the user terminal roams; if the user terminal roams, the DHCP module deletes the session record, the address field check table and the DHCP lease information before the user terminal roams, and sends a NAK message to the user terminal so that the user terminal initiates a DHCP request again; if the user terminal does not roam, the DHCP module allocates an IP address for the user terminal, searches a session record, generates DHCP lease information and the like, so that the user terminal is networked; in the method, when the user terminal roams, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending the NAK message, so that the session record before the user terminal roams is deleted, the initiated DHCP request can successfully complete networking, the speed of roaming networking is improved, and the internet surfing experience of the user is improved.
In another embodiment, referring to fig. 6, a schematic structural diagram of an IPOE-based networking control device, which is provided on a BRAS, is shown, and the device includes the following parts:
a judging module 60, configured to judge whether the ue roams if a DHCP request initiated by the ue is received;
a session record deleting module 61, configured to delete a session record before roaming of the user terminal if the user terminal roams;
and a sending module 62, configured to send a NAK message to the user terminal to trigger the user terminal to initiate a next DHCP request again for networking.
The networking control device based on the IPOE provided by the embodiment of the disclosure deletes the session record before the roaming of the user terminal after the roaming of the user terminal is determined, and sends the NAK message to the user terminal to trigger the user terminal to initiate the DHCP request again for networking. In the method, when the user terminal roams, the session record before the user terminal roams is deleted, and the user terminal is triggered to initiate the DHCP request again in a mode of sending the NAK message, so that the session record before the user terminal roams is deleted, the initiated DHCP request can successfully complete networking, the speed of roaming networking is improved, and the internet surfing experience of the user is improved.
The judging module is further configured to: extracting a first access address in a giaddr field of the DHCP request; searching a second access address corresponding to the saved session record of the user terminal; comparing whether the first access address is the same as the second access address; if not, determining that the user terminal roams.
The judging module is further configured to: acquiring an identifier of a user terminal carried in a DHCP request; searching an address field check table by using the identifier of the user terminal to obtain a second access address corresponding to the session record of the user terminal; wherein, the address field checking table comprises: and the identifier of the user terminal and a second access address corresponding to the session record of the user terminal.
The above-mentioned device still includes: an adding module, configured to add, if an IP address has been allocated to the user terminal, an identifier of the user terminal and a current access address to the address field check table, where the current access address includes: the IP address of the access device connected with the user terminal, or the port identification of the DHCP request sent by the user terminal is received; the port identification is the port identification of the relay device connected with the BRAS.
The above-mentioned device still includes: the setting module is used for setting the aging time corresponding to the table item where the identifier of the user terminal is located; and the table item deleting module is used for deleting the table item if the aging time is up.
The above-mentioned device still includes: and the lease information deleting module is used for deleting the saved DHCP lease information of the user terminal if the user terminal roams.
Referring to fig. 7, a schematic diagram of a BRAS is shown; the device comprises a memory 100 and a processor 101; wherein the memory 100 is used for storing one or more computer instructions, which are executed by the processor to implement the aforementioned IPOE-based networking control method, which may include one or more of the above synchronization methods.
Further, the network management device shown in fig. 7 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103 and the memory 100 are connected through the bus 102.
The Memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present disclosure may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
Further, the disclosed embodiments also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned IPOE-based networking control method, which may include one or more of the above synchronization methods.
The IPOE-based networking control device and BRAS provided in the embodiments of the present disclosure implement the same principles and produce the same technical effects as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no apparatus embodiment is mentioned in part.
It should be noted that the above method embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present disclosure may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (12)

1. A networking control method based on IPOE, characterized in that the method is applied to BRAS, and the method comprises:
if receiving a DHCP request initiated by a user terminal, judging whether the user terminal roams;
if yes, deleting the session record before the user terminal roams;
sending a NAK message to the user terminal to trigger the user terminal to initiate a next DHCP request again for networking;
the step of judging whether the user terminal roams comprises:
extracting a first access address in a giaddr field of the DHCP request;
searching a second access address corresponding to the saved session record of the user terminal;
comparing whether the first access address is the same as the second access address;
if not, determining that the user terminal roams.
2. The method according to claim 1, wherein the step of searching for the second access address corresponding to the saved session record of the user terminal comprises:
acquiring the identifier of the user terminal carried in the DHCP request;
searching an address field check table by using the identifier of the user terminal to obtain a second access address corresponding to the session record of the user terminal; wherein, the address field checking table comprises: and the identifier of the user terminal and a second access address corresponding to the session record of the user terminal.
3. The method of claim 2, further comprising:
if the user terminal is allocated with the IP address, adding the identifier of the user terminal and the current access address to the address field check table, wherein the current access address comprises: the IP address of the access device connected with the user terminal, or the port identification of the DHCP request sent by the user terminal is received; the port identification is the port identification of the relay equipment connected with the BRAS.
4. The method of claim 3, further comprising: setting aging time corresponding to the list item where the identifier of the user terminal is located;
and if the aging time is up, deleting the table entry.
5. The method of claim 1, further comprising:
and if the user terminal roams, deleting the saved DHCP lease information of the user terminal.
6. An IPOE-based networked control device, wherein the device is located on a BRAS, the device comprising:
the judging module is used for judging whether the user terminal roams or not if receiving a DHCP request initiated by the user terminal;
a session record deleting module, configured to delete a session record before roaming of the user terminal if the user terminal roams;
a sending module, configured to send a NAK message to the user terminal to trigger the user terminal to initiate a next DHCP request again for networking;
the judging module is further configured to:
extracting a first access address in a giaddr field of the DHCP request;
searching a second access address corresponding to the saved session record of the user terminal;
comparing whether the first access address is the same as the second access address;
if not, determining that the user terminal roams.
7. The apparatus of claim 6, wherein the determining module is further configured to:
acquiring the identifier of the user terminal carried in the DHCP request;
searching an address field check table by using the identifier of the user terminal to obtain a second access address corresponding to the session record of the user terminal; wherein, the address field checking table comprises: and the identifier of the user terminal and a second access address corresponding to the session record of the user terminal.
8. The apparatus of claim 7, further comprising:
an adding module, configured to add, if an IP address has been allocated to the user terminal, an identifier of the user terminal and a current access address to the address field check table, where the current access address includes: the IP address of the access device connected with the user terminal, or the port identification of the DHCP request sent by the user terminal is received; the port identification is the port identification of the relay equipment connected with the BRAS.
9. The apparatus of claim 8, further comprising:
the setting module is used for setting the aging time corresponding to the table item where the identifier of the user terminal is located;
and the table item deleting module is used for deleting the table item if the aging time is up.
10. The apparatus of claim 6, further comprising:
and the lease information deleting module is used for deleting the saved DHCP lease information of the user terminal if the user terminal roams.
11. A BRAS 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 to 5.
12. 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 to 5.
CN201711169509.9A 2017-11-21 2017-11-21 IPOE-based networking control method and device and BRAS Active CN107995070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711169509.9A CN107995070B (en) 2017-11-21 2017-11-21 IPOE-based networking control method and device and BRAS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711169509.9A CN107995070B (en) 2017-11-21 2017-11-21 IPOE-based networking control method and device and BRAS

Publications (2)

Publication Number Publication Date
CN107995070A CN107995070A (en) 2018-05-04
CN107995070B true CN107995070B (en) 2020-12-08

Family

ID=62032487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711169509.9A Active CN107995070B (en) 2017-11-21 2017-11-21 IPOE-based networking control method and device and BRAS

Country Status (1)

Country Link
CN (1) CN107995070B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712411B (en) * 2018-05-11 2021-02-02 南京铁道职业技术学院 IPoE roaming session control method
CN109067788B (en) * 2018-09-21 2020-06-09 新华三技术有限公司 Access authentication method and device
CN109861892A (en) * 2019-03-28 2019-06-07 新华三技术有限公司 A kind of terminal roaming method and device
CN109768906B (en) * 2019-03-29 2021-04-27 新华三技术有限公司 Private subnet line configuration method and device
WO2021135795A1 (en) * 2019-12-30 2021-07-08 中兴通讯股份有限公司 Message processing method, relay device, system, and storage medium
CN113473576B (en) * 2020-03-31 2023-04-07 深圳市万普拉斯科技有限公司 Roaming networking processing method and device, mobile terminal and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312456A (en) * 2007-05-21 2008-11-26 华为技术有限公司 Method and system for survival monitoring session of subscriber
CN101651682A (en) * 2009-09-15 2010-02-17 杭州华三通信技术有限公司 Method, system and device of security certificate
CN101959164A (en) * 2009-07-17 2011-01-26 中兴通讯股份有限公司 Method and system for deleting redundant information of home policy and charging rule function
CN102075904A (en) * 2010-12-24 2011-05-25 杭州华三通信技术有限公司 Method and device for preventing re-authentication of roaming user
US9553861B1 (en) * 2014-03-28 2017-01-24 Juniper Networks, Inc. Systems and methods for managing access to services provided by wireline service providers
CN106357486A (en) * 2016-08-18 2017-01-25 杭州迪普科技有限公司 Access method and device for network users

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312456A (en) * 2007-05-21 2008-11-26 华为技术有限公司 Method and system for survival monitoring session of subscriber
CN101959164A (en) * 2009-07-17 2011-01-26 中兴通讯股份有限公司 Method and system for deleting redundant information of home policy and charging rule function
CN101651682A (en) * 2009-09-15 2010-02-17 杭州华三通信技术有限公司 Method, system and device of security certificate
CN102075904A (en) * 2010-12-24 2011-05-25 杭州华三通信技术有限公司 Method and device for preventing re-authentication of roaming user
US9553861B1 (en) * 2014-03-28 2017-01-24 Juniper Networks, Inc. Systems and methods for managing access to services provided by wireline service providers
CN106357486A (en) * 2016-08-18 2017-01-25 杭州迪普科技有限公司 Access method and device for network users

Also Published As

Publication number Publication date
CN107995070A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN107995070B (en) IPOE-based networking control method and device and BRAS
US9894599B2 (en) Method and apparatus for WLAN initial link setup
CN109314701B (en) Network path probing using available network connections
US11212226B2 (en) Data processing method and apparatus, and device
US20030026230A1 (en) Proxy duplicate address detection for dynamic address allocation
JP4765796B2 (en) Router device
JPH1155350A (en) Multi-nw terminal connection communication control method and device therefor
WO2012040736A2 (en) System and method for maintaining privacy in a wireless network
RU2013106254A (en) METHOD OF TERMINAL ACCESS AUTHENTICATION AND EQUIPMENT LOCATED IN THE SUBSCRIBER'S TERRITORY
US20200275258A1 (en) Communications method and apparatus
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
JP5039975B2 (en) Gateway device
US11902380B1 (en) Liveness detection for an authenticated client session
US11412355B2 (en) Method, device, and system for optimizing short message signaling
CN103987098A (en) Method and system for switching between IPV4 network and IPV6 network
US11405275B2 (en) Automatically determining mesh network role of network device
WO2018006684A1 (en) Message processing method and device, and router
CN105940737B (en) Service control system, user device, and service control method
CN108989173B (en) Message transmission method and device
CN107453998B (en) Method and device for transmitting message
CN102655473A (en) Communication method, equipment and system
CN111953608B (en) Neighbor table entry management method and device, electronic equipment and storage medium
CN107547322B (en) Message processing method and device and broadband remote access server BRAS
JP6175806B2 (en) COMMUNICATION INFORMATION DETECTING DEVICE, COMMUNICATION INFORMATION DETECTING METHOD, AND PROGRAM
CN106686662B (en) Method and system for realizing MME pool

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
TR01 Transfer of patent right

Effective date of registration: 20230529

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right