CN105282235A - Method for solving upgrading instability of RPC at double-PON-port ONU - Google Patents
Method for solving upgrading instability of RPC at double-PON-port ONU Download PDFInfo
- Publication number
- CN105282235A CN105282235A CN201510585876.1A CN201510585876A CN105282235A CN 105282235 A CN105282235 A CN 105282235A CN 201510585876 A CN201510585876 A CN 201510585876A CN 105282235 A CN105282235 A CN 105282235A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- timer
- onu
- pon
- rpc
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention provides a method for solving upgrading instability of RPC at double-PON-port ONU. The method includes S1: registration and role state of two PON ports of ONU are acquired; S2: the PON ports are set at the state of dormancy; S3: PON port role state change is polled in real time; S4: after the establishment of the RPC connection, a C end transmits transmission upgrading file requests to an S end, a timer is started, the file is transmitted, and S7 is executed at the same time; S5: after the S end receives the request, the upgrading file is started to download and the timer is started; S6: the S end starts the upgrading and the upgrading timer is started, and after the upgrading is completed, S8 is executed; S7: the C end starts to upgrade and the upgrading timer is started; S8: the S end sends upgrading success confirmation to the C end, and then the execution is returned to S2; and S9: the C end is successively upgraded, and after the upgrading success is confirmed, the upgrading success alarm is reported, and the execution is returned to S2. The method recovers the upgrading through bidirectional communication and the starting of timing retransmission and automatic restarting mechanism to guarantee the upgrading file transmission between the double PON ports of the ONU correctly; and moreover, the method is not limited by low-level network technology and can be transplanted to multiple systems.
Description
Technical field
The present invention relates to ethernet passive optical network (EPON) field, particularly relate to a kind of RPC that solves and to upgrade unstable method at double-PON port ONU.
Background technology
EPON (EthernetPassiveOpticalNetwork ethernet passive optical network) system is made up of OLT (OpticalLineTerminal optical line terminal), ODN (OpticalDistributionNetwork Optical Distribution Network) and ONU (OpticalNetworkUnit optical network unit) three parts.
For meeting the high reliability request of EPON business to equipment, two PONONU is for supporting EPON fully protective switching function.Two PONONU contains two PONMAC chip, is independently cpu system respectively, respectively carries Flash and run identical program.
RPC (RemoteProcedureCallProtocol) remote procedure call protocol, it be a kind of by network from request service remote computer program, and do not need the agreement understanding underlying network technology.RPC adopts Client/Server pattern.Requestor is exactly a client computer, and service providing program is exactly a server.First, client calls process sends one has the recalls information of process parameter to service processes, then wait acknowledge information.At server end, process keeps sleep state until the arrival of recalls information.When a recalls information arrives, server obtains process parameter, result of calculation, sends reply message, then waits for next recalls information, and finally, client call process receives reply message, obtains proceeding results, then calls execution and proceed.RPC is unidirectional request, response type traffic model, and back-level server end does not initiate two-way request, the response modes of information to client, can not allow intercommunication flexibly between the two PON of ONU.RPC does not provide the reliability of transmission information simultaneously, and request and response can be subject to the impact of Network Abnormal.Especially file transfer can be caused unstable based on the two PONONU of RPC agreement upgrading, the indefinite problem of communication failure.
Summary of the invention
The technical problem to be solved in the present invention is, for the problems referred to above that existing RPC agreement exists, there is provided a kind of and solve the method for RPC in double-PON port ONU upgrading instability, regularly retransmitted and autoboot mechanism recovery upgrading with starting by two-way communication, guarantee accurate transmission upgrade file between the two PON of ONU, guarantee that final ONU upgrades stable, and do not limit by underlying network technology, can multisystem be transplanted to.
The present invention for solving the problems of the technologies described above adopted technical scheme is:
Solve the method for RPC in double-PON port ONU upgrading instability, the method comprises:
After step S1:ONU starts, the registration of inquiry ONU two PON mouths and role state;
The PON mouth of step S2:ONU is in resting state as the logical communications ports setting based on RPC;
The PON port role state variation of step S3: real time polling ONU;
After step S4:RPC connection establishment, RPC protocol logic port C holds and initiates the request of transmission upgrade file to S end, and starts timer, and unsuccessfully confirm if timer does not then receive S end confirmation of receipt or receives, then request is initiated in reclocking; After receiving the confirmation of receipt of S end, start to send file; Perform step S7 simultaneously;
After step S5:S end receives request, return confirmation at once, start to download upgrade file simultaneously and start timer, perform step S6; If timer then, file download does not complete, then send out transfer files to C end and unsuccessfully confirm, repeat step S5;
Step S6:S end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S6; After having upgraded, perform step S8;
Step S7:C end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S7;
Step S8:S holds transmission to upgrade successfully confirmation to C end, if timer expiry C end does not receive upgrade successfully confirmation, retransmits; Otherwise return step S2;
Step S9:C end upgrade successfully, and receive S end upgrade successfully confirmation after, report and upgrade successfully alarm; Return step S2.
By such scheme, in described step S1, the role state of PON mouth is divided into ACT and STD state.
The present invention compared with prior art has following beneficial effect:
1, the present invention is directed to simple RPC between the two PON of D class ONU communicate the file transfer instability that may cause, the indefinite problem of communication failure, develop stable upgrade communication agreement, regularly retransmitted and autoboot mechanism recovery upgrading with starting by two-way communication, allow intercommunication flexibly between the two PON of ONU, when avoiding upgrading two separate CPU systems simultaneously, transfer files and instruction instability cause upgrading unsuccessfully, guarantee accurate transmission upgrade file between the two PON of ONU, there is provided two synchronous upgrade function of PON, for engineering site provides the upgrade method of fast and reliable;
2, simultaneously, the method in the present invention is not by the restriction of underlying network technology, and can be transplanted to multisystem, the demand of synchronously upgrading for the ONU of different system in EPON network environment provides reliable solution, has practical value more widely.
Accompanying drawing explanation
Fig. 1 is that the embodiment of the present invention solves the flow chart of RPC in the method for double-PON port ONU upgrading instability;
Fig. 2 is embodiment of the present invention communication port status poll schematic diagram;
Fig. 3 is the system group network schematic diagram of double-PON port ONU.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.
As shown in Figure 1, solution RPC of the present invention is at the flow chart of the method for double-PON port ONU upgrading instability, and the method comprises:
After step S1:ONU starts, the registration of inquiry ONU two PON mouths and role state, role state is divided into ACT and STD state;
The PON mouth of step S2:ONU is in resting state as the logical communications ports setting based on RPC, and RPC protocol basis creates and stablizes connection protocol, communication default setting is for monitoring;
The PON port role state variation of step S3: real time polling ONU, if changed, starts timer;
After step S4:RPC connection establishment, RPC protocol logic port C holds and initiates transmission upgrade file request SFReq to S end, and start timer Timer, unsuccessfully confirm if timer does not then receive S end confirmation of receipt SFACK or receives, then revise port status PortSta=0, request is initiated in reclocking; After receiving S end confirmation of receipt SFACK, start to send file; Perform step S7 simultaneously;
After step S5:S end receives request, return at once and confirm SFACK (confirmation of S termination message in-coming part), start download upgrade file and start timer simultaneously, perform step S6; If timer then, file download does not complete, then send out transfer files to C end and unsuccessfully confirm, repeat step S5;
Step S6:S end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S6; After having upgraded, perform step S8;
Step S7:C end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S7;
Step S8:S holds transmission to upgrade successfully confirmation SUACK and holds to C, if timer expiry C end does not receive to upgrade successfully confirm CACK, retransmits; Otherwise return step S2;
Step S9:C end upgrades successfully, and receives upgrading successfully of S end and confirm after SUACK, reports and upgrades successfully alarm (ONUUpdateSuccess); Return step S2.
Described timer realizes the timing being used for instruction interaction, specifically comprises: preset polling interval, every 1s, 2s and 3s inquiry once, can advance when time-out agreement flow process next step.
The port polling state flow chart based on RPC agreement as shown in Figure 2, comprising: acquiescence listening state, trigger state transition event, if trigger state transition mistake or failure, then replys acquiescence listening state; If trigger state transition success, be then categorized as C port and S port, start to carry out protocol communication and transfer of data.
The system group network schematic diagram of double-PON port ONU as shown in Figure 3, comprising: EPONOLT equipment, EPONONU equipment and data network analyzer, and not decile optical branching device.OLT and ONU can normally start, and double-PON port ONU can normal registration confirm ONU role.
The present invention is not restricted to listed in specification and execution mode utilization; for a person skilled in the art; can make various corresponding change and modification according to the present invention, and all these corresponding changes and modification all belong to the protection range of the claims in the present invention.
Claims (2)
1. solve the method for RPC in double-PON port ONU upgrading instability, it is characterized in that, the method comprises:
After step S1:ONU starts, the registration of inquiry ONU two PON mouths and role state;
The PON mouth of step S2:ONU is in resting state as the logical communications ports setting based on RPC;
The PON port role state variation of step S3: real time polling ONU;
After step S4:RPC connection establishment, RPC protocol logic port C holds and initiates the request of transmission upgrade file to S end, and starts timer, and unsuccessfully confirm if timer does not then receive S end confirmation of receipt or receives, then request is initiated in reclocking; After receiving the confirmation of receipt of S end, start to send file; Perform step S7 simultaneously;
After step S5:S end receives request, return confirmation at once, start to download upgrade file simultaneously and start timer, perform step S6; If timer then, file download does not complete, then send out transfer files to C end and unsuccessfully confirm, repeat step S5;
Step S6:S end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S6; After having upgraded, perform step S8;
Step S7:C end starts to upgrade and starts upgrading timer, does not complete if timer is then upgraded, then automatic startup from preparation area continues upgrading, repeats step S7;
Step S8:S holds transmission to upgrade successfully confirmation to C end, if timer expiry C end does not receive upgrade successfully confirmation, retransmits; Otherwise return step S2;
Step S9:C end upgrade successfully, and receive S end upgrade successfully confirmation after, report and upgrade successfully alarm; Return step S2.
2. solution RPC according to claim 1 is in the method for double-PON port ONU upgrading instability, and it is characterized in that, in described step S1, the role state of PON mouth is divided into ACT and STD state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510585876.1A CN105282235B (en) | 2015-09-15 | 2015-09-15 | A method of solution RPC upgrades unstable in double-PON port ONU |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510585876.1A CN105282235B (en) | 2015-09-15 | 2015-09-15 | A method of solution RPC upgrades unstable in double-PON port ONU |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105282235A true CN105282235A (en) | 2016-01-27 |
CN105282235B CN105282235B (en) | 2018-09-14 |
Family
ID=55150540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510585876.1A Active CN105282235B (en) | 2015-09-15 | 2015-09-15 | A method of solution RPC upgrades unstable in double-PON port ONU |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105282235B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166323A (en) * | 2019-06-06 | 2019-08-23 | 杭州云象网络技术有限公司 | A method of improving block chain network reliability |
CN113132828A (en) * | 2021-06-16 | 2021-07-16 | 武汉长光科技有限公司 | Configuration method, device, equipment, system and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083564A (en) * | 2007-07-24 | 2007-12-05 | 杭州华三通信技术有限公司 | Method for updating automatically optical network unit and optical line terminal |
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN102868945A (en) * | 2012-10-15 | 2013-01-09 | 上海斐讯数据通信技术有限公司 | Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON) |
-
2015
- 2015-09-15 CN CN201510585876.1A patent/CN105282235B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083564A (en) * | 2007-07-24 | 2007-12-05 | 杭州华三通信技术有限公司 | Method for updating automatically optical network unit and optical line terminal |
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN102868945A (en) * | 2012-10-15 | 2013-01-09 | 上海斐讯数据通信技术有限公司 | Upgrading method optical network unit (ONU) in Ethernet passive optical network (EPON) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166323A (en) * | 2019-06-06 | 2019-08-23 | 杭州云象网络技术有限公司 | A method of improving block chain network reliability |
CN110166323B (en) * | 2019-06-06 | 2020-12-11 | 杭州云象网络技术有限公司 | Method for improving reliability of block chain network |
CN113132828A (en) * | 2021-06-16 | 2021-07-16 | 武汉长光科技有限公司 | Configuration method, device, equipment, system and storage medium |
CN113132828B (en) * | 2021-06-16 | 2021-08-17 | 武汉长光科技有限公司 | Configuration method, device, equipment, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105282235B (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10169966B1 (en) | Networking communication method for multi-slave cable anti-theft monitoring system | |
CN103098419B (en) | For carrying out the method and apparatus of serial data transmission with convertible data rate | |
CN105743757B (en) | The method of the free networking of RS485 communicating terminals | |
CN103595768B (en) | A kind of method that realizes configuration synchronization between virtual equipment | |
CN105183519A (en) | Device and method for fragmented upgrade of ONU software version | |
CN104317765A (en) | Serial communication based one-to-many communication system and implementation method | |
WO2016095344A1 (en) | Link switching method and device, and line card | |
CN101980171A (en) | Failure self-recovery method for software system and software watchdog system used by same | |
CN112994938B (en) | Optical network unit upgrading system and method | |
CN103517164A (en) | Data configuring and controlling method for optical network unit | |
CN107508916B (en) | Server link management method for intelligent robot | |
CN102868945B (en) | The upgrade method of ONU in a kind of EPON | |
CN104463670A (en) | Websocket-based bank preposition transaction system construction method | |
CN101729284A (en) | Equipment end initiative based method for realizing link polling in management system | |
CN105282235A (en) | Method for solving upgrading instability of RPC at double-PON-port ONU | |
CN104102607A (en) | CAN (controlled area network) bus driving method and system based on VxWorks operating system environment | |
CN104348645A (en) | Server and data transmission method of server | |
CN102291303B (en) | Single board and method for determining primary and standby states for the same | |
WO2023151428A1 (en) | Home all-optical network gateway version upgrading method, electronic device, and storage medium | |
CN109286537B (en) | Board management system and management method for frame type multi-service board | |
CN110677747B (en) | Method for managing ONU, OLT, ONU, system and storage medium | |
EP3046287A1 (en) | Port status synchronization method, and related device and system | |
CN109274767A (en) | A kind of knitting equipment data monitoring method Internet-based | |
EP2426859B1 (en) | Method and server for transferring large object | |
CN104333469A (en) | Method and system for managing fiber channel (FC) sessions of storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |