CN109819353B - Method for gateway self-adaptive access passive optical network - Google Patents

Method for gateway self-adaptive access passive optical network Download PDF

Info

Publication number
CN109819353B
CN109819353B CN201910091483.3A CN201910091483A CN109819353B CN 109819353 B CN109819353 B CN 109819353B CN 201910091483 A CN201910091483 A CN 201910091483A CN 109819353 B CN109819353 B CN 109819353B
Authority
CN
China
Prior art keywords
mode
detected
curmode
gateway
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
CN201910091483.3A
Other languages
Chinese (zh)
Other versions
CN109819353A (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.)
ITIBIA TECHNOLOGIES (SUZHOU) CO LTD
Original Assignee
ITIBIA TECHNOLOGIES (SUZHOU) 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 ITIBIA TECHNOLOGIES (SUZHOU) CO LTD filed Critical ITIBIA TECHNOLOGIES (SUZHOU) CO LTD
Priority to CN201910091483.3A priority Critical patent/CN109819353B/en
Publication of CN109819353A publication Critical patent/CN109819353A/en
Application granted granted Critical
Publication of CN109819353B publication Critical patent/CN109819353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for adaptively accessing a gateway to a passive optical network, wherein the gateway can select and start a GPON mode or an EPON mode through a configuration file and load parameter configuration in the corresponding mode; after the gateway is started, reading some key states, and then calculating to obtain the PON type accessed currently; comparing the current running mode, if the current running mode is consistent, keeping running, if the current running mode is inconsistent, switching the modes, and modifying the configuration file to ensure that the next starting can be directly and normally run; the problem of self-adaptive access of the gateway to the passive optical network can be solved only from a program level by realizing the self-adaptive access to the passive optical network, and the gateway has stronger universal applicability without other hardware or chip customization.

Description

Method for gateway self-adaptive access passive optical network
Technical Field
The invention relates to a method for adaptively accessing a gateway to a passive optical network, belonging to the technical field of optical fiber communication.
Background
A Passive Optical Network (PON Passive Optical Network) is a commonly used broadband access technology in China at present, the whole Optical distribution Network mainly comprises Passive devices such as Optical fibers and Optical splitters, and a gateway is located at the outermost layer of the whole Network and is responsible for connecting users and the Optical Network and providing services such as internet access, voice, video and the like for the users.
The mainstream PON technology used in China at present mainly comprises the following steps: GPON (Gigabit-Capable PON) and EPON (Ethernet Passive Optical network). The GPON technology is a latest generation broadband passive optical integrated access standard based on ITU-T G.984.x standard, and the EPON technology is based on IEEE802.3ah issued by IEEE802.3EFM working group (the IEEE802.3-2005 standard is incorporated in 2005).
Therefore, as a gateway device provider, the problem of how to work normally under different PON accesses is faced.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides a method for adaptively accessing a gateway to a passive optical network, and aims to meet the requirement that the gateway can adaptively access the passive optical network and normally work under different PON access technologies.
The purpose of the invention is realized by the following technical scheme:
a method for gateway self-adapting access passive optical network is characterized in that: the method comprises the following steps:
s1, the gateway can work normally in GPON mode and EPON mode, can decide the starting mode and the parameters needed in each mode according to the configuration, and can load the new mode normally and work normally after being modified;
s2, when the gateway is powered on and started, the stored variable parameters are initialized,
the current working mode CurMode is a null value;
the newly detected working mode CurCheckMode is a null value;
the last detected working mode PreCheckMode is a null value;
detecting the number of times of the new working mode, CurCheckCount, is equal to a null value;
detecting result CheckResult as null value;
the detection thread then begins the cycle detection task,
the logic flow of the period detection is as follows:
s201, acquiring a current working mode CurMode of the gateway, performing different detection logics according to different working modes, and initializing a detection result CheckResult as CurMode;
s202, when the current working mode CurMode is GPON, which is obtained in the step S201, the LOS state and the LOF state are read through the optical module, and then the detection mode is calculated according to the states;
s203, when the current working mode CurMode obtained in the step S201 is EPON, reading the XVR state and the SYNC state through the optical module, and then calculating a detection mode according to the states;
s204, if the CurMode in the step S201 is the GPON mode and the LOF state is detected to be 0, the newly detected CurCheckMode is also the GPON mode;
if the CurMode in the step S201 is the EPON mode and the XVR state is detected to be 1, the newly detected CurCheckMode is GPON, and the mode is changed;
s205, if the CurMode in the step S201 is the GPON mode, the LOF state is not 0 and the LOS state is not 0, indicating that a normal GPON or EPON optical fiber is not accessed currently, the CurCheckMode is a null value, and the working mode can be kept unchanged;
if the CurMode in step S201 is the EPON mode, it is detected that the XVR state is not 1 and the DSSYNC state is not 1, indicating that no normal GPON or EPON fiber is currently accessed, the CurCheckMode is null, and the operating mode may remain unchanged;
s206, if the CurCheckMode in the step S201 is in the GPON mode and the LOS state is detected to be 0, the newly detected CurCheckMode is in the EPON mode and the mode is changed;
if the CurMode of the step S201 is the EPON mode and the DSSYNC state is detected to be 1, the newly detected mode CurCheckMode is the EPON;
s207, judging whether the mode CurCheckMode newly detected in the steps S204-206 is consistent with the previously detected working mode PreCheckMode or not;
s208, if the comparison result in the step S207 is consistent, increasing the detected new working mode frequency CurCheckCount by one, and then judging whether the CurCheckCount exceeds three times;
s209, if the comparison result in step S207 is inconsistent, updating the previous detected working mode prechecksode ═ currcheckcount, and resetting the detected new working mode frequency currcheckcount ═ 1;
s210, if the detected number of times of the new working mode, CurCheckCount, exceeds three times in the step S208, the current access is considered to be stable, and whether the running mode CurMode in the step S201 is consistent with the mode CurCheckMode newly detected in the step S207 is compared;
s211, the periodic detection is finished, the detection result is counted,
if the comparison result is inconsistent in step S210, the working mode is considered to be changed, and the detection result CheckResult is the mode currcheckmode newly detected in step S207, that is, the CheckResult is currcheckmode;
in all other cases, the default value of step S201, i.e., CheckResult ═ currmode;
s3, comparing the detection result CheckResult in the step S211 with the current operation mode CurMode in the step S201;
s4, if the comparison result in the step S3 is inconsistent, the configuration is modified according to the detection result CheckResult, the equipment is restarted, then the process in the step S2 is carried out, and after the normal start, the correct working mode can be entered;
and S5, if the comparison result in the step S3 is consistent, the working mode is normal, and the operation is kept.
Further, the method for the gateway to adaptively access the passive optical network includes that the gateway selects and starts a GPON mode or an EPON mode through a configuration file, and loads parameter configuration in the corresponding mode.
Further, in the method for gateway adaptive access to the passive optical network, a high-probability mode may be configured by default as required when the device leaves a factory.
Further, in the method for gateway adaptive access to the passive optical network, after the gateway is started, the key state is read, and then calculation is performed to obtain the PON type currently accessed.
Further, the method for gateway adaptive access to the passive optical network includes comparing the current operation modes, if the current operation modes are consistent, keeping the operation, and if the current operation modes are inconsistent, performing mode switching, and modifying the configuration file to ensure that the next startup can be directly and normally operated.
Compared with the prior art, the invention has obvious advantages and beneficial effects, and is embodied in the following aspects:
the invention realizes the self-adaptive access to the passive optical network, and the gateway can select and start a GPON mode or an EPON mode through the configuration file and load the parameter configuration in the corresponding mode; when leaving a factory, a high-possibility mode is configured by default according to the requirement; after the gateway is started, reading some key states, and then calculating to obtain the PON type accessed currently; and comparing the current running mode, if the current running mode is consistent, keeping running, and if the current running mode is inconsistent, switching the modes, and modifying the configuration file to ensure that the next starting can be directly and normally run.
The problem of self-adaptive access of the gateway to the passive optical network can be solved only from a program level, other hardware or chip customization is not needed, and the method has strong universal applicability and is easy for mass production and large-scale application.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof.
Drawings
FIG. 1: the flow chart of the invention is schematic;
FIG. 2: the detection logic flow of the invention is schematic.
Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, specific embodiments will now be described in detail.
The invention discloses a method for adaptively accessing a gateway to a passive optical network, which comprises the following steps as shown in figure 1:
s1, the gateway can work normally in GPON mode and EPON mode, can decide the starting mode and the parameters needed in each mode according to the configuration, and can load the new mode normally and work normally after being modified;
s2, when the gateway is powered on and started, the stored variable parameters are initialized,
the current working mode CurMode is a null value;
the newly detected working mode CurCheckMode is a null value;
the last detected working mode PreCheckMode is a null value;
detecting the number of times of the new working mode, CurCheckCount, is equal to a null value;
detecting result CheckResult as null value;
the detection thread then begins the cycle detection task,
the logic flow of the period detection, as shown in fig. 2, specifically includes:
s201, acquiring a current working mode CurMode of the gateway, performing different detection logics according to different working modes, and initializing a detection result CheckResult as CurMode;
s202, when the current working mode CurMode is GPON, which is obtained in the step S201, the LOS state and the LOF state are read through the optical module, and then the detection mode is calculated according to the states;
s203, when the current working mode CurMode obtained in the step S201 is EPON, reading the XVR state and the SYNC state through the optical module, and then calculating a detection mode according to the states;
s204, if the CurMode in the step S201 is the GPON mode and the LOF state is detected to be 0, the newly detected CurCheckMode is also the GPON mode;
if the CurMode in the step S201 is the EPON mode and the XVR state is detected to be 1, the newly detected CurCheckMode is GPON, and the mode is changed;
s205, if the CurMode in the step S201 is the GPON mode, the LOF state is not 0 and the LOS state is not 0, indicating that a normal GPON or EPON optical fiber is not accessed currently, the CurCheckMode is a null value, and the working mode can be kept unchanged;
if the CurMode in step S201 is the EPON mode, it is detected that the XVR state is not 1 and the DSSYNC state is not 1, indicating that no normal GPON or EPON fiber is currently accessed, the CurCheckMode is null, and the operating mode may remain unchanged;
s206, if the CurCheckMode in the step S201 is in the GPON mode and the LOS state is detected to be 0, the newly detected CurCheckMode is in the EPON mode and the mode is changed;
if the CurMode of the step S201 is the EPON mode and the DSSYNC state is detected to be 1, the newly detected mode CurCheckMode is the EPON;
s207, in order to ensure the detection accuracy, adding repeated detection to avoid the jitter problem, judging whether the mode CurCheckMode newly detected in the steps S204-206 is consistent with the previously detected working mode PreCheckMode or not;
s208, if the comparison result in the step S207 is consistent, increasing the detected new working mode frequency CurCheckCount by one, and then judging whether the CurCheckCount exceeds three times;
s209, if the comparison result in step S207 is inconsistent, updating the previous detected working mode prechecksode ═ currcheckcount, and resetting the detected new working mode frequency currcheckcount ═ 1;
s210, if the detected number of times of the new working mode, CurCheckCount, exceeds three times in the step S208, the current access is considered to be stable, and whether the running mode CurMode in the step S201 is consistent with the mode CurCheckMode newly detected in the step S207 is compared;
s211, the periodic detection is finished, the detection result is counted,
if the comparison result is inconsistent in step S210, the working mode is considered to be changed, and the detection result CheckResult is the mode currcheckmode newly detected in step S207, that is, the CheckResult is currcheckmode;
in all other cases, the default value of step S201, i.e., CheckResult ═ currmode;
s3, comparing the detection result CheckResult in the step S211 with the current operation mode CurMode in the step S201;
s4, if the comparison result in the step S3 is inconsistent, the configuration is modified according to the detection result CheckResult, the equipment is restarted, then the process in the step S2 is carried out, and after the normal start, the correct working mode can be entered;
and S5, if the comparison result in the step S3 is consistent, the working mode is normal, and the operation is kept.
The invention realizes the self-adaptive access to the passive optical network, and the gateway can select and start a GPON mode or an EPON mode through the configuration file and load the parameter configuration in the corresponding mode; when leaving a factory, a high-possibility mode is configured by default according to the requirement; after the gateway is started, reading some key states, and then calculating to obtain the PON type accessed currently; and comparing the current running mode, if the current running mode is consistent, keeping running, and if the current running mode is inconsistent, switching the modes, and modifying the configuration file to ensure that the next starting can be directly and normally run.
The problem of self-adaptive access of the gateway to the passive optical network can be solved only from a program level, other hardware or chip customization is not needed, and the method has strong universal applicability and is easy for mass production and large-scale application.
It should be noted that: the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention; while the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims (5)

