Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in the related art, in order to ensure uninterrupted or fast recovery of services, a cross-frame protection scenario of a local side device becomes a typical networking scenario, and any one of two local side devices forming a protection group can acquire an IP address from an address pool and allocate the IP address to a user device. For example, suppose that a port of a certain pon (Passive Optical Network) of the office device a and a certain pon of the office device B are both connected to the same Optical splitter through an Optical fiber to form a protection group, after the office device a allocates an IP address 1 to the user terminal 1, the IP address 1 in the office device a is in an occupied state, and the office device B has no record of the allocated IP address 1 and is in an idle state, so the office device B allocates the IP address 1 to other terminals, thereby causing an IP address conflict.
In order to solve the above problem, an embodiment of the present invention provides a method for controlling an office device, and referring to fig. 1, the method for controlling an office device includes:
s101, sending address pool data of the local terminal equipment to second local terminal equipment; the second local side device is a device sharing the same address pool with the local side.
In the embodiment of the invention, the local terminal equipment is first local terminal equipment, and the first local terminal equipment sends the address pool data of the local terminal to the second local terminal equipment. Here, the first and second are used only for distinguishing two relevant office devices, and are not limited to the office devices.
It should be understood that the office device is a device provided by the office that provides network access. In the embodiment of the present invention, the office device may be a passive optical network office device. The first local side device and the second local side device are both configured with a DHCP service module and an address pool, so that the first local side device and the second local side device can obtain an idle IP address from the address pool and allocate the idle IP address to a UE (User Equipment). It should be understood that the address pool includes at least one IP address, and the IP addresses in the address pool can be dynamically allocated to the UE. After configuring the address pools for the first local side device and the second local side device, the first local side device and the second local side device maintain their own address pool data, where the address pool data is used to identify whether the address is in an idle state or an occupied state, where the idle state and the occupied state may be identified in a manner of 0/1, for example, the idle state may be identified by 0, and the occupied state may be identified by 1.
In the embodiment of the present invention, the first local side device and the second local side device share the same address pool, that is, the address pool configured for the first local side device is the same as the address pool configured for the second local side device. Therefore, after the first local side device sends the address pool data of the local side to the second local side device, the second local side device can update the address pool data of the local side according to the address pool data sent by the first local side device, so that the address pool data of the first local side device and the address pool data of the second local side device are consistent, and the situation that the local side device allocates occupied IP addresses to user equipment to cause IP address conflict is avoided.
In some embodiments, the synchronization message may include address pool data, and the sending, by the first local end device, the address pool data of the local end to the second local end device includes: the first local side equipment sends the synchronous message to the second local side equipment. The synchronization message may further include at least one of an address pool ID, a DHCP service module process corresponding to the address pool ID (e.g., a process number, a Virtual Local Area Network (VLAN) ID, etc.), an address pool length, and the like. The local side equipment can distinguish different DHCP servers according to the ID of the address pool, judge whether the address pool is consistent according to the length of the address pool, and update the data of the address pool according to the logical operation of the data of the address pool.
In some embodiments, the optical splitters to which the first local side device and the second local side device are connected may be different. Or, the first local device and the second local device may be connected to the same optical splitter, that is, the optical splitter connected to the first local device and the optical splitter connected to the second local device overlap, so that when the first local device fails, the affected UE may communicate through the second local device, that is, a service on the affected UE is switched to the second local device, where when the first local device fails, the affected UE includes a UE that cannot communicate through the first local device due to the failure. For example, referring to fig. 2, a pon port 1 of a first local side device 201 and a pon port 1 of a second local side device are both connected to an optical splitter 203 through an optical fiber, and the optical splitter 203 is connected to a UE205 and a UE206 through an intermediate device 209, so that the pon1 port of the first local side device 201 and the pon1 port of the second local side device 202 form one protection group1, when a connection between the pon1 port of the first local side device 201 and the optical splitter 203 fails, the first local side device 201 may notify the second local side device 202 to open the pon1 port of the second local side device 202, so that the UE205 and the UE206 may communicate through the second local side device 202, ensuring that services are not interrupted, and the UE207 and the UE208 may continue to communicate through the first local side device 201; the pon2 port of the first local end device 201 and the pon2 port of the second local end device 202 are both connected to the Optical splitter 204 through Optical fibers, and the Optical splitter 204 is connected to the UE207 and the UE208 through the intermediate device 210, so that the pon2 port of the first local end device 201 and the pon2 port of the second local end device 202 form one protection group2, and when a connection between the pon2 port of the first local end device 201 and the Optical splitter 204 fails, the first local end device 201 may notify the second local end device 202 to open the pon2 port of the second local end device 202, so that the UE207 and the UE208 may communicate through the second local end device 202, and it is ensured that services are not interrupted. In fig. 2, a first local side device includes two pon ports, and a second local side device includes two pon ports for illustration, in this embodiment of the present invention, the number of pon ports included in the first local side device may be flexibly set according to actual needs, and the number of pon ports included in the second local side device may also be flexibly set according to actual needs. In a protection group, a pon port of a first local end device may be an active port (i.e., in a normal case, a UE communicates through the active port), a pon port of a second local end device may be a standby port (i.e., in a case where the active port fails, the UE communicates through the standby port), and certainly, in a protection group, the active port and the standby port may not be distinguished. It should be noted that, here, it is exemplified that one protection group includes two pon ports, in some embodiments, the number of the pon ports included in the protection group may be flexibly set according to actual needs, for example, may be set to 3, 4, and the like, and when a pon port in the protection group fails, other pon ports in the protection group may be notified to carry traffic on the failed pon port, so as to ensure that the traffic is not interrupted.
When the first local side device fails, and the service on the affected UE is switched to the second local side device, if the failure on the first local side device is eliminated, it may be determined whether to switch the service on the affected UE back to the first local side device according to preset configuration information, if the configuration information indicates that the failure is eliminated, the service on the affected UE is switched back to the first local side device from the second local side device, and if the configuration information indicates that the failure is eliminated, the service on the affected UE is not switched back to the first local side device, the service on the affected UE is continuously processed on the second local side device.
In some examples, the first local side device sending the address pool data to the second local side device includes: and after the address pool data of the local terminal is changed, the first local terminal equipment sends the changed address pool data to the second local terminal equipment. In this case, all the address pool data may be transmitted to the second central office device, or only the changed part may be transmitted to the second central office device. It should be noted that, changing an IP address from an idle state to an occupied state (for example, allocating the IP address to the user equipment), or changing the occupied state to the idle state (for example, when the user equipment goes offline, the IP address of the user equipment changes from the occupied state to the idle state), adding an IP address, deleting the IP address, and the like all cause the address pool data to change. Therefore, in the embodiment of the present invention, after the above situation occurs, the changed address pool data may be sent to the second central office device. For example, as shown in fig. 3 below, sending, by the first local end device, after the address pool data of the local end changes, the changed address pool data to the second local end device includes:
s301: the first local terminal equipment receives a DHCP request sent by the UE.
In the embodiment of the invention, the UE can be connected with the first local terminal equipment through the intermediate equipment and the optical splitter, and after the UE is connected with the first local terminal equipment, the UE sends a DHCP request to the first local terminal equipment.
S302: and the first local terminal equipment allocates an idle IP address for the UE according to the address pool data of the local terminal.
And the first local terminal equipment selects an idle IP address from the address pool according to the address pool data of the local terminal and allocates the selected idle IP address to the UE.
In some embodiments, after the first local end device allocates an idle IP address to the UE, the UE may detect whether the allocated IP address is available, if so, the allocation is successful, if not, an IP address unavailable message is sent to the first local end device, after receiving the IP address unavailable message, the first local end device reallocates the IP address to the UE, after the allocation is successful, the address pool data is updated, and S203 is turned.
Here, the first local terminal device allocates an IP address to the UE after receiving a DHCP request sent by the UE, and in other embodiments, the first local terminal device may also allocate an IP address to the UE after monitoring that a new UE is on-line.
S303: and the first local side equipment sends the changed address pool data to the second local side equipment.
After the first local side device allocates the free address to the UE, the address pool data changes, and therefore, the changed address pool data is sent to the second local side device. During sending, the address pool data of the local side may be sent to the second central office side device, or only the changed part may be sent to the second central office side device. For example, assuming that the address pool data of the first local end device includes IP address 1, IP address 2, IP address 3 and the states of the IP addresses, after the first local end device allocates IP address 3 to the UE according to the DHCP request of the UE, the state of IP address 3 changes from the idle state to the occupied state; at this time, the first local device may transmit the IP address 1, the IP address 2, the IP address 3, and the status of each IP address to the second local device, or may transmit only the IP address 3 and the status thereof to the second local device.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when the first local side equipment is started, the address pool data of the local side is sent to the second local side equipment.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when the first local side device is connected with the second local side device or the second local side device is started, the first local side device sends the address pool data to the second local side device.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: and when the first local side equipment fails, sending the address pool data of the local side to the second local side equipment. In some embodiments, the pon port of the first local side device is an active port, the pon port of the second local side device is a standby port, and when the first local side device fails, the second local side device will carry a service and allocate an IP address to the UE. For example, both the first local side device and the second local side device are connected to the optical splitter 1, and when the connection between the first local side device and the optical splitter 1 fails, the first local side device may send address pool data of its own terminal to the second local side device.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when receiving the address pool data request message sent by the second local side equipment, the first local side equipment sends the address pool data of the local side to the second local side equipment. The address pool data request message may be a message including blank address pool data, or another message requesting the first local end device to send address pool data.
In some embodiments, after the first local side device sends the address pool data of the local side to the second local side device, the second local side device may send information for confirming receipt of the address pool data to the first local side device, the first local side device sends an ACK (Acknowledge character) to the second local side device after receiving the information for confirming receipt of the address pool data sent by the second local side device, and the second local side device updates the address pool data of the local side according to the received address pool data after receiving the ACK. In some examples, the first local side device may further start a timer after sending the address pool data of the local side to the second local side device, and determine whether the information for confirming receipt of the address pool data sent by the second local side device is received before the timer expires, and if the information for confirming receipt of the address pool data sent by the second local side device is not received before the timer expires, indicate that the sending of the address pool data fails to a certain extent, and the first local side device may select to resend the address pool data according to a preset configuration, or enter a failure flow. And if the information for confirming that the address pool data is received is sent by the second local side equipment before the timer is overtime, sending ACK (acknowledgement) to the second local side equipment. The time of the timer can be flexibly set according to actual needs.
In the embodiment of the present invention, as shown in fig. 4, the method may further include:
s401, the first local side device receives address pool data sent by the second local side device.
In this embodiment of the present invention, the second local side device may also send address pool data to the first local side device. The sending method may refer to a method in which the first local end device sends address pool data to the second local end device, and details are not described here.
S402, the first local end device updates the address pool data of the local end according to the received address pool data.
And the first local terminal equipment updates the address pool data of the local terminal according to the received address pool data after receiving the address pool data.
In some embodiments, the first local side device may further send, to the second local side device, information for confirming that the address pool data is received, after receiving the address pool data and before updating the address pool data of the local side according to the received address pool data, the second local side device sends, to the first local side device, an ACK after receiving the information for confirming that the address pool data is received, and the first local side device updates the address pool data of the local side according to the received address pool data after receiving the ACK sent by the second local side device. In some examples, after sending the information confirming the reception of the address pool data to the second local side device, the first local side device may start a timer (the time of the timer may be flexibly set according to actual needs), the first local side device determines whether to receive ACK sent by the second local side device before the timer expires, and if so, the first local side device updates the address pool data of the local side device according to the received address pool data; if not, the first local end device abandons the update, and at the moment, the first local end device can also discard the received address pool data.
According to the method for controlling the office device provided by the embodiment of the present invention, the first office device sends the address pool data of the home terminal to the second office device, wherein the first office device and the second office device share the same address pool, so that the second office device can update the address pool data of the home terminal according to the received address pool data, and in some implementation processes, the address pool data of the first office device and the address pool data of the second office device are consistent, thereby avoiding the situation that the office device allocates an occupied IP address to the user equipment to cause IP address conflict.
Example two:
an embodiment of the present invention provides a method for controlling a local side device, which is shown in fig. 5 and includes:
s501, receiving address pool data sent by the first local side equipment.
In this embodiment of the present invention, the second local side device receives the address pool data sent by the first local side device, that is, the first local side device sends the address pool data of the local side device to the second local side device. Here, the first and second are used only for distinguishing two relevant office devices, and are not limited to the office devices. The first local side device and the second local side device share the same address pool. For the related descriptions of the first local device and the second local device, please refer to the first embodiment, which is not described herein again.
And S502, updating the address pool data of the local terminal according to the received address pool data.
In the embodiment of the invention, after receiving the address pool data sent by the first local side equipment, the second local side equipment updates the address pool data of the local side according to the address pool data.
In some embodiments, after receiving the address pool data sent by the first local side device, the second local side device may send, to the first local side device, information confirming that the address pool data is received, and receive, by the first local side device, an ACK sent after receiving the information confirming that the address pool data is received, and after receiving the ACK, the second local side device updates the address pool data of the local side according to the received address pool data. In some examples, as shown with reference to fig. 6, including:
s601, the second local side device sends a message for confirming receipt of the address pool data to the first local side device, and starts a timer.
After receiving the address pool data sent by the first local side equipment, the second local side equipment sends a message for confirming the receipt of the address pool data to the first local side equipment, and starts a timer, wherein the duration of the timer can be flexibly set according to actual needs.
S602, before the timer times out, receiving the ACK sent by the first local side device, and the second local side device updating the address pool data of the local side device according to the received address pool data.
And after receiving the information which is sent by the second local side equipment and confirms that the address pool data is received, the first local side equipment sends ACK (acknowledgement) to the first local side equipment. The second local side equipment judges whether the ACK sent by the first local side equipment is received before the timer is overtime, if so, the second local side equipment updates the address pool data of the local side according to the received address pool data, and if not, the second local side equipment gives up updating and can delete the received address pool data.
In the embodiment of the present invention, after the second office device updates the address pool data of the home terminal, the second office device may allocate an IP address to the UE based on the updated address pool data. In some examples, pon ports of a first local device and a second local device are connected to the same optical splitter to form a protection group, when a connection between the pon port of the first local device and the optical splitter fails, the first local device notifies a second local device to open the pon port on the second local device in the protection group and send address pool data to the second local device, the second local device opens the pon port belonging to the protection group after receiving the notification, updates the pon port according to the received address pool data, and allocates an IP address to the UE according to the updated address pool data after the new on-line UE is connected to the second local device through the optical splitter.
In this embodiment of the present invention, the second local side device may also send the address pool data to the first local side device, where a manner in which the second local side device sends the address pool data to the first local side device may refer to a manner in which the first local side device sends the address pool data to the second local side device, and details are not described here.
According to the method for controlling the local side device provided by the embodiment of the invention, after receiving the address pool data sent by the first local side device, the second local side device updates the address pool data of the local side, wherein the first local side device and the second local side device share the same address pool, so that the address pool data of the first local side device and the address pool data of the second local side device are consistent in certain implementation processes, and the situation that the local side device allocates occupied IP addresses to user equipment to cause IP address conflict is avoided.
EXAMPLE III
The embodiment of the present invention provides a control system of an office device based on the first embodiment and the second embodiment, where the system includes a first office device and at least one second office device, and for example, may include only one second office device, and may also include two or three second office devices. The first local side device and the second local side device share the same address pool. The first local side equipment sends the address pool data of the local side to the second local side equipment, and the second local side equipment updates the address pool data of the local side according to the received address pool data after receiving the address pool data sent by the first local side equipment.
In some embodiments, referring to fig. 7, in the office device control system, the office device control method includes:
s701, the first local side equipment sends the address pool data of the local side to the second local side equipment.
Please refer to the foregoing embodiment, and details are not repeated herein, for a manner of sending address pool data from the first local side device to the second local side device.
S702, the second local side device sends a message for confirming the reception of the address pool data to the first local side device.
After receiving the address pool data sent by the first local side equipment, the second local side equipment sends information for confirming the receipt of the address pool data to the first local side equipment.
S703, the first local side device sends an ACK to the second local side device.
And after receiving the information which is sent by the second local side equipment and confirms that the address pool data is received, the first local side equipment sends ACK (acknowledgement) to the second local side equipment.
In some embodiments, after the first local side device sends the address pool data of the local side to the second local side device, the first local side device may start the timer, and determine whether the information for confirming that the address pool data is received, which is sent by the second terminal, is received before the timer expires, if yes, go to step S703, and if no, enter a failure process, or the first local side device retransmits the address pool data to the second local side device.
S704, the second office device updates the address pool data of the local device according to the received address pool data.
And after receiving the ACK sent by the first local side equipment, the second local side equipment updates the address pool data of the local side according to the received address pool data.
In some embodiments, after the second local side device sends the information confirming the reception of the address pool data to the first local side device, the timer may be started, and it is determined whether the ACK sent by the first terminal is received before the timer expires, if yes, the process goes to S704; if not, the second local side device abandons the updating.
After the second office device updates the address pool data of the home terminal, the second office device may allocate an IP address to the UE according to the updated address pool data.
According to the office device control system provided in the embodiment of the present invention, the first office device sends the address pool data of the home terminal to the second office device, and the second office device updates the address pool data of the home terminal according to the received address pool data, where the first office device and the second office device share the same address pool, and in some implementation processes, the address pool data of the first office device and the second office device are made to be consistent, thereby avoiding a situation that the office device allocates an occupied IP address to the user device, which causes IP address collision.
Example four
The embodiment of the invention provides a local side equipment control system, which comprises two local side equipments which are respectively marked as a first local side equipment and a second local side equipment, wherein the first local side equipment and the second local side equipment both comprise DHCP service modules, and the first local side equipment and the second local side equipment are both passive optical network local side equipment. And configuring the same address pool for the first local side equipment and the second local side equipment. The pon port of the first local-side device and the pon port of the second local-side device are in one-to-one correspondence, the corresponding pon ports are connected with the same optical splitter to form a protection group, in the protection group, the pon port of the first local-side device is an active port, the pon port of the second local-side device is a standby port, communication is performed through the active port under the condition that normal communication is possible through the active port, and the first local-side device notifies the second local-side device to open the corresponding standby port under the condition that normal communication is not possible through the active port (for example, a connection between the active port and the optical splitter fails).
In an example, in a central office device control system, referring to fig. 8, a central office device control method includes:
s801, a connection between the main pon port of the first local-end device and the optical splitter fails.
When the connection between the main pon port of the first local-end device and the optical splitter fails, for example, when there is a problem with the optical fiber connecting the main pon port and the optical splitter, the UE cannot communicate through the main pon port any more, so S802 is performed.
S802, the first local side device notifies the second local side device to open the corresponding standby pon port.
And the first local side equipment informs the second local side equipment to open the standby pon port corresponding to the failed main pon port. It should be noted that the main pon port and the corresponding standby pon port are connected to the same optical splitter.
And S803, the second local side device opens the corresponding standby pon port.
And after the standby pon port is opened, the service originally carried on the main pon port is transferred to the standby pon port.
S804, the first local side device sends the address pool data to the second local side device, and starts the timer.
When the connection between the main pon port of the first local equipment and the optical splitter fails, the first local equipment sends the address pool data of the local end to the second local equipment, and starts a timer, wherein the duration of the timer can be flexibly set according to actual needs.
It should be noted that, in the embodiment of the present invention, S802 may be executed first, and then S804 is executed, or S804 may be executed first, and then S802 is executed, or S802 and S804 are executed simultaneously.
S805, the second local side device sends a message confirming that the address pool data is received to the first local side device, and starts a timer.
After receiving the address pool data sent by the first local side equipment, the second local side equipment sends information for confirming the receipt of the address pool data to the first local side equipment, and starts a timer, wherein the duration of the timer can be flexibly set according to actual needs.
S806, before the local end timer expires, the first local end device receives a message sent by the second local end device to confirm that the address pool data is received, and sends an ACK to the second local end device.
Before the timer of the local side (i.e., the started timer in S804) is overtime, if a message sent by the second local side equipment to confirm that the address pool data is received, the first local side equipment sends an ACK to the second local side equipment, and if the message sent by the second local side equipment to confirm that the address pool data is received is not received before the timer is overtime, it indicates that the address pool data is failed to be sent, and S804 is turned to, and the address pool data is retransmitted to the second local side equipment. In order to avoid the situation of retransmission all the time, a retransmission number threshold value can be set, and when the retransmission number exceeds the retransmission number threshold value, even if the transmission fails, the retransmission is not carried out.
S807, before the local timer expires, the second local device receives the ACK sent by the first local device, and updates the address pool data of the local device according to the received address pool data.
Before the timer (i.e., the started timer in S805) of the second local side device expires, if the ACK sent by the first local side device is received, the second local side device updates the address pool data of the second local side device according to the received address pool data, and if the ACK sent by the first local side device is not received before the timer expires, the second local side device abandons the update.
And S808, the newly online UE is accessed to the corresponding standby pon port through the optical splitter, and the second local side equipment allocates an IP address for the UE according to the updated address pool data.
Because the standby port of the second office-side device is opened, the newly online UE can access the standby pon port, and the second office-side device allocates an IP address to the UE according to the updated address pool data.
In the embodiment of the invention, if the connection between the main pon port and the optical splitter is recovered after the standby pon port is opened, the standby pon port can be closed according to the configuration information, so that the main pon port is used for service switching; or, the standby pon port is kept in an open state according to the configuration information, so that the service is continuously carried on the standby pon port.
In some examples, the second local side device may also send address pool data to the first local side device, and the first local side device updates the address pool data of the local side device according to the received address pool data.
According to the office device control system provided in the embodiment of the present invention, the first office device sends the address pool data of the home terminal to the second office device, and the second office device updates the address pool data of the home terminal according to the received address pool data, where the first office device and the second office device share the same address pool, and in some implementation processes, the address pool data of the first office device and the second office device are made to be consistent, thereby avoiding a situation that the office device allocates an occupied IP address to the user device, which causes IP address collision.
Example five:
the present invention provides a local side device, which is marked as a first local side device, on the basis of the foregoing embodiments, and includes a sending module, configured to send address pool data of a local side to a second local side device, where the second local side device is a device that shares the same address pool with the local side.
In some examples, the first local side device sending the address pool data to the second local side device includes: and after the address pool data of the local terminal is changed, the first local terminal equipment sends the changed address pool data to the second local terminal equipment. In this case, all the address pool data may be transmitted to the second central office device, or only the changed part may be transmitted to the second central office device. It should be noted that, changing an IP address from an idle state to an occupied state (for example, allocating the IP address to the user equipment), or changing the occupied state to the idle state (for example, when the user equipment goes offline, the IP address of the user equipment changes from the occupied state to the idle state), adding an IP address, deleting the IP address, and the like all cause the address pool data to change. Therefore, in the embodiment of the present invention, after the above situation occurs, the changed address pool data may be sent to the second central office device.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when the first local side equipment is started, the address pool data of the local side is sent to the second local side equipment.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when the first local side device is connected with the second local side device or the second local side device is started, the first local side device sends the address pool data to the second local side device.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: and when the first local side equipment fails, sending the address pool data of the local side to the second local side equipment.
In some embodiments, the sending, by the first local side device, the address pool data to the second local side device includes: when receiving the address pool data request message sent by the second local side equipment, the first local side equipment sends the address pool data of the local side to the second local side equipment. The address pool data request message may be a message including blank address pool data, or another message requesting the first local end device to send address pool data.
In this embodiment of the present invention, the first local side device may further include a receiving module, configured to receive address pool data sent by the second local side device; and the updating module is used for updating the address pool data of the local terminal based on the received address pool data.
According to the office device provided by the embodiment of the present invention, the office device is marked as a first office device, and the address pool data of the home terminal is sent to a second office device, where the first office device and the second office device share the same address pool, so that the second office device can update the address pool data of the home terminal according to the received address pool data, and in some implementation processes, the address pool data of the first office device and the address pool data of the second office device are made to be consistent, thereby avoiding a situation that the office device allocates an occupied IP address to a user device, which causes IP address conflict.
Example six:
on the basis of the foregoing embodiments, an embodiment of the present invention provides an office device, which is denoted as a second office device, and includes: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving address pool data sent by a first local end device, and the first local end device is a device sharing the same address pool with a local end; and the updating module is used for updating the address pool data of the local terminal according to the received address pool data.
In some embodiments, the central office device may further include a configuration module that allocates an IP address to the UE based on the updated address pool data every day.
According to the office device provided by the embodiment of the present invention, the office device is marked as a second office device, and after receiving address pool data sent by a first office device, the address pool data of the home terminal is updated, where the first office device and the second office device share the same address pool, so that in some implementation processes, the address pool data of the first office device and the address pool data of the second office device are consistent, and a situation that the office device allocates an occupied IP address to a user device to cause IP address collision is avoided.
EXAMPLE seven
An apparatus according to an embodiment of the present invention is further provided, as shown in fig. 9, which includes a processor 901, a memory 902, and a communication bus 903, where:
the communication bus 903 is used for realizing connection communication between the processor 901 and the memory 902;
the processor 901 is configured to execute one or more computer programs stored in the memory 902, so as to implement the steps corresponding to the first local end device and/or the steps corresponding to the second local end device in the first to sixth embodiments.
Embodiments of the present invention also provide a storage medium including volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The storage medium in this embodiment may be configured to store one or more computer programs, where the one or more computer programs stored in the storage medium may be executed by the processor, and in the above-described sixth embodiment, the step corresponding to the first local end device and/or the step corresponding to the second local end device.
According to the apparatus and the storage medium provided in the embodiment of the present invention, the first local device sends the address pool data of the local device to the second local device, and the second local device updates the address pool data of the local device according to the received address pool data, where the first local device and the second local device share the same address pool, and in some implementation processes, the address pool data of the first local device and the second local device are made to be consistent, thereby avoiding a situation that the local device allocates an occupied IP address to the user device, which causes an IP address conflict.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.