CN111107452B - Gateway information generation method of PON terminal equipment ONU and related equipment - Google Patents

Gateway information generation method of PON terminal equipment ONU and related equipment Download PDF

Info

Publication number
CN111107452B
CN111107452B CN202010039952.XA CN202010039952A CN111107452B CN 111107452 B CN111107452 B CN 111107452B CN 202010039952 A CN202010039952 A CN 202010039952A CN 111107452 B CN111107452 B CN 111107452B
Authority
CN
China
Prior art keywords
onu
serial number
gateway information
mac address
gpon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010039952.XA
Other languages
Chinese (zh)
Other versions
CN111107452A (en
Inventor
顾肖锐
陆天宇
李静
符小东
揭水平
王寅
周强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongtian Communication Technology Co ltd
Jiangsu Zhongtian Technology Co Ltd
Zhongtian Broadband Technology Co Ltd
Original Assignee
Zhongtian Communication Technology Co ltd
Jiangsu Zhongtian Technology Co Ltd
Zhongtian Broadband Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongtian Communication Technology Co ltd, Jiangsu Zhongtian Technology Co Ltd, Zhongtian Broadband Technology Co Ltd filed Critical Zhongtian Communication Technology Co ltd
Priority to CN202010039952.XA priority Critical patent/CN111107452B/en
Publication of CN111107452A publication Critical patent/CN111107452A/en
Application granted granted Critical
Publication of CN111107452B publication Critical patent/CN111107452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Abstract

The application discloses a gateway information generation method of a PON terminal device ONU, which is applied to a terminal and comprises the following steps: obtaining basic requirement information of a passive optical network PON terminal device ONU to be used; determining the MAC address of each ONU meeting the ONU number according to the initial MAC address and the target hop count; generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule; and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU. By applying the technical scheme provided by the embodiment of the application, the accuracy of gateway information generation can be improved, the problem of disorder of MAC addresses and the like is not easy to occur, and the labor cost and the maintenance cost can be reduced. The application also discloses a gateway information generation device, equipment and a storage medium of the PON terminal equipment ONU, and the gateway information generation device, the equipment and the storage medium have corresponding technical effects.

Description

Gateway information generation method of PON terminal equipment ONU and related equipment
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a gateway information generation method for an ONU as a PON terminal device and a related device.
Background
A PON, known collectively as Passive Optical Network, is a typical Passive Optical Network. The PON technology is a point-to-multipoint Optical fiber access technology, and is composed of an OLT (Optical line terminal) on the office side, an ONU (Optical Network Unit) on the user side, and an ODN (Optical Distribution Network). The term "passive" means that the ODN does not include any active electronic device or electronic power source, and all of them are composed of passive devices such as an optical splitter.
In a PON, a large number of end devices ONU are required. When a manufacturer provides ONUs, it is necessary to simultaneously generate gateway information such as MAC addresses of the ONUs, form product labels of the ONUs according to the gateway information, and attach the product labels to product surfaces. And internal software, configuration parameters and the like of the subsequent ONU are configured according to the generated gateway information.
At present, the configuration of gateway information such as MAC addresses and the like is often performed on each ONU manually one by one, and the MAC addresses of different ONUs are different. The manual configuration is time-consuming and labor-consuming, and the problems of omission, dislocation and the like are easy to occur. The number of the ONUs is large, so that once an error occurs, the product label needs to be formed and adhered again, other devices can be damaged by mistake in the repair and disassembly process, and the labor cost and the maintenance cost are increased.
Disclosure of Invention
The application aims to provide a gateway information generation method of an ONU (optical network unit) of a PON (passive optical network) terminal device and related equipment, so that the accuracy of gateway information generation is improved, and the labor cost and the maintenance cost are reduced.
In order to solve the technical problem, the application provides the following technical scheme:
a gateway information generation method of a PON terminal device ONU is applied to a terminal, and the method comprises the following steps:
obtaining basic requirement information of inactive passive optical network PON terminal equipment ONU, wherein the basic requirement information at least comprises an initial media access control MAC address, a target hop count and the ONU number;
determining the MAC address of each ONU meeting the ONU number according to the starting MAC address and the target hop count;
generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
In a specific embodiment of the present application, the basic requirement information further includes a supported network type, and the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule includes:
if the supported network type is a Gigabit Passive Optical Network (GPON) type, determining the GPON serial number of each ONU according to a set GPON serial number prefix and the MAC address of each ONU;
if the supported network type is an Ethernet Passive Optical Network (EPON) type, determining that the GPON serial number of each ONU is empty, or determining the GPON serial number of each ONU according to the MAC address of each ONU;
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU and a preset rule.
In one embodiment of the present application, the method further includes:
determining the serial port serial number of each ONU according to the preset serial port serial number prefix and the GPON serial number of each ONU;
correspondingly, the generating of the gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, and the preset rule includes:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU and a preset rule.
In a specific embodiment of the present application, the determining a serial number of each ONU according to a set serial number prefix and a GPON serial number of each ONU includes:
aiming at each ONU, combining the preset serial port serial number prefix with the GPON serial number of the ONU to obtain the combined serial number of the ONU;
calculating to obtain a check value of the combined serial number of the ONU;
and combining the combined serial number of the ONU with the check value to obtain the serial number of the ONU.
In one embodiment of the present application, the method further includes:
determining the equipment serial number of each ONU according to the MAC address of each ONU and the serial port serial number of each ONU;
correspondingly, the generating of the gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, and the preset rule includes:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, the equipment serial number of each ONU and a preset rule.
In one embodiment of the present application, the tag in the gateway information of each ONU is determined based on the MAC address of the corresponding ONU.
In a specific embodiment of the present application, the basic requirement information further includes a type of a target terminal device and a model of a target device, and the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule includes:
determining the terminal equipment type in the gateway information of each ONU as the target terminal equipment type;
and determining the equipment model in the gateway information of each ONU as the target equipment model.
In a specific embodiment of the present application, the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule includes:
and determining the serial number, the wireless password, the login password, the network name, the 5G network name and the management interface address in the gateway information of each ONU according to a preset rule.
In a specific embodiment of the present application, after the generating gateway information of each ONU, the method further includes:
and respectively generating the two-dimensional code of each ONU according to the gateway information of each ONU.
A gateway information generating device of a PON terminal device ONU is applied to a terminal, and the device comprises:
the system comprises a basic requirement information obtaining module, a basic requirement information obtaining module and a basic requirement information obtaining module, wherein the basic requirement information is used for obtaining basic requirement information of inactive passive optical network PON terminal equipment ONU, and the basic requirement information at least comprises an initial Media Access Control (MAC) address, a target hop count and the ONU number;
the MAC address determining module is used for determining the MAC address of each ONU meeting the ONU number according to the starting MAC address and the target hop count;
the gateway information generation module is used for generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
A gateway information generating device of a PON terminal device ONU comprises:
a memory for storing a computer program;
a processor, configured to implement the steps of the gateway information generation method of the PON terminal device ONU when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, implements the steps of the gateway information generating method of the PON terminal device ONU according to any one of the above.
By applying the technical scheme provided by the embodiment of the application, after the basic requirement information of the PON terminal equipment ONU to be used is obtained, the MAC address of each ONU meeting the ONU number can be determined according to the starting MAC address and the target hop count, and the gateway information of each ONU can be generated based on the determined MAC address of each ONU and the preset rule. The gateway information of each ONU is automatically generated through the terminal, so that the accuracy of generating the gateway information can be improved, the problem of disorder of MAC addresses and the like is not easy to occur, and the labor cost and the maintenance cost can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and for a user in the field, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a method for generating gateway information of an ONU in a PON terminal device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a basic requirement information input interface according to an embodiment of the present application;
fig. 3 is a schematic diagram of a gateway information generation result in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a gateway information generating apparatus of a PON terminal device ONU in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a gateway information generating device of a PON terminal device ONU in an embodiment of the present application.
Detailed Description
The core of the application is to provide a gateway information generation method of a PON terminal device ONU, the method can be applied to terminals with information processing capability, such as mobile phones, tablet computers, notebook computers and the like, and the terminals can provide a gateway information generation function for users or provide the gateway information generation function for the users through a certain function application program. In the process that a user uses the terminal, the terminal can automatically generate gateway information of each ONU according to the currently obtained basic requirement information of the standby PON terminal equipment ONU, and specifically, the terminal can automatically generate the gateway information of each ONU for the user through the function application program or one of other information processing application programs.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments obtained by a user of ordinary skill in the art without any creative effort based on the embodiments in the present application belong to the protection scope of the present application.
Referring to fig. 1, an implementation flowchart of a method for generating gateway information of a PON terminal device ONU according to an embodiment of the present application is shown, where the method includes the following steps:
s110: and obtaining basic requirement information of the passive optical network PON terminal equipment ONU to be used.
The basic requirement information at least comprises an initial Media Access Control (MAC) address, a target hop count and the number of the ONUs.
In the embodiment of the present application, when the gateway information of the ONU needs to be generated, the basic requirement information of the PON terminal device ONU to be used may be obtained first. Specifically, the basic requirement information of the standby ONU can be determined by providing an information input interface for a user and obtaining the information input by the user. The user here may refer to an operator having gateway information generation requirements.
As shown in fig. 2, a schematic diagram of the information input interface includes an initial MAC address column, a target hop count column, and an ONU number column, where a user may input a desired initial MAC address in the initial MAC address column, input a desired number of MAC addresses that each ONU needs to occupy in the target hop count column, and input a total number of ONUs that are desired to generate gateway information in the ONU number column.
The PON terminal device ONU to be used may be an ONU produced by a manufacturer and delivered to a user, such as an operator.
The basic requirement information may include at least a starting MAC (Media Access Control) address, a target hop count, and an ONU number. The number of ONUs refers to the total number of the inactive PON terminal devices ONUs, the starting MAC address refers to the starting address of the MAC address to be occupied by the inactive PON terminal devices ONUs, and the target hop count refers to the number of MAC addresses to be occupied by each of the inactive PON terminal devices ONUs. The target hop count may be one of 1-16.
S120: and determining the MAC address of each ONU meeting the ONU number according to the initial MAC address and the target hop count.
The obtained basic requirement information of the PON terminal equipment ONU to be used at least comprises an initial MAC address, a target hop count and the ONU number, and the MAC address of each ONU meeting the ONU number can be determined according to the initial MAC address and the target hop count. In these inactive PON terminal devices ONUs, the MAC address of the first ONU may be set as the starting MAC address, and the number of hops of the MAC addresses of two adjacent ONUs may be set as the target number of hops. If the target hop count is 8, the MAC address of the first ONU is 24: D5:1C:00:00:01, and the MAC address of the second ONU is 24: D5:1C:00:00:09, … ….
S130: and generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule.
In the embodiment of the application, after the MAC address of each ONU is determined, various types of required information may be determined based on the determined MAC address of each ONU and a preset rule, and then gateway information of each ONU is generated. The gateway information of each ONU may include a burst MAC value, a tag, a GPON serial number, a serial number, a network name, a terminal device type, and the like.
The burning MAC value in the gateway information of each ONU may be the MAC address of the corresponding ONU. For example, the burning MAC value in the gateway information of the first ONU is 24: D5:1C:00:00:01, and the burning MAC value in the gateway information of the second ONU is 24: D5:1C:00:00:09, … ….
The label in the gateway information of each ONU may be determined based on the MAC address of the respective ONU, e.g. may be the same as the MAC address of the respective ONU without the delimiter.
By applying the method provided by the embodiment of the invention, after the basic requirement information of the PON terminal equipment ONU to be used is obtained, the MAC address of each ONU meeting the ONU number can be determined according to the initial MAC address and the target hop count, and the gateway information of each ONU can be generated based on the determined MAC address of each ONU and the preset rule. The gateway information of each ONU is automatically generated through the terminal, so that the accuracy of generating the gateway information can be improved, the problem of disorder of MAC addresses and the like is not easy to occur, and the labor cost and the maintenance cost can be reduced.
In an embodiment of the present application, the basic requirement information further includes supported network types, and step S130 may include the following steps:
the method comprises the following steps: if the supported network type is a Gigabit Passive Optical Network (GPON) type, determining the GPON serial number of each ONU according to a set GPON serial number prefix and the MAC address of each ONU;
step two: if the supported network type is an Ethernet Passive Optical Network (EPON) type, determining that the GPON serial number of each ONU is empty, or determining the GPON serial number of each ONU according to the MAC address of each ONU;
step three: and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU and a preset rule.
For convenience of description, the above three steps are combined for illustration.
In this embodiment of the application, the obtained basic requirement information of the PON terminal device to be used may further include a supported Network type, such as a Gigabit-Capable Passive Optical Network (GPON) type or an Ethernet Passive Optical Network (Ethernet Passive Optical Network) type. As shown in fig. 2, in the information input interface, the user may select the network types supported by the ONUs in the supported network type column.
If the supported network type is the GPON type, the GPON serial number of each ONU can be determined according to the set GPON serial number prefix and the MAC address of each ONU. Specifically, for each ONU, the GPON serial number prefix and N bits after the MAC address of the ONU may be used to form the GPON serial number of the ONU, and N may be set and adjusted according to actual conditions, for example, set to 8.
The GPON serial number prefix may be preset and obtained, or may be extracted from the obtained basic requirement information, for example, obtained through information input by a user in a GPON serial number prefix column in the information input interface shown in fig. 2. If the prefix of the GPON serial number is: ZTTG.
If the supported network type is the EPON type, the GPON serial number of each ONU may be determined to be null, or the GPON serial number of each ONU may be determined according to the MAC address of each ONU. Specifically, for each ONU, the MAC address of the ONU without the delimiter can be determined as the GPON serial number of the ONU.
And generating gateway information of each ONU based on the determined MAC of each ONU, the GPON serial number of each ONU and a preset rule. And the GPON serial number in the gateway information of each ONU is the determined GPON serial number of the corresponding ONU.
In one embodiment of the present application, the method may further comprise the steps of:
determining the serial port serial number of each ONU according to the preset serial port serial number prefix and the GPON serial number of each ONU;
correspondingly, generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, and a preset rule, including:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU and a preset rule.
In the embodiment of the application, after the GPON serial number of each ONU is determined, the serial number of each ONU can be determined according to the set serial number prefix and the GPON serial number of each ONU, so that gateway information of each ONU is generated based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, and a preset rule. And the serial number in the gateway information of each ONU is the determined serial number of the corresponding ONU.
The serial number prefix may be preset and obtained, or may be extracted from the obtained basic requirement information, for example, obtained through information input by a user in a serial number prefix column in the information input interface shown in fig. 2. The input value range of serial port serial number prefix can be 0-1, A-Z, and is fixed to 18 bits. If the serial port serial number prefix is: 01FFFFFFFF011FFF 40.
In a specific embodiment of the present application, the serial number of each ONU may be determined by the following steps:
the method comprises the following steps: aiming at each ONU, combining the preset serial port serial number prefix with the GPON serial number of the ONU to obtain the combined serial number of the ONU;
step two: calculating to obtain a check value of the combined serial number of the ONU;
step three: and combining the combined serial number of the ONU with the check value to obtain the serial number of the ONU.
That is, for each ONU, the set serial number prefix may be combined with the GPON serial number of the ONU to obtain the combined serial number of the ONU. If the serial port serial number prefix is: 01FFFFFF 011FFF40, the GPON serial number of the ONU is: combining the ZTTG1CF00708 to obtain the combined serial number of the ONU: 01FFFFFFFF011FFF40ZTTG1CF 00708.
And calculating to obtain the check value of the combined serial number of the ONU. Specifically, the ASCII value of the combined serial number of the ONU may be subjected to xor calculation to obtain a corresponding check value. The check value of the combined serial number of the ONU in the above example is: 65.
and combining the combined serial number of the ONU with the check value to obtain the serial number of the ONU. The serial number of the ONU finally obtained in the above example is: 01FFFFFFFF011FFF40ZTTG1CF 0070865.
By the method, the serial port serial number of each ONU can be accurately obtained.
In one embodiment of the present application, the method may further comprise the steps of:
determining the equipment serial number of each ONU according to the MAC address of each ONU and the serial port serial number of each ONU;
correspondingly, generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU and a preset rule, wherein the gateway information comprises:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, the equipment serial number of each ONU and a preset rule.
In the embodiment of the application, after the MAC address of each ONU and the serial number of each ONU are determined, the device serial number of each ONU may be determined according to the MAC address of each ONU and the serial number of each ONU. Specifically, for each ONU, the device serial number of the ONU may be composed of M bits before the MAC address of the ONU and the serial number of the ONU. M can be set and adjusted according to actual conditions, such as 6. For example, the MAC address of the ONU is 24:d5:1c:00:00:01, and the first six bits of the MAC address are: 24D51C, the serial number of the ONU is: 01FFFFFFFF011FFF40ZTTG1CF0070865, the determined equipment serial number of the ONU is: 24D51C-01FFFFFFFF011FFF40ZTTG1CF 0070865.
Further, gateway information of each ONU may be generated based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, the device serial number of each ONU, and a preset rule. And the equipment serial number in the gateway information of each ONU is the determined equipment serial number of the corresponding ONU.
In an embodiment of the present application, the basic requirement information may further include a target terminal device type and a target device model, and step S130 may include the following steps:
the method comprises the following steps: determining the type of the terminal equipment in the gateway information of each ONU as the type of target terminal equipment;
step two: and determining the equipment model in the gateway information of each ONU as a target equipment model.
In this embodiment of the application, the obtained basic requirement information of the inactive PON terminal device ONU may further include a target terminal device type and a target device model. Target terminal device type such as GPON/4+1+ WiFi (2.4G) and target device model such as ZE 140. This information can be obtained by the information entered by the user in the target terminal device type field and the target device model field in the information input interface shown in fig. 2.
The terminal device type in the gateway information of each ONU can be directly determined to be the target terminal device type, and the device type in the gateway information of each ONU can be directly determined to be the target device type.
In one embodiment of the present application, step S130 may include the steps of:
and determining the serial number, the wireless password, the login password, the network name and the management interface address in the gateway information of each ONU according to a set rule.
In the embodiment of the present application, a rule may be set in advance, and when generating gateway information, part of information in the gateway information may be generated according to the rule, and a serial number, a wireless password, a login password, a network name, a 5G network name, a management interface address, and the like in the gateway information of each ONU are determined.
For example, the sequence numbers can be automatically generated in sequence, the interval is 1, and if the number of ONUs is 10000, the sequence numbers can be from 1 to 10000;
for wireless passwords, random 8-bit lower case ASCII strings (0-9, a-z) can be automatically generated;
for the login password, the wireless password values can be the same;
for the network name, the network name can be automatically generated according to a set format, such as: CU _ XXXX, where XXXX is a 4-bit random ASCII string (0-9, a-z);
for the 5G network name, the name can be automatically generated according to a set format, such as: CU _ XXXX _5G, XXXX are 4-bit random ASCII strings (0-9, a-z), the values of which are the same as the above network names;
in practical applications, the basic requirement information may further include WiFi types, such as 2.4G and 2.4G &5G, which may be obtained through information input by a user in a WiFi type column in the information input interface shown in fig. 2. If the WiFi type is 2.4G, only the network name can be generated, and if the WiFi type is 2.4G &5G, the network name and the 5G network name can be generated at the same time;
for the management interface address, the address can be fixed as a set address, such as http:// 192.168.1.1.
In this embodiment of the present application, a file storage path address may also be preset, and after gateway information of each ONU is generated, the generated gateway information is output and displayed through a text file, and the text file may be stored in the set file storage path address. Such as the E: \ onu \ project management \ mac application.
Fig. 3 is a schematic diagram of partial information in the generated gateway information of 20 ONUs, where a terminal device type of each ONU is GPON/4+1+ WiFi (2.4G), the type is a supported network type, and is EPON, a device model is ZE140, a GPON _ SN is a GPON serial number, and is 24D51C000001-24D51C000099, a burning MAC value is 24: D5:1C:00:00:01-24: D5:1C:00:00: 00:99, a wireless password and a login password are randomly generated, and a tag and a serial number are generated based on the MAC value.
In an embodiment of the present application, after generating the gateway information of each ONU, the method may further include the following steps:
and respectively generating the two-dimensional code of each ONU according to the gateway information of each ONU.
After the gateway information of each ONU is generated, information such as a burning MAC value, a GPON serial number, a serial number, an equipment serial number, a tag, a terminal equipment type, an equipment model, a wireless password, a login password, a network name, a 5G network name, a management interface address, and the like of each ONU can be obtained. For each ONU, the two-dimensional code of the ONU can be generated according to the gateway information of the ONU, and the gateway information of the ONU can be quickly obtained based on the two-dimensional code.
Examples are as follows:
single frequency:
http://op.smartont.net/app/downloadssid1=CU_ezr1&password=pbdwemx1&username=user&pwd=pbdwemx1&model=GPON&type=ZG141&sn=ZTTG1CF00708&serialnumber=24D51C-01FFFFFFFF011FFF40ZTTG1CF0070865&ip=192.168.1.1
double-frequency:
http://op.smartont.net/app/downloadssid1=CU_ezr1&ssid5=CU_ezr1_5G&password=pbdwemx1&username=user&pwd=pbdwemx1&model=GPON&type=ZG141&sn=ZTTG1CF00708&serialnumber=24D51C-01FFFFFFFF011FFF40ZTTG1CF0070865&ip=192.168.1.1
wherein, "ssid 1" is "network name", "ssid 5" is "5G network name", "password" is "wireless password", "username" is fixed as "user", "pwd" is "login password", "model" is "supported network type", "type" is "device model", "sn" is "GPON serial number", "serial number" is "device serial number", and "ip" is management interface address.
In practical application, after the gateway information of each ONU and the two-dimensional code of each ONU are generated, a product label may be formed based on the gateway information of each ONU and the two-dimensional code of each ONU, and the product label is attached to the surface of the corresponding ONU so as to be delivered to a user for use. Meanwhile, the gateway information needs to be written into the product to form configuration parameters. Through the gateway information of automatically generating each ONU, the accuracy of information generation is improved, the working efficiency is improved, the occurrence of the condition that the corresponding label is printed again and pasted again by mistake and leakage is reduced, the equipment management and control and the tracing are facilitated, the product operation and maintenance are facilitated, and the labor input cost and the maintenance cost are reduced.
Corresponding to the above method embodiment, the present application further provides a gateway information generating apparatus of a PON terminal device ONU, which is applied to a terminal, and a gateway information generating apparatus of a PON terminal device ONU described below and a gateway information generating method of a PON terminal device ONU described above may be referred to in correspondence with each other.
Referring to fig. 4, the apparatus may include the following modules:
a basic requirement information obtaining module 410, configured to obtain basic requirement information of an inactive passive optical network PON terminal device ONU, where the basic requirement information at least includes an initial media access control MAC address, a target hop count, and a number of ONUs;
the MAC address determining module 420 is configured to determine, according to the initial MAC address and the target hop count, a MAC address of each ONU that meets the ONU number;
a gateway information generating module 430, configured to generate gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
By applying the device provided by the embodiment of the invention, after the basic requirement information of the PON terminal equipment ONU to be used is obtained, the MAC address of each ONU meeting the ONU number can be determined according to the starting MAC address and the target hop count, and the gateway information of each ONU can be generated based on the determined MAC address of each ONU and the preset rule. The gateway information of each ONU is automatically generated through the terminal, so that the accuracy of generating the gateway information can be improved, the problem of disorder of MAC addresses and the like is not easy to occur, and the labor cost and the maintenance cost can be reduced.
In a specific embodiment of the present application, the basic requirement information further includes a supported network type, and the gateway information generating module 430 is configured to:
if the supported network type is a Gigabit Passive Optical Network (GPON) type, determining the GPON serial number of each ONU according to a set GPON serial number prefix and the MAC address of each ONU;
if the supported network type is an Ethernet Passive Optical Network (EPON) type, determining that the GPON serial number of each ONU is empty, or determining the GPON serial number of each ONU according to the MAC address of each ONU;
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU and a preset rule.
In a specific embodiment of the present application, the gateway information generating module 430 is further configured to:
determining the serial port serial number of each ONU according to the preset serial port serial number prefix and the GPON serial number of each ONU;
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU and a preset rule.
In a specific embodiment of the present application, the gateway information generating module 430 is configured to:
aiming at each ONU, combining the preset serial port serial number prefix with the GPON serial number of the ONU to obtain the combined serial number of the ONU;
calculating to obtain a check value of the combined serial number of the ONU;
and combining the combined serial number of the ONU with the check value to obtain the serial number of the ONU.
In a specific embodiment of the present application, the gateway information generating module 430 is further configured to:
determining the equipment serial number of each ONU according to the MAC address of each ONU and the serial port serial number of each ONU;
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, the equipment serial number of each ONU and a preset rule.
In one embodiment of the present application, the tag in the gateway information of each ONU is determined based on the MAC address of the corresponding ONU.
In a specific embodiment of the present application, the basic requirement information further includes a type of a target terminal device and a model of the target device, and the gateway information generating module 430 is configured to:
determining the type of the terminal equipment in the gateway information of each ONU as the type of target terminal equipment;
and determining the equipment model in the gateway information of each ONU as a target equipment model.
In a specific embodiment of the present application, the gateway information generating module 430 is configured to:
and determining the serial number, the wireless password, the login password, the network name, the 5G network name and the management interface address in the gateway information of each ONU according to a preset rule.
In a specific embodiment of the present application, the method further includes a two-dimensional code generation module, configured to:
and after the gateway information of each ONU is generated, generating the two-dimensional code of each ONU according to the gateway information of each ONU.
Corresponding to the above method embodiment, an embodiment of the present application further provides a gateway information generating device of a PON terminal device ONU, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the gateway information generation method of the PON terminal equipment ONU when executing the computer program.
As shown in fig. 5, which is a schematic view of a configuration of a gateway information generating device of a PON terminal device ONU, the gateway information generating device of the PON terminal device ONU may include: a processor 10, a memory 11, a communication interface 12 and a communication bus 13. The processor 10, the memory 11 and the communication interface 12 all communicate with each other through a communication bus 13.
In the embodiment of the present application, the processor 10 may be a Central Processing Unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, etc.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform an operation in an embodiment of a gateway information generation method of the PON terminal device ONU.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
obtaining basic requirement information of inactive passive optical network PON terminal equipment ONU, wherein the basic requirement information at least comprises an initial media access control MAC address, a target hop count and the ONU number;
determining the MAC address of each ONU meeting the ONU number according to the initial MAC address and the target hop count;
generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function and an image playing function), and the like; the storage data area may store data created during use, such as address data, rule data, and the like.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 13 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 5 does not constitute a limitation on the gateway information generating device of the PON terminal device ONU in the embodiment of the present application, and in practical applications, the gateway information generating device of the PON terminal device ONU may include more or less components than those shown in fig. 5, or some components may be combined.
Corresponding to the above method embodiment, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for generating gateway information of an ONU as the PON terminal device are implemented.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. A professional user may use different methods for implementing the described functionality for each particular application, but such implementation should not be considered beyond the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present application are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application. It should be noted that, for the ordinary user in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims (12)