1. A method for gateway self-adaptive access passive optical network is characterized in that: the method comprises the following steps:
s1, the gateway can work normally in GPON mode and EPON mode, can decide the starting mode and the parameters needed in each mode according to the configuration, and can load the new mode normally and work normally after being modified;
s2, when the gateway is powered on and started, the stored variable parameters are initialized,
the current working mode CurMode is a null value;
the newly detected working mode CurCheckMode is a null value;
the last detected working mode PreCheckMode is a null value;
detecting the number of times of the new working mode, CurCheckCount, is equal to a null value;
detecting result CheckResult as null value;
the detection thread then begins the cycle detection task,
the logic flow of the period detection is as follows:
s201, acquiring a current working mode CurMode of the gateway, performing different detection logics according to different working modes, and initializing a detection result CheckResult as CurMode;
s202, when the current working mode CurMode is GPON, which is obtained in the step S201, the LOS state and the LOF state are read through the optical module, and then the detection mode is calculated according to the states;
s203, when the current working mode CurMode obtained in the step S201 is EPON, reading the XVR state and the SYNC state through the optical module, and then calculating a detection mode according to the states;
s204, if the CurMode in the step S201 is the GPON mode and the LOF state is detected to be 0, the newly detected CurCheckMode is also the GPON mode;
if the CurMode in the step S201 is the EPON mode and the XVR state is detected to be 1, the newly detected CurCheckMode is GPON, and the mode is changed;
s205, if the CurMode in the step S201 is the GPON mode, the LOF state is not 0 and the LOS state is not 0, indicating that a normal GPON or EPON optical fiber is not accessed currently, the CurCheckMode is a null value, and the working mode can be kept unchanged;
if the CurMode in step S201 is the EPON mode, it is detected that the XVR state is not 1 and the DSSYNC state is not 1, indicating that no normal GPON or EPON fiber is currently accessed, the CurCheckMode is null, and the operating mode may remain unchanged;
s206, if the CurCheckMode in the step S201 is in the GPON mode and the LOS state is detected to be 0, the newly detected CurCheckMode is in the EPON mode and the mode is changed;
if the CurMode of the step S201 is the EPON mode and the DSSYNC state is detected to be 1, the newly detected mode CurCheckMode is the EPON;
s207, judging whether the mode CurCheckMode newly detected in the steps S204-206 is consistent with the previously detected working mode PreCheckMode or not;
s208, if the comparison result in the step S207 is consistent, increasing the detected new working mode frequency CurCheckCount by one, and then judging whether the CurCheckCount exceeds three times;
s209, if the comparison result in step S207 is inconsistent, updating the previous detected working mode prechecksode ═ currcheckcount, and resetting the detected new working mode frequency currcheckcount ═ 1;
s210, if the detected number of times of the new working mode, CurCheckCount, exceeds three times in the step S208, the current access is considered to be stable, and whether the running mode CurMode in the step S201 is consistent with the mode CurCheckMode newly detected in the step S207 is compared;
s211, the periodic detection is finished, the detection result is counted,
if the comparison result is inconsistent in step S210, the working mode is considered to be changed, and the detection result CheckResult is the mode currcheckmode newly detected in step S207, that is, the CheckResult is currcheckmode;
in all other cases, the default value of step S201, i.e., CheckResult ═ currmode;
s3, comparing the detection result CheckResult in the step S211 with the current operation mode CurMode in the step S201;
s4, if the comparison result in the step S3 is inconsistent, the configuration is modified according to the detection result CheckResult, the equipment is restarted, then the process in the step S2 is carried out, and after the normal start, the correct working mode can be entered;
and S5, if the comparison result in the step S3 is consistent, the working mode is normal, and the operation is kept.
2. The method of claim 1, wherein the method comprises: and the gateway selects and starts a GPON mode or an EPON mode through the configuration file, and loads the parameter configuration in the corresponding mode.
3. The method of claim 1, wherein the method comprises: a high-probability mode can be configured by default as required when shipped from a factory.
4. The method of claim 1, wherein the method comprises: and after the gateway is started, reading the key state, and then calculating to acquire the PON type of the current access.
5. The method of claim 1, wherein the method comprises: and comparing the current running mode, if the current running mode is consistent, keeping running, if the current running mode is inconsistent, switching the modes, modifying the configuration file, and ensuring that the next starting can be directly and normally run.
CN201910091483.3A 2019-01-30 2019-01-30 Method for gateway self-adaptive access passive optical network Active CN109819353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910091483.3A CN109819353B (en) 2019-01-30 2019-01-30 Method for gateway self-adaptive access passive optical network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910091483.3A CN109819353B (en) 2019-01-30 2019-01-30 Method for gateway self-adaptive access passive optical network

