CN111836137B - System and method for remotely logging in optical network unit - Google Patents

System and method for remotely logging in optical network unit Download PDF

Info

Publication number
CN111836137B
CN111836137B CN202010599323.2A CN202010599323A CN111836137B CN 111836137 B CN111836137 B CN 111836137B CN 202010599323 A CN202010599323 A CN 202010599323A CN 111836137 B CN111836137 B CN 111836137B
Authority
CN
China
Prior art keywords
management control
control unit
unit
execution result
command
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
CN202010599323.2A
Other languages
Chinese (zh)
Other versions
CN111836137A (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.)
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
China Information And Communication Technology Group Co ltd
Fiberhome Telecommunication Technologies 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 China Information And Communication Technology Group Co ltd, Fiberhome Telecommunication Technologies Co Ltd filed Critical China Information And Communication Technology Group Co ltd
Priority to CN202010599323.2A priority Critical patent/CN111836137B/en
Publication of CN111836137A publication Critical patent/CN111836137A/en
Application granted granted Critical
Publication of CN111836137B publication Critical patent/CN111836137B/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
    • 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

Abstract

The invention discloses a system and a method for remotely logging in an optical network unit, wherein the system comprises an optical line terminal and an optical network unit, the optical line terminal comprises a command line unit and a first management control unit, and the optical network unit comprises a second management control unit, an agent unit and a local service unit. In the invention, a Telnet command is input in a command line unit at an OLT side, the Telnet command is transmitted to the ONU through a first management control unit at the OLT and a second management control unit at the ONU, a proxy unit at the ONU side converts the received command into a Telnet protocol, and the Telnet protocol interacts with a local service unit of a local loopback address to realize remote login of the ONU. And the ONU feeds back the execution result to a command line unit at the OLT side through the agent unit, the first management control unit and the second management control unit, so that the Telnet interaction between the OLT and the ONU is realized.

Description

System and method for remotely logging in optical network unit
Technical Field
The present invention relates to the field of optical communications, and more particularly, to a system and method for remotely logging in an optical network unit.
Background
In a Passive Optical Network (PON) system, when an Optical Network Unit (ONU) in a current Network fails, a remote login to the ONU is required at some time, and currently, a main method for remotely connecting the Telnet to the ONU is to create a service channel and an IP (Internet Protocol, IP) address of a three-layer interface between an OLT (OLT) and the ONU. The IP addresses of the three layers of interfaces are issued to the ONU by the OLT through an optical network unit Management Control Interface OMCI (OMCI for short) or OAM (Operation Administration and Maintenance for short), the ONU creates the three layers of interfaces based on the IP addresses, and Telnet interaction is performed between the OLT and the ONU through respective IP addresses.
The remote connection in the foregoing manner is susceptible to security attacks, and Telnet cannot be performed in the case of a failure in the creation of a traffic channel and a three-layer interface. For example, in some cases, when a three-layer interface connection of an ONU fails or a PON service configuration between an OLT and the ONU has a problem, a three-layer interface connection between Telnet addresses or IP addresses of the ONU cannot be acquired, and the ONU cannot be remotely logged in.
At present, some manufacturers perform Telnet by allocating private network IP addresses of the same network segment to the OLT and the ONUs under the OLT, only a special Telnet channel can be used for Telnet protocol interaction, and problems of channel blockage or failure in establishment of three-layer IP interfaces and the like caused by OMCI or OAM configuration failure may occur.
Disclosure of Invention
In view of the above defects or improvement needs in the prior art, the present invention provides a system and a method for logging in an optical network unit remotely, which aim to complete the remote Telnet from an OLT to an ONU without creating a service channel and a three-layer interface in a PON system, thereby solving the technical problem that Telnet cannot be performed when the three-layer channel is failed to be created or a remote port is sealed.
To achieve the above object, according to an aspect of the present invention, there is provided a system for remotely logging in an optical network unit, the system comprising: the optical line terminal comprises a command line unit and a first management control unit, and the optical network unit comprises a second management control unit, an agent unit and a local service unit;
the command line unit is used for receiving a Telnet command and outputting an execution result, wherein the execution result is obtained by the optical network unit responding to the Telnet command;
the first management control unit is used for transmitting the encapsulated Telnet command to the corresponding second management control unit and receiving an execution result from the optical network unit;
the second management control unit is used for receiving the Telnet command, transmitting the Telnet command to the agent unit, receiving the execution result transmitted by the agent unit and informing the first management control unit of acquiring the execution result;
the agent unit is used for receiving the Telnet command, transmitting the Telnet command to the local service unit and receiving the execution result;
the local service unit is used for receiving the Telnet command, responding to the Telnet command to obtain a corresponding execution result, and transmitting the execution result to the proxy unit.
Preferably, the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on an OMCI protocol;
the first management control unit is used for encapsulating the Telnet command into a private ME attribute and transmitting the encapsulated Telnet command to the second management control unit;
the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command;
the second management control unit is used for packaging the execution result into the private ME attribute and informing the first management control unit to acquire the execution result through an AVC command.
Preferably, the system is an EPON system, and the first management control unit and the second management control unit are both management control units based on an OAM protocol;
the first management control unit is used for encapsulating the Telnet command into a private extended attribute and transmitting the encapsulated Telnet command to the second management control unit;
the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command;
the second management control unit is used for packaging the execution result into a private extended attribute and notifying the first management control unit to acquire the execution result through an extended event.
Preferably, the agent unit is configured to perform format conversion on the Telnet command in the form of a string to obtain a Telnet command in an NVT format;
and the proxy unit is used for carrying out format conversion on the execution result in the NVT format to obtain the execution result in the form of a character string.
Preferably, the agent unit is embedded in the second management control unit, and the agent unit and the second management control unit are in the same thread; or the like, or, alternatively,
the agent unit is independent of the second management control unit, and the agent unit and the second management control unit transmit data in an interprocess message interaction mode.
According to another aspect of the present invention, there is provided a method for remotely logging in an optical network unit, the method being applied to a system for remotely logging in an optical network unit, the system including an optical line terminal and an optical network unit, the optical line terminal including a command line unit and a first management control unit, the optical network unit including a second management control unit, a proxy unit and a local service unit;
the method comprises the following steps:
the command line unit receives a Telnet command, and the first management control unit packages the Telnet command and transmits the Telnet command to the second management control unit;
the second management control unit analyzes the encapsulated Telnet command to obtain the Telnet command, transmits the Telnet command to the proxy unit, and transmits the Telnet command to the local service unit;
the local service unit responds to the Telnet command to obtain a corresponding execution result, and transmits the execution result to the agent unit, and the agent unit transmits the execution result to the second management control unit;
the second management control unit packages the execution result and informs the first management control unit to obtain the execution result;
the first management control unit analyzes the encapsulated execution result to obtain the execution result, and transmits the execution result to the command line unit so as to present the execution result on the command line unit.
Preferably, the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on an OMCI protocol;
the first management control unit transmitting the Telnet command to the second management control unit after encapsulating the Telnet command includes:
the first management control unit encapsulates the Telnet command into a private ME attribute, and transmits the encapsulated Telnet command to the second management control unit;
the second management control unit packages the execution result and transmits the execution result to the first management control unit, and the method comprises the following steps:
and the second management control unit encapsulates the execution result into a private ME attribute and informs the first management control unit of acquiring the execution result through an AVC command.
Preferably, the system of the remote login optical network unit is an EPON system, and the first management control unit and the second management control unit are both management control units based on an OAM protocol;
the first management control unit transmitting the Telnet command to the second management control unit after encapsulating the Telnet command includes:
the first management control unit encapsulates the Telnet command into a private extended attribute, and transmits the encapsulated Telnet command to the second management control unit;
the second management control unit packages the execution result and transmits the execution result to the first management control unit, and the method comprises the following steps:
and the second management control unit encapsulates the execution result into a private extended attribute, and notifies the first management control unit of acquiring the execution result through an extended event.
Preferably, the proxy unit transferring the Telnet command to the local service unit includes:
the agent unit carries out format conversion on the Telnet command in the character string form to obtain the Telnet command in the NVT format;
and transmitting the Telnet command in the NVT format to the local service unit.
Preferably, the agent unit transfers the execution result to the second management control unit;
the proxy unit performs format conversion on the execution result in the NVT format to obtain an execution result in a character string form;
and transmitting the execution result in the form of the character string to the second management control unit.
Generally, compared with the prior art, the technical scheme of the invention has the following beneficial effects: the invention provides a system and a method for remotely logging in an optical network unit, wherein the system comprises an optical line terminal and an optical network unit, the optical line terminal comprises a command line unit and a first management control unit, and the optical network unit comprises a second management control unit, an agent unit and a local service unit; the command line unit is used for receiving a Telnet command and outputting an execution result, wherein the execution result is obtained by the optical network unit responding to the Telnet command; the first management control unit is used for transmitting the encapsulated Telnet command to the corresponding second management control unit and receiving an execution result from the optical network unit; the second management control unit is used for receiving the Telnet command, transmitting the Telnet command to the agent unit, receiving the execution result transmitted by the agent unit and informing the first management control unit of acquiring the execution result; the agent unit is used for receiving the Telnet command, transmitting the Telnet command to the local service unit and receiving the execution result; the local service unit is used for receiving the Telnet command, responding to the Telnet command to obtain a corresponding execution result, and transmitting the execution result to the proxy unit.
In the invention, a Telnet command is input in a command line unit at an OLT side, the Telnet command is transmitted to the ONU through a first management control unit at the OLT and a second management control unit at the ONU, a proxy unit at the ONU side converts the received command into a Telnet protocol, and the Telnet protocol interacts with a local service unit of a local loopback address to realize remote login of the ONU. And the ONU feeds back the execution result to a command line unit at the OLT side through the agent unit, the first management control unit and the second management control unit, so that the Telnet interaction between the OLT and the ONU is realized. By adopting the mode of the invention, IP addresses do not need to be allocated, the condition that Telnet cannot be used due to the failure of establishing part of three-layer interfaces is avoided, the problem that Telnet cannot be used under the condition that the access of the three-layer interfaces is not controlled after the security attack is avoided, and the problem that Telnet cannot be used when the operator defaults that the equipment cannot be allowed to open the external open port is avoided.
Drawings
Fig. 1 is a schematic structural diagram of an optical network system according to an embodiment of the present invention;
fig. 2 is a method for remotely logging in an optical network unit according to an embodiment of the present invention;
FIG. 3 is a diagram of another method for remotely logging into an optical network unit according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for remotely logging in an optical network unit according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1:
referring to fig. 1, the present embodiment provides a system for logging in an optical network unit remotely, where the system for logging in an optical network unit remotely includes: the Optical Line Terminal (OLT) comprises a command line unit and a first management control unit, and the Optical Network Unit (ONU) comprises a second management control unit, an agent unit and a local service unit.
The command line unit can receive commands input from the outside and can also present execution results corresponding to names.
The first management control unit and the second management control unit are management control interfaces, and are responsible for transmitting commands and execution results of the commands between the OLT and the ONUs. And when the system is a GPON system, the first management control unit and the second management control unit are management control units based on an OMCI protocol. And when the system is an EPON system, the first management control unit and the second management control unit are both management control units based on an OAM protocol.
The agent unit can be understood as a Telnet client agent, and is configured to perform format conversion on the Telnet command and the execution result, so as to ensure that the converted Telnet command can be recognized by the local service unit, and the converted execution result can be recognized by the second management control unit and the first management control unit.
In an alternative embodiment, the agent unit may be embedded in the second management control unit, the data interacted between the agent unit and the second management control unit may be directly obtained through interface calling after internal conversion, and the agent unit and the second management control unit may be in the same thread, which is convenient for implementation. In another alternative embodiment, the agent unit may be independent from the second management control unit, and the agent unit and the second management control unit communicate data by means of inter-process message interaction.
The local service unit can be understood as a Telnet local service end, and the local service unit mainly performs interaction of a Telnet protocol with the proxy unit through a local loopback address. The local loopback address is 127.0.0.1, does not belong to any classified address class, and is a local virtual interface of the device.
At the OLT side, a Telnet command is input through a command line unit, wherein the Telnet command comprises a command for establishing connection and a control command in the Telnet process. The command for establishing the connection carries the identification number of the ONU to be logged in, and the corresponding ONU is determined through the identification number of the ONU, so that the Telnet command is transmitted to a second management control unit at the ONU side. The command for establishing the connection also comprises a user name and a password, and the OLT is authorized to remotely log in the ONU through the user name and the password.
In this embodiment, the command line unit is configured to receive a Telnet command and further configured to output an execution result, where the execution result is obtained by the optical network unit in response to the Telnet command.
The first management control unit is configured to transmit the encapsulated Telnet command to the corresponding second management control unit, and is further configured to receive an execution result from the optical network unit.
The second management control unit is used for receiving the Telnet command, transmitting the Telnet command to the agent unit and receiving the execution result transmitted by the agent unit.
The proxy unit is used for receiving the Telnet command so that the optical network unit responds to the Telnet command to obtain a corresponding execution result. Specifically, the proxy unit transmits the Telnet command to the local service unit for Telnet interaction, and the local service unit responds to the Telnet command to obtain an execution result and sends the execution result to the proxy unit.
In an optional embodiment, the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on an OMCI protocol.
In this case, the first management control unit is configured to encapsulate the Telnet command into a private ME (Managed entities) attribute, and transfer the encapsulated Telnet command to the second management control unit; the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command; the second management control unit is configured to encapsulate the execution result into a private ME attribute, and notify the first management control unit of acquisition of the execution result through an AVC (attribute value Change, abbreviated as AVC) command.
Since the standard ITU-T g.988 specification of OMCI does not contain Telnet function related definitions, private ME attributes may be selected among custom ME attributes reserved in ITU-T g.988 to define the function of Telnet to encapsulate Telnet commands and execution results into the private ME attributes.
In another optional embodiment, the system is an EPON system, and the first management control unit and the second management control unit are both management control units based on an OAM protocol.
In this case, the first management control unit is configured to encapsulate the Telnet command into a private extended attribute, and transfer the encapsulated Telnet command to the second management control unit. And the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command. The second management control unit is used for packaging the execution result into a private extended attribute and notifying the first management control unit to acquire the execution result through an extended event.
Because the Telnet function is not defined in the standard IEEE802.3 specification of OAM, the attribute management object of OAM may be extended, for example, the attribute of OAM is extended by using the Organization Specific Extension mechanism to obtain the private Extension attribute, so as to encapsulate the Telnet command and the execution result into the private Extension attribute.
In an actual application scenario, the Telnet command input by the command line unit is a command in a character string form, the Telnet command transmitted by the first management control unit and the second management control unit is also in a character string form, and the Telnet command in the character string form needs to be converted into a Telnet command in an NVT (network Virtual Terminal, abbreviated as NVT) format by the proxy unit, and then the Telnet command in the NVT format is transmitted to the local service unit.
The local service unit responds to the Telnet command to obtain an execution result in an NVT format, the proxy unit also converts the execution result in the NVT format into an execution result in a character string format, and then the execution result in the character string format is fed back to the second management control unit.
In this embodiment, a Telnet command is input in a command line unit on the OLT side, the Telnet command is transmitted to the ONU by a first management control unit on the OLT side and a second management control unit on the ONU side, and a proxy unit on the ONU side converts the received command into a Telnet protocol, and interacts with a local service unit of a local loopback address to implement remote login to the ONU. And the ONU feeds back the execution result to a command line unit at the OLT side through the agent unit, the first management control unit and the second management control unit, so that the Telnet interaction between the OLT and the ONU is realized. By adopting the mode of the embodiment, IP addresses do not need to be allocated, the condition that Telnet cannot be used due to the fact that the establishment of partial three-layer interfaces fails is avoided, the problem that Telnet cannot be used under the condition that the access of the three-layer interfaces is not controlled after the security attack is avoided, and the problem that Telnet cannot be used when the operator defaults that the device cannot be allowed to open the external open port is avoided.
Example 2:
the foregoing embodiment mainly describes a structure of a passive optical network system, and the following describes a method for the passive optical network system to implement remote login to an optical network unit in the foregoing embodiment.
Referring to fig. 2, the method for remotely logging in an optical network unit includes the following steps:
step 10: the command line unit receives a Telnet command, and the first management control unit packages the Telnet command and transmits the Telnet command to the second management control unit.
The command line unit provides command interaction from Telnet to the ONU externally, receives a Telnet command input by a user, and outputs an execution result of the Telnet command by the ONU side.
And when the first management control unit is a management control unit based on an OMCI protocol, the first management control unit adopts a private ME attribute to bear a Telnet command.
And when the first management control unit is a management control unit based on an OAM protocol, the first management control unit adopts the private extended attribute to bear the Telnet command.
Step 11: the second management control unit analyzes the encapsulated Telnet command to obtain the Telnet command, transmits the Telnet command to the proxy unit, and transmits the Telnet command to the local service unit.
The second management control unit is responsible for analyzing the Telnet command transmitted by the protocol from the protocol and then transmitting the Telnet command to the agent unit.
After receiving the Telnet command, the proxy unit converts the format of the Telnet command in the form of a character string to obtain the Telnet command in the NVT format, and transmits the Telnet command in the NVT format to the local service unit.
Step 12: the local service unit responds to the Telnet command to obtain a corresponding execution result, and transmits the execution result to the agent unit, and the agent unit transmits the execution result to the second management control unit.
In this embodiment, the proxy unit transmits the Telnet command to the local service unit to perform Telnet interaction, and the local service unit responds to the Telnet command to obtain an execution result and sends the execution result to the proxy unit.
The proxy unit performs format conversion on the execution result in the NVT format to obtain an execution result in a character string form; and transmitting the execution result in the form of the character string to the second management control unit.
Step 13: and the second management control unit packages the execution result and informs the first management control unit of acquiring the execution result.
In this embodiment, the execution result fed back to the proxy unit by the local service unit is in NVT format, and after receiving the execution result, the proxy unit performs format conversion on the execution result to obtain an execution result in a character string format, and then transmits the execution result to the second management control unit.
And when the second management control unit is a management control unit based on an OMCI protocol, the second management control unit encapsulates the execution result into a private ME attribute, and the private ME attribute is adopted to carry the execution result corresponding to the Telnet command.
And when the second management control unit is a management control unit based on an OAM protocol, the second management control unit encapsulates the execution result into the private extended attribute, and the private extended attribute is adopted to carry the execution result corresponding to the Telnet command.
In this embodiment, after the second management control unit parses the Telnet command, the second management control unit determines the type of the Telnet command, and performs corresponding processing according to the type of the Telnet command.
And if the Telnet command is a command for establishing connection, the second management control unit initiates Telnet connection to the local service unit through the proxy unit. If the Telnet command is a control command in the Telnet process, the second management control unit converts the control command into a corresponding Telnet protocol message, and then interacts with the local service unit through the proxy unit. When the connection is established, the connection is established by using the TCP message, and the second management control unit does not need to convert the connection establishing command into a Telnet protocol message. The control command after the connection is established needs to be interacted by a Telnet protocol, and the second management control unit needs to convert the control command into a corresponding Telnet protocol message.
Step 14: the first management control unit analyzes the encapsulated execution result to obtain the execution result, and transmits the execution result to the command line unit so as to present the execution result on the command line unit.
Example 3:
when the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on the OMCI protocol, in fig. 3, the first management control unit is shown as a first OMCI unit, and the second management control unit is shown as a second OMCI unit. As shown in fig. 3, the method for remotely logging in an ONU comprises the following steps:
step 20: sending a Telnet command.
In this embodiment, the command line unit sends the received Telnet command to the first OMCI unit.
Step 21: and encapsulating the Telnet command into the private ME attribute, and transmitting the encapsulated Telnet command.
In this embodiment, the first OMCI unit encapsulates the Telnet command into the private ME attribute, and transfers the encapsulated Telnet command to the second OMCI unit. In an actual application scenario, a Set method may be called and an attribute may be pointed to Me-157(Large String) to implement a command supporting at most 375 bytes.
Step 22: and analyzing the OMCI message to obtain a Telnet command, and sending the Telnet command to the proxy unit.
In this embodiment, the second OMCI unit parses the OMCI message to obtain a Telnet command, and sends the Telnet command to the proxy unit.
Step 23: and after carrying out format conversion on the Telnet command, sending the Telnet command to the local service unit.
In this embodiment, the proxy unit converts the Telnet command in the form of a character string into a Telnet command in the NVT format, and then transmits the Telnet command in the NVT format to the local service unit.
Step 24: and feeding back an execution result.
In this embodiment, the local service unit responds to the Telnet command to obtain an execution result in the NVT format, and feeds back the execution result to the proxy unit.
Step 25: and sending the execution result after format conversion.
In this embodiment, the proxy unit performs format conversion on the execution result in the NVT format into an execution result in the form of a character string, and then feeds back the execution result in the form of the character string to the second OMCI unit.
Step 26: and encapsulating the execution result into the private ME attribute, and transmitting the encapsulated execution result.
In this embodiment, the second OMCI unit encapsulates the execution result into the private ME attribute, and notifies the first OMCI unit of the acquisition of the execution result through an AVC command, so as to deliver the encapsulated execution result to the first OMCI unit. Wherein the Telnet command and the execution result are encapsulated in different private ME attributes.
Step 27: the execution result after decapsulation is passed.
In this embodiment, the first OMCI unit parses the encapsulated execution result to obtain an decapsulated execution result, and transmits the decapsulated execution result to the command line unit. Specifically, the first OMCI unit performs Get and Get Next operations on the Table attribute of the private ME to obtain an execution result in the Table attribute of the private ME.
Aiming at the problem, a user inputs different commands in a command line unit of the OLT, and repeatedly executes the steps to finish the forwarding of the commands and the display of command execution results.
Example 4:
when the system is an EPON system, and the first management control unit and the second management control unit are both management control units based on an OAM protocol, in fig. 4, the first management control unit is shown as a first OAM unit, and the second management control unit is shown as a second OAM unit. As shown in fig. 4, the method for remotely logging in an ONU comprises the following steps:
step 30: sending a Telnet command.
In this embodiment, the command line unit sends the received Telnet command to the first OAM unit.
Step 31: and encapsulating the Telnet command into the first private extension attribute, and transmitting the encapsulated Telnet command.
In this embodiment, the first OMCI unit encapsulates the Telnet command into the first private extended attribute, and transmits the encapsulated Telnet command to the second OAM unit. Specifically, an Extended Set Request operation Request may be invoked to Set the Extended attribute.
Step 32: and analyzing the OAM message to obtain a Telnet command, and sending the Telnet command to the proxy unit.
In this embodiment, the second OAM unit parses the OAM message to obtain a Telnet command, and sends the Telnet command to the proxy unit.
Step 33: and after carrying out format conversion on the Telnet command, sending the Telnet command to the local service unit.
In this embodiment, the proxy unit converts the Telnet command in the form of a character string into a Telnet command in the NVT format, and then transmits the Telnet command in the NVT format to the local service unit.
Step 34: and feeding back an execution result.
In this embodiment, the local service unit responds to the Telnet command to obtain an execution result in the NVT format, and feeds back the execution result to the proxy unit.
Step 35: and sending the execution result after format conversion.
In this embodiment, the proxy unit performs format conversion on the execution result in the NVT format into an execution result in the form of a character string, and then feeds back the execution result in the form of a character string to the second OAM unit.
Step 36: and encapsulating the execution result into a second private extended attribute, and transmitting the encapsulated execution result.
In this embodiment, the second OAM unit encapsulates the execution result into the second private extended attribute, and notifies the first OAM unit to obtain the execution result through the extended event, so as to deliver the encapsulated execution result to the first OAM unit.
Step 37: the execution result after decapsulation is passed.
In this embodiment, the first OAM unit parses the encapsulated execution result, obtains a decapsulated execution result, and passes the decapsulated execution result to the command line unit. Specifically, the execution result in the private Extended attribute is obtained by the Extended Get Request operation.
And aiming at the condition that different commands are input by a user in a command line unit of the OLT, the steps are repeatedly executed, and the forwarding of the commands and the display of command execution results are completed.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A system for telnet optical network units, the system comprising: the optical line terminal comprises a command line unit and a first management control unit, and the optical network unit comprises a second management control unit, an agent unit and a local service unit;
the command line unit is used for receiving a Telnet command and outputting an execution result, wherein the execution result is obtained by the optical network unit responding to the Telnet command;
the first management control unit is used for transmitting the encapsulated Telnet command to the corresponding second management control unit and receiving an execution result from the optical network unit;
the second management control unit is used for receiving the Telnet command, transmitting the Telnet command to the agent unit, receiving the execution result transmitted by the agent unit and informing the first management control unit of acquiring the execution result; the first management control unit and the second management control unit are management control interfaces, and are responsible for transmitting commands and execution results of the commands between the OLT and the ONU; when the system is a GPON system, the first management control unit and the second management control unit are management control units based on an OMCI protocol; when the system is an EPON system, the first management control unit and the second management control unit are both management control units based on an OAM protocol;
the agent unit is used for receiving the Telnet command, transmitting the Telnet command to the local service unit and receiving the execution result;
the local service unit is used for receiving the Telnet command, responding to the Telnet command to obtain a corresponding execution result, and transmitting the execution result to the proxy unit.
2. The system of claim 1, wherein the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on an OMCI protocol;
the first management control unit is used for encapsulating the Telnet command into a private ME attribute and transmitting the encapsulated Telnet command to the second management control unit;
the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command;
the second management control unit is used for packaging the execution result into the private ME attribute and informing the first management control unit to acquire the execution result through an AVC command.
3. The system of claim 1, wherein the system is an EPON system, and wherein the first management control unit and the second management control unit are both OAM protocol based management control units;
the first management control unit is used for encapsulating the Telnet command into a private extended attribute and transmitting the encapsulated Telnet command to the second management control unit;
the second management control unit is used for analyzing the encapsulated Telnet command to obtain the Telnet command;
the second management control unit is used for packaging the execution result into a private extended attribute and notifying the first management control unit to acquire the execution result through an extended event.
4. The system according to claim 1, wherein the agent unit is configured to perform format conversion on a Telnet command in a string form to obtain a Telnet command in an NVT format;
and the proxy unit is used for carrying out format conversion on the execution result in the NVT format to obtain the execution result in the form of a character string.
5. The system according to any one of claims 1 to 4, wherein the agent unit is embedded in the second management control unit, and the agent unit and the second management control unit are in the same thread; or the like, or, alternatively,
the agent unit is independent of the second management control unit, and the agent unit and the second management control unit transmit data in an interprocess message interaction mode.
6. A method for logging in optical network unit remotely is characterized in that the method is applied to a system for logging in optical network unit remotely, the system comprises an optical line terminal and an optical network unit, the optical line terminal comprises a command line unit and a first management control unit, and the optical network unit comprises a second management control unit, an agent unit and a local service unit;
the method comprises the following steps:
the command line unit receives a Telnet command, and the first management control unit packages the Telnet command and transmits the Telnet command to the second management control unit;
the second management control unit analyzes the encapsulated Telnet command to obtain the Telnet command, transmits the Telnet command to the proxy unit, and transmits the Telnet command to the local service unit; the first management control unit and the second management control unit are management control interfaces, and are responsible for transmitting commands and execution results of the commands between the OLT and the ONU; when the system is a GPON system, the first management control unit and the second management control unit are management control units based on an OMCI protocol; when the system is an EPON system, the first management control unit and the second management control unit are both management control units based on an OAM protocol;
the local service unit responds to the Telnet command to obtain a corresponding execution result, and transmits the execution result to the agent unit, and the agent unit transmits the execution result to the second management control unit;
the second management control unit packages the execution result and informs the first management control unit to obtain the execution result;
the first management control unit analyzes the encapsulated execution result to obtain the execution result, and transmits the execution result to the command line unit so as to present the execution result on the command line unit.
7. The method according to claim 6, wherein the system is a GPON system, and the first management control unit and the second management control unit are both management control units based on OMCI protocol;
the first management control unit transmitting the Telnet command to the second management control unit after encapsulating the Telnet command includes:
the first management control unit encapsulates the Telnet command into a private ME attribute, and transmits the encapsulated Telnet command to the second management control unit;
the second management control unit packages the execution result and transmits the execution result to the first management control unit, and the method comprises the following steps:
and the second management control unit encapsulates the execution result into a private ME attribute and informs the first management control unit of acquiring the execution result through an AVC command.
8. The method of claim 6, wherein the system of the telnet optical network unit is an EPON system, and the first management control unit and the second management control unit are both OAM protocol based management control units;
the first management control unit transmitting the Telnet command to the second management control unit after encapsulating the Telnet command includes:
the first management control unit encapsulates the Telnet command into a private extended attribute, and transmits the encapsulated Telnet command to the second management control unit;
the second management control unit packages the execution result and transmits the execution result to the first management control unit, and the method comprises the following steps:
and the second management control unit encapsulates the execution result into a private extended attribute, and notifies the first management control unit of acquiring the execution result through an extended event.
9. The method of claim 6, wherein the proxy element passing the Telnet command to the local service element comprises:
the agent unit carries out format conversion on the Telnet command in the character string form to obtain the Telnet command in the NVT format;
and transmitting the Telnet command in the NVT format to the local service unit.
10. The method according to claim 6, characterized in that the agent unit passes the execution result to the second management control unit;
the proxy unit performs format conversion on the execution result in the NVT format to obtain an execution result in a character string form;
and transmitting the execution result in the form of the character string to the second management control unit.
CN202010599323.2A 2020-06-28 2020-06-28 System and method for remotely logging in optical network unit Active CN111836137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010599323.2A CN111836137B (en) 2020-06-28 2020-06-28 System and method for remotely logging in optical network unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010599323.2A CN111836137B (en) 2020-06-28 2020-06-28 System and method for remotely logging in optical network unit