1. A gateway information generation method of a PON terminal device ONU is applied to a terminal, and the method comprises the following steps:
obtaining basic requirement information of inactive passive optical network PON terminal equipment ONU, wherein the basic requirement information at least comprises an initial media access control MAC address, a target hop count and the ONU number; the target hop count refers to the number of MAC addresses required to be occupied by each ONU in the PON terminal equipment ONU to be used;
determining the MAC address of each ONU meeting the ONU number according to the starting MAC address and the target hop count;
generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
2. The method according to claim 1, wherein the basic requirement information further includes supported network types, and the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule comprises:
if the supported network type is a Gigabit Passive Optical Network (GPON) type, determining the GPON serial number of each ONU according to a set GPON serial number prefix and the MAC address of each ONU;
if the supported network type is an Ethernet Passive Optical Network (EPON) type, determining that the GPON serial number of each ONU is empty, or determining the GPON serial number of each ONU according to the MAC address of each ONU;
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU and a preset rule.
3. The method of claim 2, further comprising:
determining the serial port serial number of each ONU according to the preset serial port serial number prefix and the GPON serial number of each ONU;
correspondingly, the generating of the gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, and the preset rule includes:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU and a preset rule.
4. The method according to claim 3, wherein the determining the serial number of each ONU according to the set serial number prefix and the GPON serial number of each ONU comprises:
aiming at each ONU, combining the preset serial port serial number prefix with the GPON serial number of the ONU to obtain the combined serial number of the ONU;
calculating to obtain a check value of the combined serial number of the ONU;
and combining the combined serial number of the ONU with the check value to obtain the serial number of the ONU.
5. The method of claim 3, further comprising:
determining the equipment serial number of each ONU according to the MAC address of each ONU and the serial port serial number of each ONU;
correspondingly, the generating of the gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, and the preset rule includes:
and generating gateway information of each ONU based on the determined MAC address of each ONU, the GPON serial number of each ONU, the serial number of each ONU, the equipment serial number of each ONU and a preset rule.
6. The method of claim 1, wherein the label in the gateway information of each ONU is determined based on the MAC address of the corresponding ONU.
7. The method according to claim 1, wherein the basic requirement information further includes a target terminal device type and a target device model, and the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule comprises:
determining the terminal equipment type in the gateway information of each ONU as the target terminal equipment type;
and determining the equipment model in the gateway information of each ONU as the target equipment model.
8. The method according to claim 1, wherein the generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule comprises:
and determining the serial number, the wireless password, the login password, the network name, the 5G network name and the management interface address in the gateway information of each ONU according to a preset rule.
9. The method according to any of claims 1 to 8, further comprising, after the generating gateway information for each ONU:
and respectively generating the two-dimensional code of each ONU according to the gateway information of each ONU.
10. A gateway information generating device of a PON terminal equipment ONU is characterized in that the device is applied to a terminal and comprises the following components:
the system comprises a basic requirement information obtaining module, a basic requirement information obtaining module and a basic requirement information obtaining module, wherein the basic requirement information is used for obtaining basic requirement information of inactive passive optical network PON terminal equipment ONU, and the basic requirement information at least comprises an initial Media Access Control (MAC) address, a target hop count and the ONU number; the target hop count refers to the number of MAC addresses required to be occupied by each ONU in the PON terminal equipment ONU to be used;
the MAC address determining module is used for determining the MAC address of each ONU meeting the ONU number according to the starting MAC address and the target hop count;
the gateway information generation module is used for generating gateway information of each ONU based on the determined MAC address of each ONU and a preset rule;
and the burning MAC value in the gateway information of each ONU is the MAC address of the corresponding ONU.
11. A gateway information generating device of a PON terminal device ONU is characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the gateway information generating method of a PON terminal device ONU according to any one of claims 1 to 9 when executing said computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the gateway information generating method of the PON terminal device ONU according to any one of claims 1 to 9.
CN202010039952.XA 2020-01-15 2020-01-15 Gateway information generation method of PON terminal equipment ONU and related equipment Active CN111107452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010039952.XA CN111107452B (en) 2020-01-15 2020-01-15 Gateway information generation method of PON terminal equipment ONU and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010039952.XA CN111107452B (en) 2020-01-15 2020-01-15 Gateway information generation method of PON terminal equipment ONU and related equipment