Publications (2)

Publication Number Publication Date
CN109819353A CN109819353A (en) 2019-05-28
CN109819353B true CN109819353B (en) 2021-10-29

Family

ID=66605813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910091483.3A Active CN109819353B (en) 2019-01-30 2019-01-30 Method for gateway self-adaptive access passive optical network

Country Status (1)

Country Link
CN (1) CN109819353B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166858B (en) * 2019-05-30 2021-12-07 深圳市友华软件科技有限公司 ONU self-adaptive switching method of PON network
CN110224906A (en) * 2019-06-28 2019-09-10 深圳市友华软件科技有限公司 The network uplink switching method and apparatus of intelligent gateway device
CN113596631A (en) * 2021-07-23 2021-11-02 上海市共进通信技术有限公司 Method for realizing PON type automatic switching based on key state change

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103840987A (en) * 2014-03-14 2014-06-04 烽火通信科技股份有限公司 Home gateway testing method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103840987A (en) * 2014-03-14 2014-06-04 烽火通信科技股份有限公司 Home gateway testing method

Also Published As

Publication number Publication date
CN109819353A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109819353B (en) Method for gateway self-adaptive access passive optical network
CN102902625B (en) Software performance test system and method
RU2435330C2 (en) Method to improve priority of processing, method to implement interactive service, method to generate tuned sequence of ivr operations and appropriate device and system
US20110078288A1 (en) Network unit and method for executing a function of a network termination unit using the same
CN103595566B (en) A kind of method and device for detecting free IP addresses
CN104753586A (en) Method and system for acquiring passive optical network (PON) element information
CN102929782A (en) Device and method for testing software performances
CN105704487A (en) Television stability testing method and device
CN102546558B (en) The changing method of agreement and optical network unit in a kind of optical network unit
CN102236707A (en) Method, device and system for obtaining update data of database
CN102197387B (en) Bootstrap rendezvous federation
CN109600271A (en) A kind of mixed cloud management method based on O&M auditing system
CN114661287A (en) Component linkage rendering method and device, electronic equipment, storage medium and product
CN108874304A (en) A kind of regular configuration method and device of caching system
CN116702668A (en) Regression testing method and device, electronic equipment and storage medium
CN111010308A (en) KVM service test method and device
CN101741474B (en) Optical network unit starting method and device for gigabit-capable passive optical network
US20160299820A1 (en) Processing method, device and system for data of distributed storage system
CN106160855B (en) A kind of method and apparatus that detection ONU long is luminous
CN103248423A (en) Zero setting method and zero setting device for OTDR
CN109309881B (en) ONU customized version automatic generation method based on position information
CN109495178B (en) Method and device for constructing FTTx network topology link
CN111625513A (en) Method for realizing file storage gateway
RU2622771C2 (en) Voice transmitting terminal through the internet protocol (voip) and method for call parameter setting for such terminal
CN117596141A (en) Message assembling method, device, equipment and storage medium

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