[go: up one dir, main page]

CN113810508A - Central office equipment control method, central office equipment, device, system and storage medium - Google Patents

Central office equipment control method, central office equipment, device, system and storage medium Download PDF

Info

Publication number
CN113810508A
CN113810508A CN202010555022.XA CN202010555022A CN113810508A CN 113810508 A CN113810508 A CN 113810508A CN 202010555022 A CN202010555022 A CN 202010555022A CN 113810508 A CN113810508 A CN 113810508A
Authority
CN
China
Prior art keywords
address pool
local
central office
pool data
local side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010555022.XA
Other languages
Chinese (zh)
Inventor
王志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202010555022.XA priority Critical patent/CN113810508A/en
Publication of CN113810508A publication Critical patent/CN113810508A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明实施例提供一种局端设备控制方法、局端设备、装置、系统及存储介质,通过第一局端设备将本端的地址池数据发送给第二局端设备,第二局端设备根据接收到的地址池数据更新本端的地址池数据,其中,第一局端设备和第二局端设备共享同一地址池,在某些实施过程中,使得第一局端设备和第二局端设备的地址池数据一致,避免局端设备将已被占用的IP地址分配给用户设备,导致IP地址冲突的情况。

Figure 202010555022

The embodiments of the present invention provide a central office equipment control method, central office equipment, apparatus, system and storage medium, wherein the address pool data of the local end is sent to the second central office equipment through the first central office equipment, and the second central office equipment according to the The received address pool data updates the address pool data of the local end, wherein the first central office equipment and the second central office equipment share the same address pool. In some implementation processes, the first central office equipment and the second central office equipment are made to The address pool data is consistent with the data, avoiding the situation that the central office equipment assigns the occupied IP address to the user equipment, resulting in IP address conflict.

Figure 202010555022

Description

Local side equipment control method, local side equipment, device, system and storage medium
Technical Field
The embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, but not limited to, a method, a device, a system, and a storage medium for controlling a central office device.
Background
In a PDL (Passive Optical LAN, Passive Optical local area network), the local side device usually includes a DHCP (Dynamic Host Configuration Protocol) service module, which allocates an IP address and a subnet mask to the user terminal, and the user terminal can communicate through the local side device according to the allocated IP address. In order to ensure uninterrupted or fast recovery of services, a cross-frame protection scenario of the office device becomes a typical networking scenario. In a cross-frame protection scene of the local side equipment, two local side equipments forming a protection group may allocate an IP address to the user equipment, and in some cases, the local side equipment may allocate an occupied IP address to the user equipment, thereby causing a problem of IP collision.
Disclosure of Invention
The embodiment of the invention provides a control method, a device, a system and a storage medium for local side equipment, and mainly solves the technical problem that the local side equipment allocates an occupied IP address to user equipment to cause IP address conflict.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for controlling a local side device, including: and sending the address pool data of the local terminal equipment to second local terminal equipment, wherein the second local terminal equipment shares the same address pool with the local terminal equipment.
The embodiment of the invention also provides a control method of the local side equipment, which comprises the following steps:
receiving address pool data sent by a first local end device, wherein the first local end device is a device sharing the same address pool with a local end device;
and updating the address pool data of the local terminal equipment according to the received address pool data.
An embodiment of the present invention further provides a local side device, including: and the sending module is used for sending the address pool data of the local terminal equipment to second local terminal equipment, and the second local terminal equipment shares the same address pool with the local terminal equipment.
An embodiment of the present invention further provides a local side device, including:
a receiving module, configured to receive address pool data sent by a first local end device, where the first local end device shares the same address pool with a home end;
and the updating module is used for updating the address pool data of the local terminal according to the received address pool data.
The embodiment of the invention also provides a device, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more computer programs stored in the memory to implement the steps of the first local-side device control method and/or the steps of the second local-side device control method.
An embodiment of the present invention further provides a storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the first local-side device control method and/or the steps of the second local-side device control method.
An embodiment of the present invention further provides a system for controlling a local side device, where the system includes: a first local side device and at least one second local side device, the first local side device and the second local side device sharing a 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.
According to the method, the device, the apparatus, the system and the storage medium for controlling the local side device provided by the embodiment of the present invention, the first local side device sends the address pool data of the local side to the second local side device, and the second local side device updates the address pool data according to the received address pool data, 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 some implementation processes, and the situation that the local side device allocates an occupied IP address to the user equipment to cause IP address conflict is avoided.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a control method of a central office device according to a first embodiment of the present invention;
fig. 2 is a schematic connection diagram of a first local side device and a second local side device according to a first embodiment of the present invention;
fig. 3 is a flowchart of IP address allocation according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a first local device updating address pool data according to a first embodiment of the present invention;
fig. 5 is a flowchart of a control method of the central office device according to a second embodiment of the present invention;
fig. 6 is a flowchart of updating address pool data by the second central office device according to the second embodiment of the present invention;
fig. 7 is a flowchart of a control method of a central office device according to a third embodiment of the present invention;
fig. 8 is a flowchart of a control method of the central office device according to a fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention.
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.

Claims (12)

1.一种局端设备控制方法,所述方法包括:1. A method for controlling central office equipment, the method comprising: 将本端设备的地址池数据发送给第二局端设备,所述第二局端设备为与本端设备共享同一地址池的设备。The address pool data of the local device is sent to the second central office device, where the second central office device is a device that shares the same address pool with the local device. 2.如权利要求1所述的局端设备控制方法,其特征在于,所述将本端本端设备的地址池数据发送给第二局端设备包括:2. The method for controlling central office equipment according to claim 1, wherein the sending the address pool data of the local equipment at the local end to the second central office equipment comprises: 在本端设备的地址池数据变化后,将变化后的地址池数据发送给所述第二局端设备。After the address pool data of the local device is changed, the changed address pool data is sent to the second central office device. 3.如权利要求2所述的局端设备控制方法,其特征在于,所述在本端设备的地址池数据变化后,将变化后的地址池数据发送给所述第二局端设备包括:3. central office equipment control method as claimed in claim 2, is characterized in that, described after the address pool data of local equipment changes, the address pool data after the change is sent to described second central office equipment and comprises: 接收用户终端UE发送的动态主机配置协议DHCP请求;receiving a dynamic host configuration protocol DHCP request sent by a user terminal UE; 根据本端设备的地址池数据,为所述UE分配空闲地址;Allocate an idle address to the UE according to the address pool data of the local device; 将变化后的地址池数据发送给所述第二局端设备。Send the changed address pool data to the second central office device. 4.如权利要求1所述的局端设备控制方法,其特征在于,所述第二局端设备和本端设备与同一分光器连接,所述将本端设备的地址池数据发送给第二局端设备包括:4. The method for controlling central office equipment according to claim 1, wherein the second central office equipment and the local equipment are connected to the same optical splitter, and the address pool data of the local equipment is sent to the second central office equipment. The central office equipment includes: 在本端设备与所述分光器之间的连接出现故障时,将本端设备的地址池数据发送给所述第二局端设备。When the connection between the local device and the optical splitter fails, the address pool data of the local device is sent to the second central office device. 5.如权利要求1所述的局端设备控制方法,其特征在于,所述将本端设备的地址池数据发送给第二局端设备包括:5. The method for controlling central office equipment according to claim 1, wherein the sending the address pool data of the local equipment to the second central office equipment comprises: 在本端设备启动时,将本端设备的地址池数据发送给所述第二局端设备。When the local device is started, the address pool data of the local device is sent to the second central office device. 6.如权利要求1-5任一项所述的局端设备控制方法,其特征在于,所述方法还包括:6. The central office device control method according to any one of claims 1-5, wherein the method further comprises: 接收所述第二局端设备发送的地址池数据;receiving address pool data sent by the second central office device; 基于接收到的地址池数据更新本端的地址池数据。Update the local address pool data based on the received address pool data. 7.一种局端设备控制方法,所述方法包括:7. A method for controlling central office equipment, the method comprising: 接收第一局端设备发送的地址池数据,所述第一局端设备为与本端共享同一地址池的设备;Receive address pool data sent by a first central office device, where the first central office device is a device that shares the same address pool with the local end; 根据接收到的地址池数据更新本端的地址池数据。Update the address pool data of the local end according to the received address pool data. 8.一种局端设备,包括:8. A central office device, comprising: 发送模块,用于将本端设备的地址池数据发送给第二局端设备,所述第二局端设备为与本端设备共享同一地址池的设备。The sending module is configured to send the address pool data of the local device to a second central office device, where the second central office device is a device that shares the same address pool with the local device. 9.一种局端设备,包括:9. A central office device, comprising: 接收模块,用于接收第一局端设备发送的地址池数据,所述第一局端设备为与本端共享同一地址池的设备;a receiving module, configured to receive address pool data sent by a first central office device, where the first central office device is a device that shares the same address pool with the local end; 更新模块,用于根据接收到的地址池数据更新本端的地址池数据。The update module is used to update the address pool data of the local end according to the received address pool data. 10.一种装置,所述装置包括处理器、存储器及通信总线;10. An apparatus comprising a processor, a memory and a communication bus; 所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to realize the connection communication between the processor and the memory; 所述处理器用于执行存储器中存储的一个或者多个计算机程序,以实现如权利要求1至6中任一项所述的局端设备控制方法的步骤,和/或,如权利要求7中任一项所述的局端设备控制方法的步骤。The processor is used to execute one or more computer programs stored in the memory to realize the steps of the central office equipment control method as described in any one of claims 1 to 6, and/or, as any one of claims 7. One of the steps of the central office equipment control method. 11.一种存储介质,所述存储介质存储有一个或者多个计算机程序,所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如权利要求1至6中任一项所述的局端设备控制方法的步骤,和/或,如权利要求7中任一项所述的局端设备控制方法的步骤。11. A storage medium storing one or more computer programs, the one or more computer programs being executable by one or more processors to implement any one of claims 1 to 6 The steps of the central office equipment control method, and/or the steps of the central office equipment control method according to any one of claims 7. 12.一种局端设备控制系统,所述系统包括:第一局端设备和至少一个第二局端设备,所述第一局端设备和所述第二局端设备共享同一地址池,12. A central office equipment control system, the system comprising: a first central office equipment and at least one second central office equipment, wherein the first central office equipment and the second central office equipment share the same address pool, 所述第一局端设备将本端的地址池数据发送给所述第二局端设备;The first central office device sends the address pool data of the local end to the second central office device; 所述第二局端设备根据接收到的地址池数据更新本端的地址池数据。The second central office device updates the address pool data of the local end according to the received address pool data.
CN202010555022.XA 2020-06-17 2020-06-17 Central office equipment control method, central office equipment, device, system and storage medium Withdrawn CN113810508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010555022.XA CN113810508A (en) 2020-06-17 2020-06-17 Central office equipment control method, central office equipment, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010555022.XA CN113810508A (en) 2020-06-17 2020-06-17 Central office equipment control method, central office equipment, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN113810508A true CN113810508A (en) 2021-12-17

Family

ID=78892656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010555022.XA Withdrawn CN113810508A (en) 2020-06-17 2020-06-17 Central office equipment control method, central office equipment, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113810508A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561072A (en) * 2004-02-20 2005-01-05 港湾网络有限公司 Method for sharing user IP address pool
CN104065493A (en) * 2013-03-19 2014-09-24 中兴通讯股份有限公司 Multicast switching protection method, device and system
CN105577335A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 PON (Passive Optical network) cross-network-element protection processing method and device and protection method, device and system
CN107995327A (en) * 2017-12-22 2018-05-04 盛科网络(苏州)有限公司 Information Real-Time Sharing method between Dynamic Host Configuration Protocol server based on DHCP message
CN110505320A (en) * 2019-08-13 2019-11-26 锐捷网络股份有限公司 A kind of method, apparatus, the network equipment and the storage medium of more new IP address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561072A (en) * 2004-02-20 2005-01-05 港湾网络有限公司 Method for sharing user IP address pool
CN104065493A (en) * 2013-03-19 2014-09-24 中兴通讯股份有限公司 Multicast switching protection method, device and system
CN105577335A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 PON (Passive Optical network) cross-network-element protection processing method and device and protection method, device and system
CN107995327A (en) * 2017-12-22 2018-05-04 盛科网络(苏州)有限公司 Information Real-Time Sharing method between Dynamic Host Configuration Protocol server based on DHCP message
CN110505320A (en) * 2019-08-13 2019-11-26 锐捷网络股份有限公司 A kind of method, apparatus, the network equipment and the storage medium of more new IP address

Similar Documents

Publication Publication Date Title
JP3932994B2 (en) Server handover system and method
US10257265B2 (en) Redundancy network protocol system
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
CN102904818B (en) A kind of ARP information entry updating method and device
CN100466536C (en) Systems and methods for managing protocol network failures in a clustered system
US10367680B2 (en) Network relay apparatus, gateway redundancy system, program, and redundancy method
EP2482524B1 (en) Address distribution method, device and system thereof
JP2017525008A (en) Arbitration processing method, quorum storage device, and system after cluster brain division
KR20080090834A (en) Network switch and address conflict prevention method
WO2012163007A1 (en) Method for solving internet protocol address allocation conflict and related device and system thereof
CN108075971A (en) A kind of main/standby switching method and device
JP5419907B2 (en) Network system and communication recovery method
CN108718282B (en) Method and device for determining message sequence number
CN110324375A (en) A kind of information backup method and relevant device
CN105939254B (en) The method and device of VRRP backup group state switching
EP3337046B1 (en) Communication method and device based on optical network system
JP6242376B2 (en) Communication system and subscriber side device
CN113810508A (en) Central office equipment control method, central office equipment, device, system and storage medium
CN112564983A (en) Data transmission method, device, computer system and medium
CN109039680B (en) Method and system for switching main Broadband Network Gateway (BNG) and standby BNG and BNG
EP4184822A1 (en) Method and apparatus for keeping user terminal alive
KR100396921B1 (en) Error control method in the multicasting transmission system using repeater server
CN108768798B (en) Equipment access method and device
CN113973101A (en) Method and device for processing table item information
CN114500632A (en) Communication method and communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20211217