Publications (2)

Publication Number Publication Date
CN111107452A CN111107452A (en) 2020-05-05
CN111107452B true CN111107452B (en) 2021-11-16

Family

ID=70426998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010039952.XA Active CN111107452B (en) 2020-01-15 2020-01-15 Gateway information generation method of PON terminal equipment ONU and related equipment

Country Status (1)

Country Link
CN (1) CN111107452B (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572692A (en) * 2008-04-28 2009-11-04 华为技术有限公司 Method, system and equipment for IP address assignment
CN101621406B (en) * 2009-07-28 2012-12-26 中兴通讯股份有限公司 Method for configuring domestic gateways in batch, configuring equipment and domestic gateways
WO2011107052A2 (en) * 2011-04-20 2011-09-09 华为技术有限公司 Method and access node for preventing address conflict
CN102394950B (en) * 2011-12-23 2013-12-11 中国电信股份有限公司 Method and system for IP address distribution of network security terminal under home gateway
CN102857838B (en) * 2012-06-29 2016-01-13 广东东研网络科技股份有限公司 The again configuration processing method of OLT end to the failure of ONU end parameter configuration
CN104425001A (en) * 2013-08-22 2015-03-18 北京卓越信通电子股份有限公司 System for simultaneously burning multiple switches, method thereof and corresponding switches
CN103763148B (en) * 2014-02-25 2019-12-20 上海斐讯数据通信技术有限公司 ONU automatic authorization configuration recovery method
CN104080020B (en) * 2014-07-11 2017-11-10 新华三技术有限公司 The automatic delivery method and device of ONU equipment configuration
JP6239132B2 (en) * 2014-08-26 2017-11-29 三菱電機株式会社 Slave station apparatus, optical communication system, and abnormality detection method
CN105430118B (en) * 2015-12-28 2019-05-17 广州慧睿思通信息科技有限公司 A kind of MAC Address generation method and device
CN106850875A (en) * 2017-02-15 2017-06-13 湖南长城银河科技有限公司 A kind of MAC Address of Network Card method for burn-recording and device based on platform of soaring
CN106888408A (en) * 2017-02-15 2017-06-23 金钱猫科技股份有限公司 The method and system that a kind of ONT is automatically configured
CN108021412A (en) * 2017-12-19 2018-05-11 中天宽带技术有限公司 A kind of ONU burnings automated management system and method
CN110471676B (en) * 2019-08-22 2023-07-18 深圳市讯盾科技有限公司 MAC address burning method and system

Also Published As

Publication number Publication date
CN111107452A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN104378758A (en) Access point connecting method, terminal and server
CN102377570B (en) Method and device for generating dynamic passwords
CN107943499B (en) System upgrading method, device, terminal and storage medium
CN103618794A (en) Automatic login method, terminal and server
CN107168971B (en) Data processing method and device for webpage application
CN107908680A (en) Management method, electronic device and the computer-readable recording medium of wechat public platform
CN101854568B (en) Processing method, device and system of user identity information in GPON (Gigabit-Capable PON) system
US11050552B2 (en) System and method for hashing a data string using an image
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN103067372B (en) Cloud terminal logs in method and the login system of Cloud Server
CN110147410B (en) Data verification method, system, device and equipment in block chain type account book
CN102546558B (en) The changing method of agreement and optical network unit in a kind of optical network unit
CN109660487B (en) Authorization method based on H5 webpage, storage medium, electronic device and system
CN104519095A (en) Dynamic message pushing method and system thereof, server-side, and client
CN105072608B (en) A kind of method and device of administrative authentication token
CN111107452B (en) Gateway information generation method of PON terminal equipment ONU and related equipment
CN105072212B (en) To code method and to code system
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP
CN104052774A (en) Data transmission method and system
CN110677248B (en) Safe binding method and system based on narrowband Internet of things
CN101783742A (en) Discovery method and device of network topology
CN103036715A (en) Method and device of equipment management and corresponding network management system
CN113922972B (en) Data forwarding method and device based on MD5 identification code
CN107094271B (en) Method and system for realizing butt joint of optical network unit and optical line terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant