CN107547675B - User equipment migration method and device - Google Patents

User equipment migration method and device Download PDF

Info

Publication number
CN107547675B
CN107547675B CN201710395255.6A CN201710395255A CN107547675B CN 107547675 B CN107547675 B CN 107547675B CN 201710395255 A CN201710395255 A CN 201710395255A CN 107547675 B CN107547675 B CN 107547675B
Authority
CN
China
Prior art keywords
bras
network segment
network
identifier
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710395255.6A
Other languages
Chinese (zh)
Other versions
CN107547675A (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.)
Hangzhou H3C 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 CN201710395255.6A priority Critical patent/CN107547675B/en
Publication of CN107547675A publication Critical patent/CN107547675A/en
Application granted granted Critical
Publication of CN107547675B publication Critical patent/CN107547675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides a user equipment migration method and a device, wherein the method comprises the following steps: receiving a migration notification message, wherein the migration notification message carries a network identifier, an identifier of a first BRAS-DP device and an identifier of a second BRAS-DP device; acquiring a network segment corresponding to the network identifier; informing the first BRAS-DP equipment to withdraw the network segment route corresponding to the network segment; and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment. By the technical scheme, the message can be prevented from being transmitted to the first BRAS-DP device by mistake, and the message can be ensured to be transmitted to the second BRAS-DP device correctly.

Description

User equipment migration method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for migrating a user equipment.
Background
A BRAS (Broadband Remote Access Server) is used as an Access gateway of a user and an edge of an IP network, and since a control plane and a forwarding plane are tightly coupled together, performance processing is affected with each other, performance limits of the control plane and the forwarding plane cannot be fully exerted, and resource utilization rate is low. In order to solve the above problems, a vbars architecture with a separate control plane and forwarding plane is proposed at present, the control plane uses a general server to implement virtualization, and the forwarding plane uses a dedicated device to implement high-performance forwarding.
The Control Plane can be implemented by a BRAS-CP (Control Plane) device, is positioned as a user Control management component, and is mainly used for implementing functions such as user Control management, user access Control, user authentication authorization charging, address management, configuration management and the like. The forwarding Plane can be implemented by a BRAS-DP (Data Plane) device, is positioned as a three-layer network edge and a user policy execution component, and is mainly used for implementing functions such as traffic forwarding, QoS (Quality of Service), traffic statistics, and the like.
In a networking scenario of a vbars architecture, a DHCP (Dynamic host configuration Protocol) address pool may be deployed on a BRAS-CP device, and the BRAS-CP device completes an address allocation process. For example, when a subscriber device goes online, the BRAS-CP device may select a free IP address from the DHCP address pool and assign the free IP address to the subscriber device.
In the above mode, the BRAS-CP device randomly selects a free IP address from the DHCP address pool, and does not plan the IP address of the user equipment under the BRAS-DP device, which results in confusion of the IP address.
Disclosure of Invention
The application provides a user equipment migration method, which is applied to BRAS-CP equipment and comprises the following steps:
receiving a migration notification message, wherein the migration notification message carries a network identifier, an identifier of a first BRAS-DP device and an identifier of a second BRAS-DP device; the network identification is an identification of a network to which user equipment to be migrated belongs, the first BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network before migration, and the second BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network after migration;
acquiring a network segment corresponding to the network identifier;
informing the first BRAS-DP equipment to withdraw the network segment route corresponding to the network segment;
and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment.
The application provides a user equipment migration device, which is applied to BRAS-CP equipment, and comprises:
the system comprises a receiving module, a migration notification module and a migration processing module, wherein the receiving module is used for receiving a migration notification message, and the migration notification message carries a network identifier, an identifier of a first broadband remote access server data plane BRAS-DP device and an identifier of a second BRAS-DP device; the network identification is an identification of a network to which user equipment to be migrated belongs, the first BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network before migration, and the second BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network after migration;
the acquisition module is used for acquiring the network segment corresponding to the network identifier;
a notification module, configured to notify the first BRAS-DP device to withdraw the network segment route corresponding to the network segment; and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment.
Based on the technical scheme, in the embodiment of the application, when the user equipment is migrated from the first BRAS-DP device to the second BRAS-DP device, the network segment corresponding to the network identifier (namely, the identifier of the network to which the user equipment to be migrated belongs) is obtained first, the first BRAS-DP device is informed to cancel the network segment route corresponding to the network segment, and the second BRAS-DP device is informed to issue the network segment route corresponding to the network segment, so that the message matched with the network segment can be successfully migrated from the first BRAS-DP device to the second BRAS-DP device, the message is prevented from being erroneously transmitted to the first BRAS-DP device, and the message is ensured to be correctly transmitted to the second BRAS-DP device. The reasonable distribution of the IP addresses is realized, the IP addresses of the user equipment are planned, and the disorder of the IP addresses is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a schematic diagram of an application scenario in an embodiment of the present application;
fig. 2A is a flowchart of a user equipment migration method in an embodiment of the present application;
FIG. 2B is a flow chart of a method for address assignment in one embodiment of the present application;
fig. 3 is a block diagram of a user equipment migration apparatus according to an embodiment of the present application;
fig. 4 is a hardware structure diagram of a BRAS-CP device in an embodiment of the present application.
Detailed Description
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" is used may be interpreted as "at … …," or "when … …," or "in response to a determination.
The embodiment of the application provides a user equipment migration method, which is applied to a system comprising BRAS-CP equipment and BRAS-DP equipment. For example, in a vbrs system, a BRAS-CP device is a device that implements a control plane, and is used to implement functions such as user control management, user access control, user authentication authorization charging, address management, configuration management, and the like; and the BRAS-DP device is a device for implementing a forwarding plane, and is used for implementing functions such as traffic forwarding, QoS, traffic statistics, and the like. The vBRAS system can comprise one BRAS-CP device and at least two BRAS-DP devices. Furthermore, each BRAS-DP device may be connected to at least one user device (e.g., a virtual machine, a PC (Personal Computer), a cell phone, a host, etc.).
Referring to fig. 1, which is a schematic view of an application scenario of the embodiment of the present application, in fig. 1, 3 BRAS-DP devices are taken as an example for description, and of course, the number of BRAS-DP devices may be more, and the number is not limited; in fig. 1, two pieces of user equipment are connected to each BRAS-DP device as an example, but of course, the number of user equipment connected to the BRAS-DP device may be greater, and the number is not limited.
In the network planning stage, a network identifier may be divided for the ue, where the network identifier may be an identifier of a network to which the ue belongs, and all ues belonging to the same network need to access the same BRAS-DP device but cannot access different BRAS-DP devices. The Network identifier may include, but is not limited to, a Virtual extensible Local Area Network (VXLAN) identifier or a Virtual Local Area Network (VLAN) identifier.
In fig. 1, a network identifier is described as a VXLAN identifier. For example, VXLAN identifier 100 is divided for user device 131 and user device 132, and user device 131 and user device 132 corresponding to VXLAN identifier 100 are connected to DP device 121. VXLAN identification 200 is divided for user device 133 and user device 134, and user device 133 and user device 134 corresponding to VXLAN identification 200 are connected to DP device 122. VXLAN identification 300 is divided for user device 135 and user device 136, and user device 135 and user device 136 corresponding to VXLAN identification 300 are connected to DP device 123.
Based on the above application scenario, referring to fig. 2A, as a flowchart of the user equipment migration method, the method may be applied to a BRAS-CP device, and the method may include the following steps:
step 211, receiving a migration notification message, where the migration notification message may carry a network identifier, an identifier (such as an IP address) of the first BRAS-DP device, and an identifier (such as an IP address) of the second BRAS-DP device.
The network identification is the identification of the network to which the user equipment to be migrated belongs, the first BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network before migration, and the second BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network after migration.
In one example, a user may complete a migration operation of a user device through a controller, and therefore, when all user devices corresponding to a network identifier are migrated from a first BRAS-DP device to a second BRAS-DP device, the controller may obtain the network identifier, an identifier of the first BRAS-DP device before migration, and an identifier of the second BRAS-DP device after migration, and send a migration notification message carrying these pieces of information to the BRAS-CP device. After receiving the migration notification message, the BRAS-CP device may determine that all the user devices corresponding to the network identifier are migrated from the first BRAS-DP device to the second BRAS-DP device.
Step 212, obtain the network segment corresponding to the network identifier.
In one example, the BRAS-CP device may also obtain and record the correspondence between the network identifier and the network segment. For example, the BRAS-CP device may record the correspondence between the network identifier and the network segment through the mapping table, and certainly, the BRAS-CP device may also record the correspondence between the network identifier and the network segment through other manners, which is not limited to this, as long as the correspondence between the network identifier and the network segment is recorded, and the following example takes the recording through the mapping table as an example. On this basis, after receiving the migration notification message, the BRAS-CP device may query the mapping table through the network identifier carried in the migration notification message, thereby obtaining the network segment corresponding to the network identifier.
The following describes a process of acquiring a corresponding relationship between a network identifier and a network segment by a BRAS-CP device.
The BRAS-CP equipment can receive an address request message sent by the user equipment through the first BRAS-DP equipment, wherein the address request message carries a network identifier; if the network segment corresponding to the network identifier does not exist or an idle IP address does not exist in the network segment corresponding to the network identifier, allocating an idle network segment for the network identifier according to the preset network segment length; then, the corresponding relation between the network identification and the distributed network segment is recorded.
The following describes in detail the process of "BRAS-CP device acquiring the correspondence between network identifier and network segment" in conjunction with an address assignment process. Referring to fig. 2B, a flowchart of an address assignment method, which may be applied to a BRAS-CP device, may include the following steps:
and step 2121, receiving an address request message sent by the user equipment through the first BRAS-DP device.
For convenience of distinguishing, the BRAS-DP device accessed when the user equipment is online can be called a first BRAS-DP device; furthermore, the address request message may carry a network identification.
In one example, when a user equipment comes online, the user equipment sends an address request message (such as a DHCP request message) to a first BRAS-DP device, where the address request message sent by the user equipment does not carry a network identifier. After receiving the address request message, the first BRAS-DP device determines the network identifier of the user equipment, adds the network identifier to the address request message, and sends the address request message to the BRAS-CP device, wherein the address request message sent by the first BRAS-DP device carries the network identifier.
The process of determining the network identifier of the user equipment for the "first BRAS-DP device" may include, but is not limited to, the following ways: the first BRAS-DP device can configure the corresponding relationship between each interface of the device and the network identifier, after receiving the address request message, the first BRAS-DP device firstly determines the incoming interface of the address request message, and then queries the corresponding relationship through the incoming interface, so as to obtain the network identifier corresponding to the incoming interface, wherein the network identifier is the network identifier of the user equipment.
The process of adding the network identifier to the address request message for the "first BRAS-DP device, and sending the address request message to the BRAS-CP device" may include, but is not limited to, the following ways:
the first BRAS-DP device may add the network identification to a header or payload field of the address request message and send the address request message to the BRAS-CP device; alternatively, the first BRAS-DP device may encapsulate a tunnel header (e.g., VXLAN tunnel header) for the address request message, add the network identification to the tunnel header, and send the BRAS-CP device the address request message encapsulated with the tunnel header.
Step 2122, determining whether a network segment corresponding to the network identifier carried by the address request message exists in the mapping table. If not, step 2123 is performed, and if yes, step 2126 is performed.
And step 2123, allocating an idle network segment to the network identifier according to the preset network segment length.
Specifically, the BRAS-CP device selects a network segment with a mask length equal to the preset network segment length from the address pool. For example, when the address pool is 10.1.0.0/16 and the preset segment length is 24, the segments can be 10.1.1.0/24, 10.1.2.0/24, 10.1.3.0/24, etc., and a free segment can be selected from these segments.
And step 2124, recording the corresponding relationship between the network identifier and the network segment in the mapping table.
Step 2125, selecting an idle IP address from the network segment, and sending an address response message (such as a DHCP response message) carrying the idle IP address to the user equipment through the first BRAS-DP device.
Based on the above procedures, one IP address can be allocated to the user equipment, and it is marked that the IP address is not a free IP address, and when allocating IP addresses to other user equipment, the IP address cannot be allocated.
And step 2126, judging whether the network segment corresponding to the network identifier recorded in the mapping table has an idle IP address. If so, go to step 2127; if not, step 2123 is performed.
And step 2127, selecting an idle IP address from the network segment corresponding to the network identifier, and sending an address response message carrying the idle IP address to the user equipment through the first BRAS-DP equipment.
Based on the address allocation process, different network identifiers may correspond to different network segments, one network identifier may correspond to one or more network segments, but one network segment may correspond to only one network identifier, and the network segment may correspond to only one BRAS-DP device. In addition, when one network identifier corresponds to a plurality of network segments, the network segments may be continuous network segments or discontinuous network segments. For example, VXLAN id 100 corresponds to network segment 10.1.1.0/24 and VXLAN id 200 corresponds to network segment 10.1.2.0/24, but VXLAN id 100 and VXLAN id 200 cannot correspond to the same network segment. Also for example, VXLAN identifier 100 may correspond to network segment 10.1.1.0/24 and network segment 10.1.2.0/24 (i.e., a contiguous network segment), or may correspond to network segment 10.1.1.0/24 and network segment 10.1.3.0/24 (i.e., a non-contiguous network segment).
The address assignment process is described in detail below with reference to specific application scenarios.
In the present application scenario, it is assumed that the BRAS-DP device 121 establishes a VXLAN tunnel 1 with the BRAS-CP device, the BRAS-DP device 122 establishes a VXLAN tunnel 2 with the BRAS-CP device, and the BRAS-DP device 123 establishes a VXLAN tunnel 3 with the BRAS-CP device.
In one example, when the subscriber device 131 comes online, the subscriber device 131 sends a DHCP request message. After receiving the DHCP request message, the BRAS-DP device 121 encapsulates a VXLAN tunnel header for the DHCP request message, where the VXLAN tunnel header includes the VXLAN identifier 100, and sends the DHCP request message to the BRAS-CP device through the VXLAN tunnel 1. The BRAS-CP device analyzes the VXLAN identifier 100 from the DHCP request message, and since no network segment corresponding to the VXLAN identifier 100 exists currently, a free network segment, such as 10.1.1.0/24, can be allocated according to the address pool 10.1.0.0/16, the correspondence between the VXLAN identifier 100 and the network segment 10.1.1.0/24 is recorded in the mapping table, and a free IP address 10.1.1.1 is selected from the network segment 10.1.1.0/24. Then, BRAS-CP device sends DHCP response message carrying the idle IP address 10.1.1.1 to BRAS-DP device 121, and BRAS-DP device 121 may send DHCP response message carrying the idle IP address 10.1.1.1 to subscriber device 131, so that subscriber device 131 is successfully assigned IP address 10.1.1.1.
In addition, when the user equipment 132 is online, the processing of the user equipment 132 and the BRAS-DP device 121 is similar to the above-described process, and is not repeated here. After receiving the DHCP request message, the BRAS-CP device parses the VXLAN identifier 100 from the DHCP request message, and since the mapping table already has the correspondence between the VXLAN identifier 100 and the network segment 10.1.1.0/24, the BRAS-CP device can directly select the idle IP address 10.1.1.2 from the network segment 10.1.1.0/24. Then, BRAS-CP device sends a DHCP response message carrying idle IP address 10.1.1.2 to BRAS-DP device 121, and BRAS-DP device 121 may send a DHCP response message carrying idle IP address 10.1.1.2 to subscriber device 132, so that subscriber device 132 is successfully assigned IP address 10.1.1.2.
The address assignment process for the user equipment 133 and the user equipment 135 is similar to the address assignment process for the user equipment 131, and is not repeated here. In addition, the address allocation procedure for the user equipment 134 and the user equipment 136 is similar to the address allocation procedure for the user equipment 132, and is not repeated here.
Based on the address allocation process, the BRAS-CP device may allocate a network segment to the network identifier, and allocate an IP address in the network segment to the user equipment corresponding to the network identifier. Moreover, all the user equipment corresponding to the network identifier is accessed to the same BRAS-DP device, so the IP addresses allocated to all the user equipment accessed to the BRAS-DP device belong to the same network segment. Obviously, the method can realize reasonable distribution of the IP addresses, plan the IP addresses and avoid confusion of the IP addresses.
After assigning IP addresses to user devices, BRAS-DP devices may also issue routes for these user devices. In a traditional manner, a BRAS-DP device issues a host route, such as a route carrying an IP address 10.1.1.1, a route carrying an IP address 10.1.1.2, a route carrying an IP address 10.1.1.3, and so on. Different from the above manner, in the embodiment of the present application, since all the user equipments corresponding to the same network segment only access the same BRAS-DP equipment, the BRAS-DP equipment can issue a network segment route instead of issuing a host route, such as a route carrying the network segment 10.1.1.0/24, so that a large number of host routes can be replaced by one network segment route, the number of issued routes is reduced, and network resources are saved.
The process of publishing network segment routes is described below. After the BRAS-CP device allocates an idle network segment to the network identifier, the BRAS-CP device may notify the first BRAS-DP device to issue a network segment route corresponding to the network segment. For example, the BRAS-CP device may send a route notification message carrying the network segment to the first BRAS-DP device, so that the first BRAS-DP device sends a route message for issuing a network segment route corresponding to the network segment.
After receiving the address request message sent by the first BRAS-DP device, the BRAS-CP device can analyze the address of the first BRAS-DP device from the address request message, so that the first BRAS-DP device can be notified to issue a network segment route corresponding to the network segment according to the address of the first BRAS-DP device.
For example, the BRAS-CP device may send a route notification message carrying the network segment 10.1.1.0/24 to the BRAS-DP device 121 after assigning the network segment 10.1.1.0/24 to the VXLAN identity 100. After receiving the route notification message carrying the network segment 10.1.1.0/24, the BRAS-DP device 121 may send a route message carrying the network segment 10.1.1.0/24, where the route message is used to publish a network segment route corresponding to the network segment 10.1.1.0/24.
Referring to fig. 1, after the forwarding device receives the routing message through interface a, the corresponding relationship between network segment 10.1.1.0/24 and interface a may be recorded in the routing table. Thus, after receiving a message with a destination address matching with the network segment 10.1.1.0/24 (e.g., a message with a destination address of 10.1.1.1), the forwarding device may query the routing table, so as to send the message to the BRAS-DP device 121 through the interface a.
In an example, after the first BRAS-DP device sends a routing message for issuing a network segment route corresponding to the network segment, when all user devices corresponding to the network identifier corresponding to the network segment are migrated from the first BRAS-DP device to the second BRAS-DP device, the network segment route corresponding to the network segment may be migrated, that is, the above steps 211 and 212 are performed, and then the subsequent steps 213 and 214 are performed.
Step 213, notifying the first BRAS-DP device to withdraw the network segment route corresponding to the network segment.
Step 214, notifying the second BRAS-DP device to issue the network segment route corresponding to the network segment.
In one example, the process for "notifying the first BRAS-DP device to withdraw the network segment route corresponding to the network segment" may include: and the BRAS-CP equipment sends a route deletion message carrying the network segment to the first BRAS-DP equipment so that the first BRAS-DP equipment sends a route message for canceling the network segment route corresponding to the network segment. The process of "notifying the second BRAS-DP device to issue the network segment route corresponding to the network segment" may include: and the BRAS-CP equipment sends a route notification message carrying the network segment to the second BRAS-DP equipment so that the second BRAS-DP equipment sends a route message for issuing the network segment route corresponding to the network segment.
For example, taking the first BRAS-DP device as the BRAS-DP device 121 and the second BRAS-DP device as the BRAS-DP device 123 as an example, the BRAS-CP device may send a route deletion message carrying the network segment 10.1.1.0/24 to the BRAS-DP device 121, and after receiving the route deletion message carrying the network segment 10.1.1.0/24, the BRAS-DP device 121 sends a route withdrawal message carrying the network segment 10.1.1.0/24, where the route withdrawal message is used to withdraw the network segment route corresponding to the network segment 10.1.1.0/24. The BRAS-CP device may send a route notification message carrying the network segment 10.1.1.0/24 to the BRAS-DP device 123, and after receiving the route notification message carrying the network segment 10.1.1.0/24, the BRAS-DP device 123 may send a route message carrying the network segment 10.1.1.0/24, where the route message is used to publish a network segment route corresponding to the network segment 10.1.1.0/24.
After receiving the revocation message carrying the network segment 10.1.1.0/24 through the interface A, the forwarding device deletes the corresponding relation between the network segment 10.1.1.0/24 and the interface A from the routing table. After the forwarding device receives the routing message carrying the network segment 10.1.1.0/24 through the interface C, the corresponding relation between the network segment 10.1.1.0/24 and the interface C is recorded in the routing table. Thus, after receiving a message with a destination address matching with the network segment 10.1.1.0/24 (e.g. a message with a destination address of 10.1.1.1), the forwarding device may send the message to the BRAS-DP device 123 through the interface C, instead of sending the message to the BRAS-DP device 121 through the interface a, by querying the routing table.
Based on the technical scheme, in the embodiment of the application, when the user equipment is migrated from the first BRAS-DP device to the second BRAS-DP device, the network segment corresponding to the network identifier (namely, the identifier of the network to which the user equipment to be migrated belongs) is obtained first, the first BRAS-DP device is informed to cancel the network segment route corresponding to the network segment, and the second BRAS-DP device is informed to issue the network segment route corresponding to the network segment, so that the message matched with the network segment can be successfully migrated from the first BRAS-DP device to the second BRAS-DP device, the message is prevented from being erroneously transmitted to the first BRAS-DP device, and the message is ensured to be correctly transmitted to the second BRAS-DP device. The reasonable distribution of the IP addresses is realized, the IP addresses of the user equipment are planned, and the disorder of the IP addresses is avoided.
The address request message received by the BRAS-CP device also carries an identifier (such as an IP address) of the first BRAS-DP device, and based on this, when the BRAS-CP device records the correspondence between the network identifier and the network segment in the mapping table, the correspondence between the network identifier, the network segment, and the identifier of the first BRAS-DP device may also be recorded. And the BRAS-CP device informs the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, and after informing the second BRAS-DP device to release the network segment route corresponding to the network segment, the identifier of the first BRAS-DP device recorded in the mapping table can be modified into the identifier of the second BRAS-DP device.
In one example, when a user equipment accessing a first BRAS-DP device goes offline, the BRAS-CP device may also recover an IP address assigned to the user equipment and determine a network segment to which the IP address belongs. When there is no unrecovered IP address in the network segment (i.e. all IP addresses of the network segment are idle), it indicates that all the user devices corresponding to the network segment have been offline, the BRAS-CP device queries the correspondence (e.g. mapping table) between the network identifier, the network segment, and the identifier of the first BRAS-DP device to obtain the identifier of the first BRAS-DP device corresponding to the network segment, and notifies the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, and the specific withdrawal manner refers to the processing of step 213, and is not repeated herein.
In one example, after the BRAS-CP device notifies the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, the network segment may be recovered, and the corresponding relationship including the network segment is deleted, for example, the corresponding relationship including the network segment is deleted from the mapping table; because the network segment in the mapping table has uniqueness, when the corresponding relation containing the network segment is deleted, the corresponding relation between the network segment, the network identifier and the first BRAS-DP equipment can be deleted. Or, the BRAS-CP equipment sets an aging timer for the network segment; when the aging timer is overtime, the network segment is recovered, and the corresponding relation containing the network segment is deleted; before the aging timer is overtime, if the user equipment in the network corresponding to the network segment is on line again, the BRAS-CP equipment can also select an idle IP address from the network segment and distribute the selected IP address to the user equipment on line again.
Based on the same application concept as the method, an embodiment of the present application further provides a user equipment migration apparatus, which is applied to a BRAS-CP device, and as shown in fig. 3, the user equipment migration apparatus may include:
a receiving module 301, configured to receive a migration notification message, where the migration notification message carries a network identifier, an identifier of a first broadband remote access server data plane BRAS-DP device, and an identifier of a second BRAS-DP device; the network identification is an identification of a network to which user equipment to be migrated belongs, the first BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network before migration, and the second BRAS-DP equipment is BRAS-DP equipment accessed by all user equipment belonging to the network after migration;
an obtaining module 302, configured to obtain a network segment corresponding to the network identifier;
a notification module 303, configured to notify the first BRAS-DP device to withdraw the network segment route corresponding to the network segment; and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment.
The obtaining module 302 is further configured to obtain a correspondence between a network identifier and a network segment;
in the process of acquiring the corresponding relationship between the network identifier and the network segment, the acquiring module 302 is further configured to receive an address request message sent by the user equipment through the first BRAS-DP device, where the address request message carries the network identifier; if the network segment corresponding to the network identifier does not exist or an idle IP address does not exist in the network segment corresponding to the network identifier, allocating an idle network segment for the network identifier according to the preset network segment length; and recording the corresponding relation between the network identification and the distributed network segment.
After the obtaining module 302 allocates an idle network segment to the network identifier according to a preset network segment length, the notifying module 303 is further configured to notify the first BRAS-DP device to issue a network segment route corresponding to the allocated network segment.
The address request message carries an identifier of the first BRAS-DP device, and the obtaining module 302 is further configured to record a correspondence between the network identifier, the allocated network segment, and the identifier of the first BRAS-DP device.
The obtaining module 302 is further configured to, when a user equipment accessing the first BRAS-DP device goes offline, recover an IP address assigned to the user equipment, determine a network segment to which the IP address belongs, and query the correspondence when an unretracted IP address does not exist in the network segment, to obtain an identifier of the first BRAS-DP device corresponding to the network segment; the notifying module 303 is further configured to notify the first BRAS-DP device to withdraw the network segment route corresponding to the network segment.
After the notification module 303 notifies the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, the obtaining module 302 is further configured to recover the network segment and delete the correspondence relationship including the network segment; or setting an aging timer for the network segment; when the aging timer is overtime, the network segment is recovered, and the corresponding relation containing the network segment is deleted; before the aging timer is overtime, if the user equipment in the network corresponding to the network segment is on-line again, selecting an idle IP address from the network segment, and distributing the selected IP address to the user equipment on-line again.
When notifying the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, the notification module 303 is further configured to send a route deletion message carrying the network segment to the first BRAS-DP device, so that the first BRAS-DP device sends a route message used for withdrawing the network segment route corresponding to the network segment; when notifying the second BRAS-DP device to publish the network segment route corresponding to the network segment, the notification module 303 is further configured to send a route notification message carrying the network segment to the second BRAS-DP device, so that the second BRAS-DP device sends a route message used for publishing the network segment route corresponding to the network segment.
For the BRAS-CP device provided in the embodiment of the present application, in terms of a hardware level, a schematic diagram of a hardware architecture of the BRAS-CP device may refer to fig. 4. The method comprises the following steps: a machine-readable storage medium and a processor, wherein:
a machine-readable storage medium: the instruction code is stored.
A processor: the instruction codes stored in the machine readable storage medium are read and executed by communicating with the machine readable storage medium, so as to realize the user equipment migration operation disclosed by the above example of the application.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (14)

1. A user equipment migration method is applied to broadband remote access server control plane (BRAS-CP) equipment, and comprises the following steps:
receiving a migration notification message, wherein the migration notification message carries a network identifier, an identifier of a first broadband remote access server (BRAS-DP) device and an identifier of a second BRAS-DP device; the network identification is the network identification of a network to which all user equipment migrated from the first BRAS-DP equipment to the second BRAS-DP equipment belong, the first BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network before migration, and the second BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network after migration;
acquiring a network segment corresponding to the network identifier;
informing the first BRAS-DP equipment to withdraw the network segment route corresponding to the network segment;
and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment.
2. The method of claim 1, further comprising: acquiring a corresponding relation between a network identifier and a network segment; the obtaining of the corresponding relationship between the network identifier and the network segment includes:
receiving an address request message sent by user equipment through first BRAS-DP equipment, wherein the address request message carries a network identifier;
if the network segment corresponding to the network identifier does not exist or an idle IP address does not exist in the network segment corresponding to the network identifier, allocating an idle network segment for the network identifier according to the preset network segment length;
and recording the corresponding relation between the network identification and the distributed network segment.
3. The method of claim 2, wherein after allocating an idle segment to the network identifier according to the preset segment length, the method further comprises:
and informing the first BRAS-DP equipment to issue the network segment route corresponding to the distributed network segment.
4. The method of claim 2, wherein the address request message carries an identification of the first BRAS-DP device, the method further comprising:
and recording the corresponding relation among the network identifier, the distributed network segment and the identifier of the first BRAS-DP equipment.
5. The method of claim 4, further comprising:
when the user equipment accessed to the first BRAS-DP equipment is offline, the IP address allocated to the user equipment is recovered, the network segment to which the IP address belongs is determined, when the unrecovered IP address does not exist in the network segment, the corresponding relation is inquired, the identifier of the first BRAS-DP equipment corresponding to the network segment is obtained, and the first BRAS-DP equipment is informed to withdraw the network segment route corresponding to the network segment.
6. The method of claim 5, wherein after notifying the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, the method further comprises:
recovering the network segment and deleting the corresponding relation containing the network segment; alternatively, the first and second electrodes may be,
setting an aging timer for the network segment; when the aging timer is overtime, the network segment is recovered, and the corresponding relation containing the network segment is deleted; before the aging timer is overtime, if the user equipment in the network corresponding to the network segment is on-line again, selecting an idle IP address from the network segment, and distributing the selected IP address to the user equipment on-line again.
7. The method of claim 1 or 5, wherein the notifying the first BRAS-DP device to withdraw the network segment route corresponding to the network segment comprises:
sending a route deletion message carrying the network segment to the first BRAS-DP equipment so that the first BRAS-DP equipment sends a route message for canceling the network segment route corresponding to the network segment;
the notifying the second BRAS-DP device to issue the network segment route corresponding to the network segment includes:
and sending a route notification message carrying the network segment to the second BRAS-DP equipment so that the second BRAS-DP equipment sends a route message for issuing the network segment route corresponding to the network segment.
8. A user equipment migration apparatus, applied to a broadband remote access server control plane BRAS-CP device, the apparatus comprising:
the system comprises a receiving module, a migration notification module and a migration processing module, wherein the receiving module is used for receiving a migration notification message, and the migration notification message carries a network identifier, an identifier of a first broadband remote access server data plane BRAS-DP device and an identifier of a second BRAS-DP device; the network identification is the network identification of a network to which all user equipment migrated from the first BRAS-DP equipment to the second BRAS-DP equipment belong, the first BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network before migration, and the second BRAS-DP equipment is the BRAS-DP equipment accessed by all the user equipment belonging to the network after migration;
the acquisition module is used for acquiring the network segment corresponding to the network identifier;
a notification module, configured to notify the first BRAS-DP device to withdraw the network segment route corresponding to the network segment; and informing the second BRAS-DP equipment to release the network segment route corresponding to the network segment.
9. The apparatus of claim 8,
the acquisition module is also used for acquiring the corresponding relation between the network identifier and the network segment;
in the process of acquiring the corresponding relationship between the network identifier and the network segment, the acquiring module is further configured to receive an address request message sent by the user equipment through the first BRAS-DP device, where the address request message carries the network identifier; if the network segment corresponding to the network identifier does not exist or an idle IP address does not exist in the network segment corresponding to the network identifier, allocating an idle network segment for the network identifier according to the preset network segment length; and recording the corresponding relation between the network identification and the distributed network segment.
10. The apparatus of claim 9, wherein after the obtaining module allocates an idle segment to the network identifier according to a preset segment length, the notifying module is further configured to notify the first BRAS-DP device to issue a segment route corresponding to the allocated segment.
11. The apparatus of claim 9, wherein the address request message carries an identifier of the first BRAS-DP device, and the obtaining module is further configured to record a correspondence between the network identifier, the allocated network segment, and the identifier of the first BRAS-DP device.
12. The apparatus of claim 11, wherein the obtaining module is further configured to, when a user equipment accessing the first BRAS-DP device goes offline, recover an IP address assigned to the user equipment, determine a network segment to which the IP address belongs, and query the correspondence when there is no unretracted IP address in the network segment to obtain an identifier of the first BRAS-DP device corresponding to the network segment;
the notifying module is further configured to notify the first BRAS-DP device to withdraw the network segment route corresponding to the network segment.
13. The apparatus of claim 12, wherein after the notification module notifies the first BRAS-DP device to withdraw the network segment route corresponding to the network segment, the obtaining module is further configured to recover the network segment and delete the correspondence relationship including the network segment; or setting an aging timer for the network segment; when the aging timer is overtime, the network segment is recovered, and the corresponding relation containing the network segment is deleted; before the aging timer is overtime, if the user equipment in the network corresponding to the network segment is on-line again, selecting an idle IP address from the network segment, and distributing the selected IP address to the user equipment on-line again.
14. The apparatus of claim 8 or 12,
when the first BRAS-DP device is notified to withdraw the network segment route corresponding to the network segment, the notification module is further configured to send a route deletion message carrying the network segment to the first BRAS-DP device, so that the first BRAS-DP device sends a route message for withdrawing the network segment route corresponding to the network segment;
when the second BRAS-DP device is notified to publish the network segment route corresponding to the network segment, the notification module is further configured to send a route notification message carrying the network segment to the second BRAS-DP device, so that the second BRAS-DP device sends a route message used for publishing the network segment route corresponding to the network segment.
CN201710395255.6A 2017-05-26 2017-05-26 User equipment migration method and device Active CN107547675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710395255.6A CN107547675B (en) 2017-05-26 2017-05-26 User equipment migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710395255.6A CN107547675B (en) 2017-05-26 2017-05-26 User equipment migration method and device

Publications (2)

Publication Number Publication Date
CN107547675A CN107547675A (en) 2018-01-05
CN107547675B true CN107547675B (en) 2020-11-06

Family

ID=60965669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710395255.6A Active CN107547675B (en) 2017-05-26 2017-05-26 User equipment migration method and device

Country Status (1)

Country Link
CN (1) CN107547675B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061855B (en) * 2018-06-28 2021-01-26 新华三技术有限公司 Service processing method, system and device
WO2021012266A1 (en) * 2019-07-25 2021-01-28 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for subscriber migration
CN110891022B (en) * 2019-11-20 2021-11-16 Ut斯达康通讯有限公司 SRv 6-based virtual subnet identifier publishing method and device
CN116938626B (en) * 2023-09-12 2023-12-19 新华三技术有限公司 Client roaming method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534376A (en) * 2016-12-29 2017-03-22 北京华为数字技术有限公司 User online load balancing method, apparatus and device
CN106657330A (en) * 2016-12-22 2017-05-10 北京华为数字技术有限公司 User data migration method and user data backup method, device and system
CN106685818A (en) * 2016-12-30 2017-05-17 北京华为数字技术有限公司 Message feedback method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7123599B2 (en) * 2001-07-13 2006-10-17 Hitachi, Ltd. Mobile communication system
US8942237B2 (en) * 2012-06-20 2015-01-27 International Business Machines Corporation Hypervisor independent network virtualization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657330A (en) * 2016-12-22 2017-05-10 北京华为数字技术有限公司 User data migration method and user data backup method, device and system
CN106534376A (en) * 2016-12-29 2017-03-22 北京华为数字技术有限公司 User online load balancing method, apparatus and device
CN106685818A (en) * 2016-12-30 2017-05-17 北京华为数字技术有限公司 Message feedback method and device