Publications (2)

Publication Number Publication Date
CN111836137A CN111836137A (en) 2020-10-27
CN111836137B true CN111836137B (en) 2022-03-25

Family

ID=72898979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010599323.2A Active CN111836137B (en) 2020-06-28 2020-06-28 System and method for remotely logging in optical network unit

Country Status (1)

Country Link
CN (1) CN111836137B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159598A (en) * 2007-10-19 2008-04-09 中兴通讯股份有限公司 Remote management method of passive optical network terminal equipment
CN105376663A (en) * 2015-10-08 2016-03-02 上海斐讯数据通信技术有限公司 A method of using a superuser ONU to manage an OLT remotely in a GPON system
CN106100916A (en) * 2016-08-30 2016-11-09 武汉丰天鼎业信息网络有限公司 A kind of method of Remote configuration CBAT management parameters based on the double IP address of ONU
CN108418702A (en) * 2017-12-27 2018-08-17 武汉丰天鼎业信息网络有限公司 The implementation method in GPON system configuration EOC system administrations channel

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655166B2 (en) * 2003-03-03 2014-02-18 Alexander I Soto System and method for performing in-service optical fiber network certification
JP5408199B2 (en) * 2011-06-20 2014-02-05 住友電気工業株式会社 Relay device, relay method, and optical communication system using the relay device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159598A (en) * 2007-10-19 2008-04-09 中兴通讯股份有限公司 Remote management method of passive optical network terminal equipment
CN105376663A (en) * 2015-10-08 2016-03-02 上海斐讯数据通信技术有限公司 A method of using a superuser ONU to manage an OLT remotely in a GPON system
CN106100916A (en) * 2016-08-30 2016-11-09 武汉丰天鼎业信息网络有限公司 A kind of method of Remote configuration CBAT management parameters based on the double IP address of ONU
CN108418702A (en) * 2017-12-27 2018-08-17 武汉丰天鼎业信息网络有限公司 The implementation method in GPON system configuration EOC system administrations channel

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EPON综合网管系统的研究与实现;赵炜妹等;《电力系统通信》;20100210(第02期);全文 *
GPON技术及应用;王进军;《科技信息》;20110625(第18期);全文 *

Also Published As

Publication number Publication date
CN111836137A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
US10728214B2 (en) Method for access network virtualization and proxy node
US9641253B2 (en) Data over cable service interface specification (DOCSIS) over passive optical network (PON)
US20230216584A1 (en) Cable modem system management of passive optical networks (pons)
US10827239B2 (en) Message transmission method, relay device, and message processor
US9941966B2 (en) Method for information exchange in access network, apparatus, and system
CN100479383C (en) Management method and system for broadband access network far-end node
WO2020063991A1 (en) Pon network, method and apparatus for pon network and robot system
EP3244571B1 (en) Configuration data distribution method and apparatus
US9621685B2 (en) Architecture for an access network system management protocol control under heterogeneous network management environment
EP3952324A1 (en) Interface upgrading method and apparatus, and optical network unit management method and apparatus
WO2009143782A1 (en) Method, device and system for setting up management and maintenance channel in passive optical network system
CN101217338A (en) Detection message transmitting method, network element device
CN103378979B (en) The management method of a kind of EPON, equipment and system
WO2012100509A1 (en) Method for automatically discovering coaxial broadband access terminal, management method and system
EP3073697B1 (en) Method for processing packet in access network, and network device
US20190319709A1 (en) Method for managing optical network unit onu, apparatus, and system
EP2763355A2 (en) Method for transmitting data in passive optical network, user-side equipment, and system
WO2012136102A1 (en) Method and system for controlling coaxial broadband access terminal
WO2016101525A1 (en) Method, apparatus and system for managing optical network unit dpu device
EP3086508B1 (en) Fiber-to-the-distribution point device and communication method therefor
US9615153B2 (en) System and method for applying an extended multipoint protocol to wireless access systems
CN111836137B (en) System and method for remotely logging in optical network unit
WO2017215438A1 (en) Service activating method, device and system, and storage medium
CN109302504B (en) Method for establishing control signaling channel in PTN, PTN network element and storage medium
CN112351355B (en) Management method and system of ONU channel based on gPC

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