[go: up one dir, main page]

CN108076161A - A kind of IP address management method and apparatus - Google Patents

A kind of IP address management method and apparatus Download PDF

Info

Publication number
CN108076161A
CN108076161A CN201611014145.2A CN201611014145A CN108076161A CN 108076161 A CN108076161 A CN 108076161A CN 201611014145 A CN201611014145 A CN 201611014145A CN 108076161 A CN108076161 A CN 108076161A
Authority
CN
China
Prior art keywords
address
user terminal
bras
free
standard grade
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.)
Withdrawn
Application number
CN201611014145.2A
Other languages
Chinese (zh)
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201611014145.2A priority Critical patent/CN108076161A/en
Publication of CN108076161A publication Critical patent/CN108076161A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • 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

Landscapes

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

Abstract

本发明实施例公开了一种IP地址管理方法及设备,涉及通信技术领域,可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。具体方案为:BRAS接收第一用户终端发送的下线消息;上述BRAS从该BRAS接收到上述第一用户终端发送的下线消息开始,在预置宽限时间后,将第一网际协议IP地址放入空闲地址集合,上述空闲地址集合用于为上线的用户终端提供IP地址;上述BRAS在接收到第二用户终端的上线请求后,将上述空闲地址集合中的第二IP地址分配给上述第二用户终端。本发明实施例应用于BRAS为用户终端分配IP地址的过程中。

The embodiment of the present invention discloses an IP address management method and device, which relate to the field of communication technology, can reduce the possibility of misjudgment of user terminals that execute network illegal events, and improve the accuracy of determined user terminals that execute network illegal events. sex. The specific scheme is: the BRAS receives the offline message sent by the first user terminal; the above-mentioned BRAS starts from the BRAS receiving the offline message sent by the above-mentioned first user terminal, and after a preset grace period, puts the first Internet Protocol IP address Entering an idle address set, the above-mentioned idle address set is used to provide IP addresses for online user terminals; after the above-mentioned BRAS receives the online request of the second user terminal, it allocates the second IP address in the above-mentioned idle address set to the above-mentioned second user terminal. The embodiment of the present invention is applied in the process of BRAS allocating IP addresses for user terminals.

Description

一种IP地址管理方法及设备Method and device for IP address management

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种IP地址管理方法及设备。The invention relates to the field of communication technology, in particular to an IP address management method and equipment.

背景技术Background technique

宽带远程接入服务器(英文:Broadband Remote Access Server,简称:BRAS)是一种面向宽带网络应用的新型接入网关。其中,BRAS可以为接入网络的用户终端分配网络之间互连的协议(英文:Internet Protocol,简称:IP)地址。Broadband Remote Access Server (English: Broadband Remote Access Server, BRAS for short) is a new type of access gateway oriented to broadband network applications. Wherein, the BRAS may assign a protocol (English: Internet Protocol, IP for short) address for inter-network interconnection to a user terminal accessing the network.

一般而言,BRAS为一个用户终端分配的IP地址是固定不变的,而在基于以太网点到点连接协议(英文:Point to Point Protocol over Ethernet,简称:PPPoE)的网络传输过程中,BRAS在一个PPPoE终端(即用户终端)两次上线时为该PPPoE终端分配的IP地址可能是不同的。例如,BRAS可以在PPPoE终端1上线后,从IP地址池中选择一个空闲IP地址(记为IP地址a)分配给PPPoE终端1;当PPPoE终端1下线时,BRAS则可以立即释放该IP地址a,使IP地址a处于空闲状态;随后在PPPoE终端2上线时,可以将IP地址a分配给PPPoE终端2。如此,当PPPoE终端1再次上线时,BRAS再次为PPPoE终端1分配的IP地址可能并不是上述IP地址a。Generally speaking, the IP address assigned by the BRAS to a user terminal is fixed, and in the network transmission process based on the Ethernet point-to-point connection protocol (English: Point to Point Protocol over Ethernet, PPPoE for short), the BRAS The IP addresses assigned to a PPPoE terminal (that is, user terminal) may be different when the PPPoE terminal goes online twice. For example, after PPPoE terminal 1 goes online, BRAS can select an idle IP address (recorded as IP address a) from the IP address pool and assign it to PPPoE terminal 1; when PPPoE terminal 1 goes offline, BRAS can immediately release the IP address a, make the IP address a idle; and then assign the IP address a to the PPPoE terminal 2 when the PPPoE terminal 2 goes online. In this way, when the PPPoE terminal 1 goes online again, the IP address allocated by the BRAS to the PPPoE terminal 1 again may not be the above-mentioned IP address a.

但是,存在的问题是:由于一个IP地址并不是固定分配给某一个PPPoE终端的,例如,在PPPoE终端1下线后,BRAS可以立即释放该IP地址a,并将上述IP地址a分配给PPPoE终端2;因此,如果PPPoE终端1使用IP地址a执行网络违法事件后立即下线,随后如果对执行网络违法事件的用户终端进行排查,由于IP地址a分给了PPPoE终端2,则可能确定执行网络违法事件的用户终端为PPPoE终端2。如此,则会存在对执行网络违法事件的用户终端的误判。However, there is a problem: because an IP address is not fixedly assigned to a certain PPPoE terminal, for example, after PPPoE terminal 1 goes offline, the BRAS can immediately release the IP address a and assign the above IP address a to PPPoE Terminal 2; therefore, if PPPoE terminal 1 goes offline immediately after using IP address a to carry out network violations, and then checks the user terminal that carried out network violations, since IP address a is assigned to PPPoE terminal 2, it may be determined to execute The user terminal of the network violation event is PPPoE terminal 2 . In this way, there will be a misjudgment of the user terminal performing the network illegal event.

发明内容Contents of the invention

本申请的实施例提供一种IP地址管理方法及设备,可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。Embodiments of the present application provide an IP address management method and device, which can reduce the possibility of misjudgment of user terminals that perform network violations, and improve the accuracy of the determined user terminals that perform network violations.

为达到上述目的,本申请的实施例采用如下技术方案:In order to achieve the above object, the embodiments of the present application adopt the following technical solutions:

第一方面,本申请提供一种IP地址管理方法,包括:宽带远程接入服务器BRAS接收第一用户终端发送的下线消息;该BRAS从该BRAS接收到上述第一用户终端发送的下线消息开始,在预置宽限时间后,将第一网际协议IP地址放入空闲地址集合,上述第一IP地址为该BRAS在上述第一用户终端上线时为该第一用户终端分配的IP地址,上述空闲地址集合中的IP地址用于BRAS为上线的用户终端分配IP地址。In a first aspect, the present application provides an IP address management method, including: the broadband remote access server BRAS receives the offline message sent by the first user terminal; the BRAS receives the offline message sent by the first user terminal from the BRAS At first, after a preset grace time, put the first IP address into the idle address set, the above-mentioned first IP address is the IP address allocated by the BRAS for the first user terminal when the above-mentioned first user terminal goes online, and the above-mentioned The IP addresses in the idle address set are used by the BRAS to allocate IP addresses for the online user terminals.

其中,本方案中,BRAS可以在第一用户终端下线(即接收到第一用户终端发送的下线消息)后,在预置宽限时间后,才将第一IP地址放入可以为上线的用户终端提供IP地址的空闲地址集合中,即在本方案中,第一IP地址最早也只能在第一用户终端下线后的预置宽限时间后,才可以被BRAS分配给其他上线的用户终端。如此,便可以解决由于在第一用户终端下线后,便将第一IP地址分配给其他上线的用户终端,而导致的当第一用户终端使用第一IP地址执行了网络违法事件后,无法根据第一IP地址准确定位出真正执行该网络违法事件的用户终端的问题,可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。Wherein, in this solution, the BRAS may put the first IP address into the online IP address after the first user terminal is offline (that is, after receiving the offline message sent by the first user terminal) and after a preset grace period. In the free address set of IP addresses provided by user terminals, that is, in this solution, the first IP address can only be assigned to other online users by the BRAS after the first user terminal goes offline after a preset grace time terminal. In this way, it can be solved that after the first user terminal goes offline, the first IP address is allocated to other online user terminals, and when the first user terminal uses the first IP address to perform a network illegal event, the inability to According to the first IP address, the problem of accurately locating the user terminal that actually carried out the network violation event can reduce the possibility of misjudging the user terminal that carried out the network violation event, and improve the accuracy of the determined user terminal that carried out the network violation event. sex.

在一种可能的实现方式中,BRAS可以在接收第一用户终端发送的下线消息之后,释放第一IP地址,以使第一IP地址处于空闲状态,然后在预置宽限时间后,将第一IP地址放入空闲地址集合。如此,可以保证空闲地址集合中的IP地址都是处于空闲状态的IP地址。In a possible implementation manner, after receiving the offline message sent by the first user terminal, the BRAS releases the first IP address, so that the first IP address is in an idle state, and then after a preset grace period, sends the first IP address to the An IP address is put into the free address set. In this way, it can be guaranteed that the IP addresses in the idle address set are all idle IP addresses.

在一种可能的实现方式中,BRAS可以在接收到第二用户终端的上线请求后,将上述空闲地址集合中的第二IP地址分配给上述第二用户终端;上述BRAS将上述第二IP地址由空闲状态切换为已使用状态;其中,上述第二IP地址与上述第一IP地址相同,或者上述第二IP地址与上述第一IP地址不同。其中,由于空闲地址集合中的IP地址都是在使用该IP地址的用户终端下线后的预置宽限时间后,才放入该空闲地址集合的;因此,原来使用该IP地址的用户终端执行网络违法事件到BRAS将该IP地址分配给新的用户设备之间至少间隔了预置宽限时间。如此,即使原来使用该IP地址的用户终端在使用该IP地址期间执行了网络违法事件,通过上述阈值宽限时间,也可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。In a possible implementation manner, the BRAS may allocate the second IP address in the idle address set to the second user terminal after receiving the online request of the second user terminal; the BRAS assigns the second IP address Switching from an idle state to a used state; wherein, the above-mentioned second IP address is the same as the above-mentioned first IP address, or the above-mentioned second IP address is different from the above-mentioned first IP address. Wherein, since the IP addresses in the idle address set are put into the idle address set after the user terminal using the IP address goes offline after a preset grace time; therefore, the user terminal originally using the IP address executes There is at least a preset grace period between the network violation event and the allocation of the IP address to the new user equipment by the BRAS. In this way, even if the user terminal that originally used the IP address performed a network violation event during the use of the IP address, the possibility of misjudgment of the user terminal that performed the network violation event can be reduced through the above-mentioned threshold grace time, and the determination of the illegal event can be improved. The accuracy of the user terminal performing the network violation event.

在一种可能的实现方式中,上述空闲地址集合为空闲地址队列。其中,本申请保护的IP地址管理方法中,该空闲地址队列中的IP地址用于BRAS根据先进先出的原则为上线的用户终端分配IP地址。例如,当第一用户终端下线后,BRAS则可以在预置宽限时间后,将分配给该第一用户终端的IP地址(第一IP地址)放入上述空闲地址队列的队尾,并在接收到第二用户终端的上线请求后,将上述空闲地址队列的队头的IP地址分配给该第二用户终端。如此,在该空闲地址队列中的位于该第一IP地址之前的其他IP地址都分配出去后,该第一IP地址才能够被BRAS分配给上线的用户终端。这样可以在预置宽限时间的基础上,进一步延长第一用户终端执行网络违法事件到BRAS将第一IP地址分配给新的用户设备的时间。In a possible implementation manner, the above idle address set is an idle address queue. Wherein, in the IP address management method protected by the present application, the IP addresses in the idle address queue are used by the BRAS to allocate IP addresses for online user terminals according to the first-in-first-out principle. For example, after the first user terminal goes offline, the BRAS can put the IP address (first IP address) assigned to the first user terminal into the queue tail of the above-mentioned idle address queue after a preset grace period, and After receiving the online request of the second user terminal, assign the IP address at the head of the idle address queue to the second user terminal. In this way, the first IP address can be allocated to the online user terminal by the BRAS only after all other IP addresses located before the first IP address in the idle address queue are allocated. In this way, on the basis of the preset grace time, the time from when the first user terminal executes a network violation event to when the BRAS allocates the first IP address to the new user equipment can be further extended.

在一种可能的实现方式中,在BRAS接收第一用户终端发送的下线消息之前,上述BRAS接收第一用户终端发送的上线请求;该BRAS从上述空闲地址集合中确定第一IP地址,并将该第一IP地址分配给该第一用户设备。In a possible implementation manner, before the BRAS receives the offline message sent by the first user terminal, the above-mentioned BRAS receives the online request sent by the first user terminal; the BRAS determines the first IP address from the above-mentioned idle address set, and Allocating the first IP address to the first user equipment.

第二方面,本申请提供一种BRAS,包括:接收模块和地址控制模块。接收模块,用于接收第一用户终端发送的下线消息;地址控制模块,用于从上述接收模块接收到上述第一用户终端发送的下线消息开始,在预置宽限时间后,将第一IP地址放入空闲地址集合,上述第一IP地址为上述BRAS在该第一用户终端上线时为该第一用户终端分配的IP地址,该空闲地址集合中的IP地址用于BRAS为上线的用户终端分配IP地址。In a second aspect, the present application provides a BRAS, including: a receiving module and an address control module. The receiving module is configured to receive the offline message sent by the first user terminal; the address control module is configured to start from the receiving module receiving the offline message sent by the first user terminal, and after a preset grace period, send the first IP address is put into idle address collection, and above-mentioned first IP address is the IP address that above-mentioned BRAS distributes for this first user terminal when this first user terminal goes online, and the IP address in this idle address collection is used for BRAS to be the online user The terminal is assigned an IP address.

在一种可能的实现方式中,上述地址控制模块,还用于在上述接收模块接收第一用户终端发送的下线消息之后,释放上述第一IP地址,以使该第一IP地址处于空闲状态。In a possible implementation manner, the address control module is further configured to release the first IP address after the receiving module receives the offline message sent by the first user terminal, so that the first IP address is in an idle state .

在一种可能的实现方式中,上述接收模块,还用于接收第二用户终端的上线请求。上述BRAS,还可以包括:分配模块和切换模块。分配模块,还用于在上述接收模块接收到第二用户终端的上线请求后,将上述空闲地址集合中的第二IP地址分配给该第二用户终端。切换模块,用于将该第二IP地址由空闲状态切换为已使用状态。其中,该第二IP地址与该第一IP地址相同,或者该第二IP地址与该第一IP地址不同;上述空闲地址集合中的IP地址具体用于上述分配模块为上线的用户终端分配IP地址。In a possible implementation manner, the above receiving module is further configured to receive an online request from a second user terminal. The above-mentioned BRAS may further include: an allocation module and a switching module. The allocating module is further configured to allocate the second IP address in the free address set to the second user terminal after the receiving module receives the online request of the second user terminal. A switching module, configured to switch the second IP address from an idle state to a used state. Wherein, the second IP address is the same as the first IP address, or the second IP address is different from the first IP address; the IP address in the above-mentioned free address set is specifically used by the above-mentioned distribution module to assign IP addresses to online user terminals address.

在一种可能的实现方式中,上述空闲地址集合为空闲地址队列,该空闲地址队列中的IP地址用于上述分配模块根据先进先出的原则为上线的用户终端分配IP地址。In a possible implementation manner, the set of idle addresses is an idle address queue, and the IP addresses in the idle address queue are used by the allocation module to allocate IP addresses to online user terminals according to the first-in-first-out principle.

在一种可能的实现方式中,上述接收模块,还用于在接收上述第一用户终端发送的下线消息之前,接收该第一用户终端的上线请求。分配模块,用于在该接收模块接收到该第一用户终端的上线请求后,从上述空闲地址集合中确定第一IP地址,并将该第一IP地址分配给该第一用户终端。In a possible implementation manner, the receiving module is further configured to receive an online request of the first user terminal before receiving the offline message sent by the first user terminal. The assigning module is configured to determine the first IP address from the free address set and assign the first IP address to the first user terminal after the receiving module receives the online request of the first user terminal.

第三方面,本申请提供一种BRAS,包括:处理器、存储器、总线和通信接口,处理器、存储器和通信接口通过总线相连。上述存储器用于存储计算机程序代码,该计算机程序代码包括指令,当BRAS的处理器执行指令时,BRAS执行如第一方面及其各种可能的实现方式中的IP地址管理方法。In a third aspect, the present application provides a BRAS, including: a processor, a memory, a bus, and a communication interface, where the processor, the memory, and the communication interface are connected through the bus. The above-mentioned memory is used to store computer program codes, and the computer program codes include instructions. When the processor of the BRAS executes the instructions, the BRAS executes the IP address management method in the first aspect and its various possible implementations.

第四方面,本申请提供一种计算机存储介质,计算机存储介质中存储有计算机程序代码,计算机程序代码包括指令,当BRAS的处理器执行指令时,BRAS执行如第二方面及其各种可能的实现方式中的IP地址管理方法。In a fourth aspect, the present application provides a computer storage medium, in which computer program codes are stored, and the computer program codes include instructions. When the processor of the BRAS executes the instructions, the BRAS executes the second aspect and its various possible operations. The IP address management method in the implementation manner.

需要说明的是,上述第三方面和上述第四方面中BRAS中的各个模块的详细描述和相应技术效果分析可参见上述第二方面及其各种可能的实现方式中的详细描述,本申请这里不再赘述。It should be noted that, for the detailed description of each module in the BRAS in the above-mentioned third aspect and the above-mentioned fourth aspect and the corresponding technical effect analysis, please refer to the detailed description in the above-mentioned second aspect and its various possible implementation modes. No longer.

附图说明Description of drawings

图1为本发明实施例提供的一种IP地址管理方法所应用的网络架构示意图;FIG. 1 is a schematic diagram of a network architecture applied to an IP address management method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种IP地址管理方法流程图;FIG. 2 is a flow chart of an IP address management method provided by an embodiment of the present invention;

图3为本发明实施例提供的另一种IP地址管理方法流程图;FIG. 3 is a flow chart of another IP address management method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种空闲地址队列的实例示意图;FIG. 4 is a schematic diagram of an example of an idle address queue provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种空闲地址队列的实例示意图;FIG. 5 is a schematic diagram of an example of another idle address queue provided by an embodiment of the present invention;

图6为本发明实施例提供的BRAS的一种可能的结构示意图;FIG. 6 is a schematic diagram of a possible structure of a BRAS provided by an embodiment of the present invention;

图7为本发明实施例提供的BRAS的另一种可能的结构示意图。Fig. 7 is a schematic diagram of another possible structure of the BRAS provided by the embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供的IP地址管理方法及设备可以应用于BRAS为用户终端分配IP地址的过程中。The IP address management method and equipment provided by the embodiments of the present invention can be applied in the process of BRAS assigning IP addresses to user terminals.

请参考图1,其示出了本发明实施例提供的一种IP地址管理方法所应用的网络架构示意图。如图1所示,该IP地址分配网络架构可以包括:至少一个用户终端(如用户终端11和用户终端12)和一个BRAS(如BRAS13)。Please refer to FIG. 1 , which shows a schematic diagram of a network architecture to which an IP address management method provided by an embodiment of the present invention is applied. As shown in FIG. 1 , the IP address allocation network architecture may include: at least one user terminal (such as user terminal 11 and user terminal 12 ) and a BRAS (such as BRAS 13 ).

本发明实施例中的BRAS 13是一种面向宽带网络应用的接入网关,可以用于在接收用户终端发起的上线请求后,为该用户终端分配IP地址;还可以用于在接收到用户终端发送的下线消息后,释放分配给该用户终端的IP地址。例如,如图1所示,BRAS 13可以用于接收用户终端11或用户终端12发送的上线请求,并为该用户终端11或该用户终端12分配IP地址;BRAS 13还可以用于在接收到用户终端11或用户终端12发送的下线消息后,释放分配给该用户终端11或该用户终端12的IP地址。The BRAS 13 in the embodiment of the present invention is a broadband network application-oriented access gateway, which can be used to assign an IP address to the user terminal after receiving the online request initiated by the user terminal; After the offline message is sent, the IP address assigned to the user terminal is released. For example, as shown in Figure 1, the BRAS 13 can be used to receive the online request sent by the user terminal 11 or the user terminal 12, and assign an IP address for the user terminal 11 or the user terminal 12; After the offline message sent by the user terminal 11 or the user terminal 12, the IP address assigned to the user terminal 11 or the user terminal 12 is released.

示例性的,上述用户终端可以为个人计算机(英文:Personal Computer,简称:PC)、便携式计算机等电子设备。Exemplarily, the foregoing user terminal may be an electronic device such as a personal computer (English: Personal Computer, PC for short), a portable computer, or the like.

下面结合附图,通过具体的实施例及其应用场景对本发明实施例提供的一种IP地址管理方法及设备进行详细地说明:An IP address management method and device provided by the embodiments of the present invention are described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings:

本发明实施例提供一种IP地址管理方法,如图2所示,该IP地址管理方法包括:The embodiment of the present invention provides a kind of IP address management method, as shown in Figure 2, this IP address management method comprises:

S201、第一用户终端向BRAS发送上线请求。S201. The first user terminal sends an online request to the BRAS.

S202、BRAS接收第一用户终端发送的上线请求。S202. The BRAS receives an online request sent by the first user terminal.

其中,每个用户终端在上线时都可以向BRAS发送上线请求,BRAS在接收到用户终端发送的上线请求后,则可以为该用户终端分配IP地址。Wherein, each user terminal can send an online request to the BRAS when going online, and the BRAS can assign an IP address to the user terminal after receiving the online request sent by the user terminal.

S203、BRAS为第一用户终端分配IP地址。S203. The BRAS assigns an IP address to the first user terminal.

其中,BRAS可以在接收到第一用户终端发送的上线请求后,为第一用户终端分配当前处于空闲状态的IP地址。Wherein, after receiving the online request sent by the first user terminal, the BRAS may assign the first user terminal an IP address that is currently in an idle state.

需要说明的是,在上述BRAS为第一用户终端分配IP地址之后,该第一用户终端可以使用该IP地址上线。同时,用户可以使用该第一用户终端执行网络操作。例如,在该第一用户终端上线时,用户可以使用该第一用户终端执行网页浏览、网络信息传输等网络操作;当然,该用户还可以使用该第一用户终端执行网络违法事件。It should be noted that after the BRAS allocates an IP address to the first user terminal, the first user terminal can use the IP address to go online. At the same time, the user can use the first user terminal to perform network operations. For example, when the first user terminal is online, the user can use the first user terminal to perform network operations such as web page browsing and network information transmission; of course, the user can also use the first user terminal to perform network violations.

S204、第一用户终端向BRAS发送下线消息。S204. The first user terminal sends an offline message to the BRAS.

其中,用户在不需要执行网络操作时,可以使该第一用户终端下线。示例性的,若该第一用户终端中包括“下线”功能选项,用户在不需要执行网络操作时,可以操作该“下线”功能选项,使该第一用户终端下线。随后,该第一用户终端便可以向BRAS发送下线消息,以通知该BRAS该第一用户终端已经下线。其中,该第一用户终端下线之后,其下线之前所使用的IP地址将不再被使用。Wherein, when the user does not need to perform network operations, the user may log off the first user terminal. Exemplarily, if the first user terminal includes an "offline" function option, the user can operate the "offline" function option to make the first user terminal offline when no network operation is required. Subsequently, the first user terminal may send an offline message to the BRAS to notify the BRAS that the first user terminal has gone offline. Wherein, after the first user terminal goes offline, the IP address used before it goes offline will no longer be used.

S205、BRAS接收第一用户终端发送的下线消息。S205. The BRAS receives an offline message sent by the first user terminal.

S206、BRAS从接收到第一用户终端发送的下线消息开始,在预置宽限时间后,将第一IP地址放入空闲地址集合。S206. The BRAS starts from receiving the offline message sent by the first user terminal, and puts the first IP address into the idle address set after a preset grace time.

本发明实施例提供的IP地址管理方法,BRAS可以在第一用户终端下线(即接收到第一用户终端发送的下线消息)后,在预置宽限时间后,才将第一IP地址放入可以为上线的用户终端提供IP地址的空闲地址集合中;如此,第一IP地址最早也只能在第一用户终端下线后的预置宽限时间后,才可以被BRAS分配给其他上线的用户终端;而非在第一用户终端下线后,便将该第一IP地址分配给上线的其他用户终端。这样,便可以解决由于在第一用户终端下线后,立即将第一IP地址分配给其他上线的用户终端,而导致的当第一用户终端使用第一IP地址执行了网络违法事件后,无法根据第一IP地址准确定位出真正执行该网络违法事件的用户终端的问题,可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。In the IP address management method provided by the embodiment of the present invention, the BRAS may not release the first IP address until the first user terminal is offline (that is, after receiving the offline message sent by the first user terminal) and after a preset grace period. into the free address set that can provide IP addresses for online user terminals; thus, the first IP address can only be assigned to other online users by the BRAS after a preset grace period after the first user terminal goes offline at the earliest user terminals; instead of assigning the first IP address to other online user terminals after the first user terminal goes offline. In this way, it is possible to solve the problem that after the first user terminal uses the first IP address to execute a network illegal event due to the fact that the first IP address is allocated to other online user terminals immediately after the first user terminal goes offline, it cannot According to the first IP address, the problem of accurately locating the user terminal that actually carried out the network violation event can reduce the possibility of misjudging the user terminal that carried out the network violation event, and improve the accuracy of the determined user terminal that carried out the network violation event. sex.

进一步的,BRAS可以在接收第一用户终端发送的下线消息之后,释放第一IP地址,以使第一IP地址处于空闲状态,然后在预置宽限时间后,将第一IP地址放入空闲地址集合。如此,可以保证空闲地址集合中的IP地址都是处于空闲状态的IP地址。Further, the BRAS may release the first IP address after receiving the offline message sent by the first user terminal, so that the first IP address is in an idle state, and then after a preset grace period, put the first IP address into the idle state. A collection of addresses. In this way, it can be guaranteed that the IP addresses in the idle address set are all idle IP addresses.

示例性的,BRAS可以通过为每一个IP地址设置标志位的方式来指示IP地址处于已使用状态(used)或者空闲状态(free)。例如,当一个IP地址的标志位为1时,则表示该IP地址处于已使用状态,当该IP地址的标志位为0时,则表示该IP地址处于空闲状态。BRAS可以在接收到第一用户终端发送的下线消息之后,通过将第一IP地址的标志位置0的方式,释放第一IP地址,使得该第一IP地址处于空闲状态。Exemplarily, the BRAS may indicate that the IP address is in a used state (used) or an idle state (free) by setting a flag bit for each IP address. For example, when the flag bit of an IP address is 1, it means that the IP address is in use, and when the flag bit of the IP address is 0, it means that the IP address is in an idle state. After receiving the offline message sent by the first user terminal, the BRAS may release the first IP address by setting the flag of the first IP address to 0, so that the first IP address is in an idle state.

BRAS可以在接收到第二用户终端的上线请求后,将上述空闲地址集合中的第二IP地址分配给上述第二用户终端。其中,该第二IP地址与上述第一IP地址相同,或者上述第二IP地址与上述第一IP地址不同。具体的,如图3所示,在图2所示的S206之后,本发明实施例的方法还可以包括S301-S303:The BRAS may allocate the second IP address in the idle address set to the second user terminal after receiving the online request of the second user terminal. Wherein, the second IP address is the same as the first IP address, or the second IP address is different from the first IP address. Specifically, as shown in FIG. 3, after S206 shown in FIG. 2, the method in this embodiment of the present invention may further include S301-S303:

S301、第二用户终端向BRAS发送上线请求。S301. The second user terminal sends an online request to the BRAS.

S302、BRAS接收第二用户终端的上线请求。S302. The BRAS receives the online request of the second user terminal.

S303、BRAS将空闲地址集合中的第二IP地址分配给第二用户终端。S303. The BRAS allocates the second IP address in the idle address set to the second user terminal.

假设当前时间为2016年10月15日15:12:36,预置宽限时间为10分钟。若BRAS在2016年10月15日15:12:36接收到第一用户终端的下线请求,BRAS则可以在2016年10月15日15:22:36将第一IP地址放入空闲地址集合,即该第一IP地址在2016年10月15日15:22:36开始才能够被分配给其他上线的用户终端。如此,即使第二用户终端在2016年10月15日15:12:36上线,那么该第一IP地址也不可能被分配给第二用户终端。Assume that the current time is 15:12:36 on October 15, 2016, and the preset grace time is 10 minutes. If the BRAS receives the offline request of the first user terminal at 15:12:36 on October 15, 2016, the BRAS can put the first IP address into the free address set at 15:22:36 on October 15, 2016 , that is, the first IP address can be allocated to other online user terminals starting at 15:22:36 on October 15, 2016. In this way, even if the second user terminal goes online at 15:12:36 on October 15, 2016, the first IP address cannot be assigned to the second user terminal.

本发明实施例提供的IP地址的分配方法,由于空闲地址集合中的IP地址都是在使用该IP地址的用户终端下线后的预置宽限时间后,才放入该空闲地址集合的;因此,原来使用该IP地址的用户终端执行网络违法事件到BRAS将该IP地址分配给新的用户设备之间至少间隔了预置宽限时间。如此,如果原来使用该IP地址的用户终端在使用该IP地址期间执行了网络违法事件,那么经过上述阈值宽限时间后,BRAS才可以将该IP地址分配给其他用户,从而可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。In the method for allocating IP addresses provided by the embodiments of the present invention, since the IP addresses in the idle address set are all placed in the idle address set after a preset grace period after the user terminal using the IP address goes offline; therefore , there is at least a preset grace period between when the user terminal originally using the IP address executes a network violation event and when the BRAS allocates the IP address to a new user equipment. In this way, if the user terminal that originally used the IP address commits a network violation event during the use of the IP address, the BRAS can assign the IP address to other users after the above-mentioned threshold grace time has elapsed, thereby reducing the impact on network violations. The possibility of misjudgment of the user terminal of the event improves the accuracy of the determined user terminal that executes the network violation event.

可选的,本发明实施例中,上述空闲地址集合为空闲地址队列。其中,空闲地址队列中的IP地址可以用于BRAS根据先进先出的原则为上线的用户终端分配IP地址。Optionally, in the embodiment of the present invention, the above idle address set is an idle address queue. Wherein, the IP addresses in the idle address queue can be used by the BRAS to allocate IP addresses for online user terminals according to the first-in-first-out principle.

示例性的,如图4所示,为本发明实施例提供的一种空闲地址队列的实例示意图。如图4所示,假设空闲地址队列中包含5个处于空闲状态的IP地址(IP地址a、IP地址b、IP地址c、IP地址d和IP地址e),且IP地址a是BRAS在用户设备a于2016年9月25日12:26:56下线后,添加至该空闲地址队列的;IP地址b是BRAS在用户设备b于2016年9月25日12:30:56下线后,添加至该空闲地址队列的;IP地址c是BRAS在用户设备c于2016年9月24日12:30:56下线后,添加至该空闲地址队列的;IP地址d是BRAS在用户设备d于2016年9月26日03:21:56下线后,添加至该空闲地址队列的;IP地址e是BRAS在用户设备e于2016年10月01日16:27:56下线后,添加至该空闲地址队列的。由于空闲地址队列中的IP地址是按照先进先出的原则进行排列的,因此,如图3所示,上述5个IP地址在空闲地址队列中由队首到队尾的排序为:IP地址c、IP地址a、IP地址b、IP地址d和IP地址e。Exemplarily, as shown in FIG. 4 , it is a schematic diagram of an example of an idle address queue provided by an embodiment of the present invention. As shown in Figure 4, assume that the idle address queue contains 5 idle IP addresses (IP address a, IP address b, IP address c, IP address d, and IP address e), and IP address a is the After device a goes offline at 12:26:56 on September 25, 2016, it is added to the idle address queue; IP address b is the BRAS after user device b goes offline at 12:30:56 on September 25, 2016 , added to the idle address queue; IP address c was added to the idle address queue by the BRAS after user equipment c went offline at 12:30:56 on September 24, 2016; IP address d was added to the idle address queue by the BRAS in the user equipment After d went offline at 03:21:56 on September 26, 2016, it was added to the idle address queue; IP address e was BRAS after user equipment e went offline at 16:27:56 on October 1, 2016. Added to the free address queue. Since the IP addresses in the idle address queue are arranged according to the first-in-first-out principle, as shown in Figure 3, the order of the above five IP addresses in the idle address queue from the head to the tail of the queue is: IP address c , IP address a, IP address b, IP address d, and IP address e.

假设当前时间为2016年10月15日15:12:36,预置宽限时间为10分钟。若BRAS在2016年10月15日15:12:36接收到第一用户终端的下线请求,BRAS则可以在2016年10月15日15:22:36将第一IP地址放入如图4所示的空闲地址队列的对尾,得到如图5所示的空闲地址队列。如此,即使在2016年10月15日15:22:36,如果空闲地址队列中还包括排在第一IP地址之前的其他IP地址(如图5所示的IP地址c、IP地址a、IP地址b、IP地址d和IP地址e),该第一IP地址也不能被分配给其他上线的用户终端。Assume that the current time is 15:12:36 on October 15, 2016, and the preset grace time is 10 minutes. If the BRAS receives the offline request of the first user terminal at 15:12:36 on October 15, 2016, the BRAS can put the first IP address into the IP address shown in Figure 4 at 15:22:36 on October 15, 2016. The end of the free address queue shown in FIG. 5 is obtained as shown in FIG. 5 . In this way, even at 15:22:36 on October 15, 2016, if the idle address queue also includes other IP addresses before the first IP address (such as IP address c, IP address a, IP address shown in Figure 5 Address b, IP address d and IP address e), the first IP address cannot be allocated to other online user terminals.

如此,本发明实施例提供的IP地址的分配方法,还可以在预置宽限时间的基础上,进一步延长第一用户终端执行网络违法事件到BRAS将第一IP地址分配给新的用户设备的时间。并且,可以降低对执行网络违法事件的用户终端的误判的可能性,提高确定出的执行网络违法事件的用户终端的准确性。In this way, the IP address allocation method provided by the embodiment of the present invention can further extend the time from when the first user terminal executes a network violation event to when the BRAS assigns the first IP address to the new user equipment on the basis of the preset grace time . In addition, it can reduce the possibility of misjudgment of the user terminal performing the network violation event, and improve the accuracy of the determined user terminal performing the network violation event.

上述主要从各个网元之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个网元,例如BRAS为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present invention from the perspective of interaction between various network elements. It can be understood that, in order to realize the above-mentioned functions, each network element, such as the BRAS, includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of the examples described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present invention.

本发明实施例可以根据上述方法示例对BRAS进行模块的划分。例如,可以对应各个功能划分各个模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present invention, the BRAS may be divided into modules according to the above method examples. For example, each module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

图6示出了上述实施例中提供的BRAS的一种可能的结构。如图6所示,BRAS 600包括:接收模块601和地址控制模块602。Fig. 6 shows a possible structure of the BRAS provided in the above embodiments. As shown in FIG. 6 , the BRAS 600 includes: a receiving module 601 and an address control module 602 .

其中,上述接收模块601用于接收用户终端发送的消息或请求,如该接收模块601可以用于接收第一用户终端发送的下线消息或上线请求。例如,接收模块601用于支持BRAS600执行上述实施例中的S202、S205和S302,和/或用于本文所描述的技术的其它过程。Wherein, the receiving module 601 is configured to receive a message or request sent by a user terminal, for example, the receiving module 601 may be configured to receive an offline message or an online request sent by a first user terminal. For example, the receiving module 601 is used to support the BRAS 600 to execute S202, S205 and S302 in the above embodiments, and/or other processes for the technology described herein.

上述地址控制模块602用于使未使用的IP地址处于空闲状态,并将处于空闲状态的IP地址放入空闲地址集合;如地址控制模块602可以用于从上述接收模块601接收到第一用户终端发送的下线消息开始,在预置宽限时间后,将第一IP地址放入空闲地址集合。例如,地址控制模块602用于支持BRAS 600执行上述实施例中的S206。The address control module 602 is configured to make unused IP addresses idle, and put the idle IP addresses into the idle address set; for example, the address control module 602 can be configured to receive the first user terminal from the receiving module 601 The offline message sent starts, and after a preset grace time, put the first IP address into the free address set. For example, the address control module 602 is used to support the BRAS 600 to execute S206 in the above embodiment.

进一步的,上述实施例中提供的BRAS还可以包括:分配模块603和切换模块604。Further, the BRAS provided in the foregoing embodiments may further include: an allocation module 603 and a switching module 604 .

其中,上述分配模块603用于从上述空闲地址集合中确定出第一IP地址,并将处于空闲状态的IP地址分配给发起上线请求的用户终端;如分配模块603可以用于在上述接收模块601接收到第二用户终端的上线请求后,从上述空闲地址集合中确定出第一IP地址,并将空闲地址集合中的第二IP地址分配给该第二用户终端。例如,分配模块603用于支持BRAS600执行上述实施例中的S203和S303,和/或用于本文所描述的技术的其它过程。Wherein, the allocation module 603 is configured to determine the first IP address from the idle address set, and allocate the idle IP address to the user terminal that initiates the online request; After receiving the online request of the second user terminal, the first IP address is determined from the idle address set, and the second IP address in the idle address set is allocated to the second user terminal. For example, the allocating module 603 is used to support the BRAS 600 to execute S203 and S303 in the above embodiments, and/or other processes for the technologies described herein.

上述切换模块604用于将被用户终端使用的IP地址由空闲状态切换为已使用状态;如切换模块604用于在该分配模块603将空闲地址集合中的第二IP地址分配给第二用户终端后,将该第二IP地址由空闲状态切换为已使用状态。The switching module 604 is used to switch the IP address used by the user terminal from the idle state to the used state; for example, the switching module 604 is used to assign the second IP address in the free address set to the second user terminal in the allocation module 603 Afterwards, the second IP address is switched from the idle state to the used state.

进一步的,上述BRAS还可以包括发送模块,该发送模块用于上述接收模块601接收到用户终端向该BRAS发送的上线请求,并且上述分配模块603为用户设备分配IP地址之后,向用户终端发送上线请求的响应等信息,用于指示该BRAS已经成功为该用户终端分配IP地址。Further, the above-mentioned BRAS may further include a sending module, which is used for the above-mentioned receiving module 601 to receive the online request sent by the user terminal to the BRAS, and after the above-mentioned allocation module 603 assigns an IP address to the user equipment, send the online request to the user terminal Information such as the response to the request is used to indicate that the BRAS has successfully allocated the IP address for the user terminal.

进一步的,上述BRAS还可以包括存储模块,该存储模块可以用于存储上述发明实施例中的IP地址,如该存储模块可以用于存储上述发明实施例中的保存有空闲状态的IP地址的空闲地址集合。Further, the above-mentioned BRAS may also include a storage module, which can be used to store the IP address in the above-mentioned embodiment of the invention, for example, the storage module can be used to store the idle state of the IP address in the above-mentioned embodiment of the invention. A collection of addresses.

在采用集成的模块的情况下,上述接收模块601和发送模块可以集成在一个通信模块中实现,该通信模块可以是通信接口、收发电路或收发器等。上述地址控制模块602、上述分配模块603和上述切换模块604可以集成在一个处理模块中实现,该处理模块可以是处理器或控制器,例如可以是中央处理器(英文:Central Processing Unit,简称:CPU),通用处理器,数字信号处理器(英文:Digital Signal Processor,简称:DSP),专用集成电路(英文:Application-Specific Integrated Circuit,简称:ASIC),现场可编程门阵列(英文:Field Programmable Gate Array,简称:FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种举例说明逻辑方框,模块和电路。处理模块也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。存储模块可以是存储器。In the case of using an integrated module, the above-mentioned receiving module 601 and sending module may be integrated into one communication module, which may be a communication interface, a transceiver circuit, or a transceiver. The above-mentioned address control module 602, the above-mentioned distribution module 603 and the above-mentioned switching module 604 can be integrated into one processing module, and this processing module can be a processor or a controller, such as a central processing unit (English: Central Processing Unit, referred to as: CPU), general-purpose processor, digital signal processor (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuit (English: Application-Specific Integrated Circuit, referred to as: ASIC), field programmable gate array (English: Field Programmable Gate Array, referred to as: FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processing module can also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and the like. The storage module may be a memory.

当处理模块为处理器,通信模块为通信接口,存储模块为存储器时,本发明实施例中提供的BRAS可以为图7所示的BRAS 700。When the processing module is a processor, the communication module is a communication interface, and the storage module is a memory, the BRAS provided in this embodiment of the present invention may be the BRAS 700 shown in FIG. 7 .

如图7所示,BRAS 700包括:处理器701、通信接口702、存储器703以及总线704。其中,处理器701、通信接口702、存储器703通过总线704相互连接。其中,总线704可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。As shown in FIG. 7 , the BRAS 700 includes: a processor 701 , a communication interface 702 , a memory 703 and a bus 704 . Wherein, the processor 701 , the communication interface 702 , and the memory 703 are connected to each other through a bus 704 . Among them, the bus 704 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 7 , but it does not mean that there is only one bus or one type of bus.

本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序代码,该计算机程序代码包括指令,当BRAS 700的处理器701执行该指令时,BRAS 700执行上述实施例中的相关方法步骤,与用户终端交互实现该为该用户终端分配IP地址。The embodiment of the present invention also provides a computer storage medium, the computer storage medium stores computer program codes, the computer program codes include instructions, and when the processor 701 of the BRAS 700 executes the instructions, the BRAS 700 executes the steps in the above embodiments. The relevant method steps are to interact with the user terminal to realize the allocation of the IP address for the user terminal.

本发明实施例提供的BRAS中的各个模块或者模块的详细描述以及各个功能模块执行上述实施例中的相关方法步骤后所带来的技术效果可以参考本发明方法实施例中的相关描述,此处不再赘述。The detailed description of each module or module in the BRAS provided by the embodiment of the present invention and the technical effect brought by each functional module after performing the relevant method steps in the above embodiment can refer to the relevant description in the method embodiment of the present invention, here No longer.

结合本发明实施例所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(英文:Random Access Memory,简称:RAM)、闪存、只读存储器(英文:Read Only Memory,简称:ROM)、可擦除可编程只读存储器(英文:ErasableProgrammable ROM,简称:EPROM)、电可擦可编程只读存储器(英文:Electrically EPROM,简称:EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(英文:CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the methods or algorithms described in conjunction with the embodiments of the present invention may be implemented in the form of hardware, or may be implemented in the form of a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (English: Random Access Memory, abbreviated as RAM), flash memory, read-only memory (English: Read Only Memory, abbreviated: ROM), and Erasable programmable read-only memory (English: Erasable Programmable ROM, referred to as: EPROM), electrically erasable programmable read-only memory (English: Electrically EPROM, referred to as: EEPROM), registers, hard disks, mobile hard disks, CD-ROMs (English: CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. Certainly, the processor and the storage medium may also exist in the core network interface device as discrete components.

本领域技术人员应该可以意识到,在上述一个或多个具体实施例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that in the above one or more specific embodiments, the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

以上的具体实施方式,对本发明实施例的目的、技术方案和有益效果进行了进一步详细说明,可以理解的是,以上仅为本发明的具体实施方式而已,并不用于限定本发明实施例的保护范围,凡在本发明实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明实施例的保护范围之内。The above specific implementation manners have further described the purpose, technical solutions and beneficial effects of the embodiments of the present invention in detail. It can be understood that the above are only specific implementation modes of the present invention, and are not used to limit the protection of the embodiments of the present invention. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present invention shall be included in the protection scope of the embodiments of the present invention.

Claims (11)

1. a kind of Protocol IP address management method interconnected between network, which is characterized in that including:
Broadband Remote Access Server BRAS receives the offline message that the first user terminal is sent;
The BRAS is since the BRAS receives the offline message that first user terminal is sent, in preset time allowance Afterwards, the first IP address is put into free address set, first IP address is the BRAS on first user terminal It is the IP address of first user terminal distribution during line, the IP address in the free address set is reached the standard grade for BRAS User terminal distributes IP address.
2. according to the method described in claim 1, it is characterized in that, receive what first user terminal was sent in the BRAS After offline message, the method further includes:
The BRAS discharges first IP address, so that first IP address is in idle condition.
3. method according to claim 1 or 2, which is characterized in that the method further includes:
The BRAS is after the request of reaching the standard grade of second user terminal is received, by the second IP address in the free address set Distribute to the second user terminal;
Second IP address is switched to use state by the BRAS by idle state;
Wherein, second IP address is identical with first IP address or second IP address with the first IP Location is different.
It is 4. described according to the method described in claim 1, it is characterized in that, the free address collection is combined into free address queue It is that the user terminal reached the standard grade distributes IP address that IP address in free address queue, which is used for BRAS according to the principle of first in first out,.
5. according to the method described in claim 1, it is characterized in that, receive the offline message of the first user terminal transmission in BRAS Before, the method further includes:
The BRAS receives the request of reaching the standard grade of first user terminal;
The BRAS determines first IP address from the free address set, and first IP address is distributed to institute State the first user terminal.
6. a kind of Broadband Remote Access Server BRAS, which is characterized in that including:
Receiving module, for receiving the offline message that the first user terminal is sent;
Address control module, for since the receiving module receives the offline message that first user terminal is sent, After preset time allowance, the first IP address is put into free address set, first IP address is the BRAS described It is the IP address of first user terminal distribution when first user terminal is reached the standard grade, the IP address in the free address set is used It is that the user terminal reached the standard grade distributes IP address in BRAS.
7. BRAS according to claim 6, which is characterized in that described address control module is additionally operable in the reception mould After block receives the offline message that first user terminal is sent, first IP address is discharged, so that the first IP Location is in idle condition.
8. the BRAS according to claim 6 or 7, which is characterized in that the receiving module is additionally operable to receive second user end The request of reaching the standard grade at end;
The BRAS, further includes:
Distribution module is additionally operable to after the receiving module receives the request of reaching the standard grade of second user terminal, from it is described idly Second IP address is determined in the set of location, and the second IP address in the free address set is distributed to described second and is used Family terminal;
Handover module, for second IP address to be switched to use state by idle state;
Wherein, second IP address is identical with first IP address or second IP address with the first IP Location is different;It is the user terminal distribution IP that reaches the standard grade that IP address in the free address set, which is specifically used for the distribution module, Location.
9. BRAS according to claim 6, which is characterized in that the free address collection is combined into free address queue, described It is that the user terminal reached the standard grade distributes that IP address in free address queue, which is used for the distribution module according to the principle of first in first out, IP address.
10. BRAS according to claim 6, which is characterized in that
The receiving module is additionally operable to before the offline message that first user terminal is sent is received, and receives described first The request of reaching the standard grade of user terminal;
Distribution module, for receive first user terminal in the receiving module request of reaching the standard grade after, from the free time First IP address is determined in address set, and first IP address is distributed into first user terminal.
11. a kind of BRAS, which is characterized in that including:Processor, memory, bus and communication interface, it is the processor, described Memory is connected with the communication interface by the bus;
The memory is for storing computer program code, and the computer program code includes instruction, when the processor When performing described instruction, the BRAS performs the IP address management method as any one of claim 1-5.
CN201611014145.2A 2016-11-17 2016-11-17 A kind of IP address management method and apparatus Withdrawn CN108076161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611014145.2A CN108076161A (en) 2016-11-17 2016-11-17 A kind of IP address management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611014145.2A CN108076161A (en) 2016-11-17 2016-11-17 A kind of IP address management method and apparatus

Publications (1)

Publication Number Publication Date
CN108076161A true CN108076161A (en) 2018-05-25

Family

ID=62159927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611014145.2A Withdrawn CN108076161A (en) 2016-11-17 2016-11-17 A kind of IP address management method and apparatus

Country Status (1)

Country Link
CN (1) CN108076161A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645324A (en) * 2021-08-04 2021-11-12 湖北美和易思教育科技有限公司 IP distribution method and system based on queue
CN116366605A (en) * 2023-02-22 2023-06-30 中国联合网络通信集团有限公司 Address allocation method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957587A (en) * 2004-05-27 2007-05-02 艾利森电话股份有限公司 Arrangement and method for delayed re-allocation of addresses
CN102594933A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Method, device and system for address allocation of public networks
CN102685725A (en) * 2012-05-11 2012-09-19 中国联合网络通信集团有限公司 Information receiving method, information sending method, devices, and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957587A (en) * 2004-05-27 2007-05-02 艾利森电话股份有限公司 Arrangement and method for delayed re-allocation of addresses
CN102594933A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Method, device and system for address allocation of public networks
CN102685725A (en) * 2012-05-11 2012-09-19 中国联合网络通信集团有限公司 Information receiving method, information sending method, devices, and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645324A (en) * 2021-08-04 2021-11-12 湖北美和易思教育科技有限公司 IP distribution method and system based on queue
CN113645324B (en) * 2021-08-04 2023-09-29 武汉美和易思数字科技有限公司 Queue-based IP distribution method and system
CN116366605A (en) * 2023-02-22 2023-06-30 中国联合网络通信集团有限公司 Address allocation method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109565476B (en) Queue protection using shared global memory reserve
CN113485822A (en) Memory management method, system, client, server and storage medium
US10305813B2 (en) Socket management with reduced latency packet processing
CN105426271B (en) To the method and apparatus of the lock management of distributed memory system
CN111585887A (en) Communication method and device based on multiple networks, electronic equipment and storage medium
KR20170133235A (en) QoS-AWARE IO MANAGEMENT FOR PCIe STORAGE SYSTEM WITH RECONFIGURABLE MULTI-PORTS
CN115964319A (en) Data processing method for remote direct memory access and related products
EP4177763A1 (en) Data access method and related device
CN111177025A (en) Data storage method and device and terminal equipment
CN107870874A (en) A data writing control method and storage device
CN107968848A (en) A method for obtaining an IP address, a terminal device and a storage medium
CN102713873B (en) It is being sent in the information of host apparatus insert interval from driver
CN104123173B (en) A kind of method and device for realizing inter-virtual machine communication
CN107621981A (en) Resource allocation method and related products
CN108076161A (en) A kind of IP address management method and apparatus
CN115176453A (en) Message caching method, memory distributor and message forwarding system
WO2021120754A1 (en) Instruction writing method and apparatus, and network device
CN111858363A (en) Method, device, terminal and storage medium for identifying stack overflow
CN114020529B (en) Backup method and device for flow table data, network equipment and storage medium
CN110798520A (en) Service processing method, system, device and readable storage medium
CN115189977A (en) Broadcast transmission method, system and medium based on AXI protocol
CN114553771A (en) Method for loading virtual router and related equipment
CN105183373B (en) A kind of data processing method and the network equipment
CN105988871B (en) Remote memory allocation method, device and system
US12483568B2 (en) Policy management for data processing systems using a management controller

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180525