Also Published As

Publication number Publication date
CN107547675A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN108632074B (en) Service configuration file issuing method and device
CN107547675B (en) User equipment migration method and device
CN107733670B (en) Forwarding strategy configuration method and device
CN106878084B (en) Authority control method and device
CN110896355B (en) Network slice selection method and device
CN108011837B (en) Message processing method and device
CN108924268B (en) Container cloud service system and pod creation method and device
CN108737224B (en) Message processing method and device based on micro-service architecture
CN108259218B (en) IP address allocation method and device
KR101857511B1 (en) Method and apparatus for determining virtual machine migration
CN106506515B (en) Authentication method and device
CN103795602A (en) Network strategy configuration method and device of virtual network
EP3614650B1 (en) Separation of forwarding plane and control plane of cgn
CN105337750A (en) Fiber channel storage area network configuration method and apparatus
CN111585887A (en) Communication method and device based on multiple networks, electronic equipment and storage medium
CN106878052B (en) User migration method and device
CN107547400B (en) Virtual machine migration method and device
CN109561004B (en) Message forwarding method and device and switch
CN108390811B (en) GRE tunnel establishment method and equipment thereof
CN109743357B (en) Method and device for realizing service access continuity
WO2021115183A1 (en) Address management method, server and computer-readable storage medium
CN108965093B (en) VLAN (virtual local area network) distribution method and device
EP3503484A1 (en) Message transmission method, device and network system
CN107547684B (en) IPv6 address allocation method and device
JP2017520181A (en) Method, apparatus and system for controlling the total number of users attached online

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