WO2019201025A1 - Method and apparatus for processing configuration information of olt port, and storage medium - Google Patents

Method and apparatus for processing configuration information of olt port, and storage medium Download PDF

Info

Publication number
WO2019201025A1
WO2019201025A1 PCT/CN2019/077211 CN2019077211W WO2019201025A1 WO 2019201025 A1 WO2019201025 A1 WO 2019201025A1 CN 2019077211 W CN2019077211 W CN 2019077211W WO 2019201025 A1 WO2019201025 A1 WO 2019201025A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
onu
olt
information
rate
Prior art date
Application number
PCT/CN2019/077211
Other languages
French (fr)
Chinese (zh)
Inventor
许煜芝
杨巧顺
顾晓冬
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2019201025A1 publication Critical patent/WO2019201025A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • 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
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • 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

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, an apparatus, a storage medium, and an electronic device for processing configuration information of an OLT port.
  • the FTTX is the mainstream technology for fixed network access.
  • the FTTX system is mainly composed of OLT (light line terminal,
  • the Optical Line Terminal is composed of two devices: the OLT device is placed in the office room, and the ONU device is placed on the user side. The OLT and the ONU are connected by optical fibers. Hundreds to thousands of ONU devices.
  • the expansion of the upper-layer device leads to an increase in traffic bursts (the upper-layer devices burst at a rate of 10G). Due to the cost or the impact of different models of different vendors, the ONU cache cannot fully satisfy various scenarios, thus causing traffic bursts. When the size is large, the ONU cache is insufficient, which causes packet loss and affects the user experience.
  • the most direct way is to replace the ONU device or upgrade the ONU firmware version to meet the traffic burst demand, but limited by the cost and other pressure, the ONU can not guarantee that all traffic burst scenarios can be met, and the ONU There are many models, and it is not practical to upgrade the ONU version on a large scale.
  • the embodiments of the present disclosure provide a method, a device, a storage medium, and an electronic device for processing configuration information of an OLT port, so as to solve at least the problem that the ONU existing in the related art cannot guarantee a scenario in which various traffic bursts are satisfied.
  • a method for processing configuration information of an OLT port including: acquiring information of a first port in the ONU sent by a fiber network unit ONU; determining an optical fiber line terminal OLT and the a second port corresponding to the first port, where the second port is a logical port; and the configuration information of the second port is processed according to the information of the first port.
  • a method for processing configuration information of an OLT port including: transmitting information of a first port in an ONU to an OLT, where information of the first port is used to indicate The OLT determines a second port corresponding to the first port in the OLT, and processes configuration information of the second port according to the information of the first port, where the second port is a logical port.
  • a processing apparatus for configuration information of an OLT port including: an acquiring module, configured to acquire information of a first port in the ONU sent by a fiber network unit ONU; a second port corresponding to the first port in the optical fiber line terminal OLT, wherein the second port is a logical port, and the processing module is configured to use the information according to the first port to the second port
  • the configuration information of the port is processed.
  • a processing apparatus for configuration information of an OLT port including: a sending module, configured to send information of a first port in an ONU to an OLT, where the first port The information is used to instruct the OLT to determine a second port corresponding to the first port in the OLT, and process configuration information of the second port according to the information of the first port, where the second The port is a logical port.
  • a storage medium having stored therein a computer program, wherein the computer program is configured to perform the steps of any one of the method embodiments described above at runtime.
  • an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor being configured to execute the computer program to perform any of the above The steps in the method embodiments.
  • the configuration information of the logical port of the OLT is processed, there is no need to replace the ONU device or upgrade the ONU version. Therefore, even when the traffic bursts, the ONU is not required to be processed, and only the port of the OLT is re-established.
  • the configuration can be solved, and the problem that the ONU cannot guarantee the various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of the ONUs is solved, and the OLT port is configured to cope with the network.
  • the scenario of various traffic bursts reduces the impact of traffic bursts on the ONU.
  • FIG. 1 is an overall networking diagram of an FTTX system in accordance with an embodiment of the present disclosure
  • FIG. 2 is a hardware structural block diagram of a mobile terminal for processing a configuration information of an OLT port according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for processing configuration information of a first type of OLT port according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of a method for processing configuration information of a second type of OLT port according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of an OLT detection configuration according to a specific embodiment 1 of the present disclosure
  • FIG. 6 is a flowchart of an OLT detection configuration according to a specific embodiment 2 of the present disclosure.
  • FIG. 7 is a flowchart of detecting a physical port state by an ONU according to a second embodiment of the present disclosure
  • FIG. 8 is a flowchart of an ONU detecting logical port state according to a second embodiment of the present disclosure
  • FIG. 9 is a flowchart of an OLT detection configuration according to a specific embodiment 3 of the present disclosure.
  • FIG. 10 is a flowchart of an OLT detection configuration according to a specific embodiment 4 of the present disclosure.
  • FIG. 11 is a structural block diagram of a processing apparatus for configuration information of a first type of OLT port according to an embodiment of the present disclosure
  • FIG. 12 is a structural block diagram of a processing apparatus for configuration information of a second OLT port according to an embodiment of the present disclosure
  • FIG. 13 is a schematic diagram of an overall module of an FTTX system in accordance with an embodiment of the present disclosure.
  • the solution in the embodiment of the present disclosure can be applied to the FTTX system, and can solve the problem of traffic burst in the system, so that the FTTX system can cope with various burst scenarios in the network.
  • the overall network diagram of the FTTX system is shown in Figure 1.
  • the traffic burst of the FTTX system is mainly caused by the traffic burst of the upper device (10G).
  • the link of the ONU device (100 Mbps/Gigabit) may become a bottleneck, which causes the ONU device to need more cache to store. Packets, otherwise the packets will be discarded, which will affect the user's medical examination.
  • the ONU has a limited buffer as a terminal device, and the OLT is sufficient as a central office device to cache, and the configuration is easily modified.
  • the cache configuration bottleneck of the ONU terminal is solved by the cache configuration policy on the OLT.
  • the present disclosure provides a method and apparatus for traffic burst protection of an FTTX system.
  • the following solutions are provided to explain the present disclosure:
  • FIG. 2 is a hardware structural block diagram of a mobile terminal for processing a configuration information of an OLT port according to an embodiment of the present disclosure.
  • mobile terminal 20 may include one or more (only one of which is shown in FIG. 2) processor 202 (processor 202 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. And a memory 204 configured to store data.
  • the mobile terminal may further include a transmission device 206 configured as a communication function and an input and output device 208.
  • the structure shown in FIG. 2 is merely illustrative, and does not limit the structure of the above mobile terminal.
  • the mobile terminal 20 may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
  • the memory 204 may be configured to store a computer program, for example, a software program of a application software and a module, such as a computer program corresponding to a processing method of configuration information of an OLT port in the embodiment of the present disclosure, and the processor 202 is stored in the memory 204 by running The computer program, thereby performing various functional applications and data processing, implements the above method.
  • Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 204 can further include memory remotely located relative to processor 202, which can be connected to mobile terminal 20 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 206 is arranged to receive or transmit data via a network.
  • the above specific network example may include a wireless network provided by a communication provider of the mobile terminal 20.
  • the transmission device 206 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • FIG. 3 is a flowchart of a method for processing configuration information of a first type of OLT port according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes The following steps:
  • Step S302 Acquire information about the first port in the ONU sent by the optical network unit ONU.
  • Step S304 determining a second port corresponding to the first port in the optical line terminal OLT, where the second port is a logical port;
  • Step S306 processing configuration information of the second port according to the information of the first port.
  • the above operation may be a terminal, such as an OLT.
  • ports corresponding to different ONUs in the OLT are different logical ports (also referred to as virtual ports), and configuration information of different logical ports is different.
  • the configuration information of the logical port of the OLT is processed, there is no need to replace the ONU device or upgrade the ONU version. Therefore, even when the traffic bursts, the ONU is not processed, and only the port of the OLT is processed.
  • the reconfiguration can be performed to solve the problem that the ONU cannot guarantee the scenario of various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of ONUs. Coping with various traffic burst scenarios in the network reduces the impact of traffic bursts on the ONU.
  • the information about the first port includes a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port, where the information is used according to the information of the first port.
  • the configuration information of the port is processed, and when the connection state of the first port is determined to be a normal connection, the configuration information of the second port is adjusted according to the packet processing rate of the first port and the buffering capability of the first port; and/or When the connection state of the first port is determined to be disconnected, the configuration information of the second port is deleted. In this embodiment, it is not necessary to adjust the configuration information of the logical port corresponding to the port in the disconnected ONU.
  • the configuration information of the second port includes an integer value, a burst value, and a cache value, where the second port is configured according to a packet processing rate of the first port and a buffering capability of the first port.
  • the configuration information is adjusted to: adjust the shaping value of the second port to be less than or equal to the packet processing rate of the first port; adjust the burst value of the second port to be less than or equal to the buffering capability of the first port;
  • the buffer value of the second port is adjusted to be larger than the buffering capability of the first port.
  • the shaping value is used for the average rate of the second port to forward the packet.
  • the burst value is used to indicate that the second port forwards the packet exceeding the average rate.
  • the above cached value is used to indicate the number of bytes of the second port allowed to buffer packets.
  • the virtual port (corresponding to the above-mentioned logical port) on the OLT is bound to the ONU port, and the virtual port on the OLT is shaped (the average rate of the virtual port forwarding packet) and the burst (virtual).
  • the number of bytes that the port forwards the packet exceeds the average rate) and the cache (the number of bytes that the virtual port can buffer the packet) are adjusted.
  • the burst traffic outside the FTTX system is shielded on the OLT, thereby reducing the impact on the ONU and solving the traffic. Sudden problems.
  • the OLT may perform shaping, bursting, and buffer adjustment for the virtual port based on port information reported by the ONU (eg, port connection status, packet processing rate of the port, and buffering capability of the port).
  • the method further includes: allocating resources occupied by the configuration information of the second port to other ports in the OLT. That is to say, in this embodiment, the deleted cache resource can be allocated to other virtual ports for use.
  • the method before the processing the information of the second port according to the information of the first port, the method further includes: determining an authentication status of the ONU; and using the information of the first port to the second port
  • the information processing includes: when determining that the authentication status of the ONU is the authentication success, processing the configuration information of the second port according to the information of the first port. That is to say, in this embodiment, the authentication status of the ONU can be determined first.
  • the configuration information of the logical port in the OLT corresponding to the port in the ONU is obtained. Process it. The following describes the processing method under authentication failure:
  • the method further includes: deleting the configuration information of the port corresponding to all ports in the ONU in the OLT when the authentication status of the ONU is determined to be an authentication failure.
  • the ONU authentication fails, it indicates that there should be no packet transmission between the ONU and the OLT. Therefore, the port configuration corresponding to the port in the ONU in the OLT can be deleted.
  • the method further includes: configuring configuration information of the port corresponding to all ports in the ONU in the OLT.
  • the occupied resources are allocated to other ports in the OLT. That is to say, in this embodiment, the deleted cache resource can be allocated to other virtual ports for use.
  • the method before the processing of the configuration information of the second port is performed according to the information about the first port, the method further includes: determining a rate at which the uplink port of the OLT forwards the packet;
  • the processing of the second port configuration information includes: when determining that the rate at which the uplink port forwards the packet is greater than the packet processing rate of the first port, processing the configuration information of the second port according to the information of the first port.
  • the OLT may perform judgment based on the link rate of the OLT and the port information reported by the ONU, and perform shaping, burst, and buffer adjustment for the virtual port.
  • the OLT can also perform judgment based on the authentication status of the ONU, combined with the link rate of the link on the OLT and the report port of the ONU, and perform shaping, burst, and buffer adjustment for the virtual port.
  • the method further includes: determining that the rate at which the uplink port forwards the packet is less than or equal to the packet processing rate of the first port. When the configuration information of the second port is maintained.
  • the information of the first port includes the number of the first port
  • the method further includes: recording the ONU before receiving the information of the first port in the ONU from the optical network unit ONU Corresponding relationship between the number of each port and each port in the OLT; determining the second port of the fiber line terminal OLT corresponding to the first port includes: determining, according to the correspondence relationship and the number of the first port, the first port The second port.
  • the virtual port (corresponding to the above-mentioned logical port) on the OLT and the port in the ONU need to be bound in advance.
  • the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate.
  • the number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
  • the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, The packet processing rate of the first port is the maximum rate of processing packets of the first port. That is, in this embodiment, if the ONU port is a physical port, the rate can be reported as the port rate through the port negotiation rate. If the ONU port is a logical port, the maximum rate of the packet can be processed through the port as the port rate. .
  • FIG. 4 is a flowchart of a method for processing configuration information of a second OLT port according to an embodiment of the present disclosure. Including the following steps:
  • Step S402 the information of the first port in the ONU is sent to the OLT, where the information of the first port is used to instruct the OLT to determine the second port in the OLT corresponding to the first port, and according to the information of the first port.
  • the configuration information of the second port is processed, and the second port is a logical port.
  • the above operation may be an ONU.
  • ports corresponding to different ONUs in the OLT are different logical ports (also referred to as virtual ports), and configuration information of different logical ports is different.
  • the ONU device since the configuration information of the logical port of the OLT is processed, the ONU device does not need to be replaced or the ONU version is upgraded. Therefore, even when the traffic bursts, the ONU is not processed, and only the port of the OLT is processed.
  • the reconfiguration can be performed to solve the problem that the ONU cannot guarantee the scenario of various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of ONUs. Coping with various traffic burst scenarios in the network reduces the impact of traffic bursts on the ONU.
  • the method before the sending the information of the first port in the ONU to the OLT, the method further includes: detecting that the connection state of the first port changes.
  • the ONU can monitor the status of each port in the ONU in real time, and after determining that the connection status of the port changes, the information of the port whose connection status changes in the ONU is generated to the OLT.
  • the method before the sending the information of the first port in the ONU to the OLT, the method further includes: detecting a connection state of each port in the ONU, a packet processing rate of each port, and a buffer of each port.
  • the function of sending the information of the first port in the ONU to the OLT includes: sending the number of the first port, the detected connection state of the first port, the packet processing rate of the first port, and the buffering capability of the first port to OLT.
  • the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate.
  • the number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
  • the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, the first The packet processing rate of the port is the maximum rate of processing packets on the first port.
  • the embodiment 2 is mainly described from the OLT side.
  • the third embodiment is mainly described from the ONU side. The following describes the interaction between the OLT and the ONU in conjunction with the specific embodiments:
  • the OLT configures the shaping value, the burst value, and the cache value configuration for the virtual port, including the following steps:
  • the OLT After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT (corresponding to the logical port in the OLT).
  • the OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT.
  • the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port.
  • the record information at port 256 is 2/3/5:1 corresponding to 256;
  • the OLT configures an shaping value, a burst value, and a cache value parameter for the virtual port.
  • the OLT configures the shaping value, the burst value, and the buffer value for the virtual port to ensure that the packet rate delivered by the OLT is relatively uniform, and the burst traffic of the upper layer device is cached, and the traffic burst is reduced.
  • the impact of ONU is relatively uniform, and the burst traffic of the upper layer device is cached, and the traffic burst is reduced.
  • the OLT adjusts the configuration of the shaping value, the burst value, and the cache value of the virtual port in the OLT according to the port information reported by the ONU, including the following steps:
  • the OLT After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
  • the OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, the PON port number, and the registration number information of the ONU on the OLT, such as the LAN1 port of the No. 5 PON port No. 5 ONU in the slot 2
  • the record information at port 256 is 2/3/5:1 corresponding to 256;
  • S603 The OLT detects the message that the ONU reports the port information (that is, detects whether the ONU port status change information is received). If the message is not received, the OLT continues to detect. If the message is received, the process proceeds to S604.
  • S604 Obtain the status information of the ONU port, determine the status of the ONU port, and if the port is in the UP state (corresponding to the connection state described above), go to S606, otherwise (ie, if the port is in the DOWN state, corresponding to the disconnected state described above) S605;
  • the ONU port is in the DOWN state.
  • the ONU port number is used to determine the OLT virtual port through the port relationship table.
  • the virtual port index is used to search the configuration relationship table, and the virtual port shaping value, the burst value, and the cache value configuration are deleted.
  • the cache is used for other virtual port usage, and the process proceeds to step S603 to continue the detection;
  • the ONU port is in the UP state, and the parameter information such as the port number, the port rate, and the port cache of the ONU is obtained, and the OLT virtual port is determined by the ONU port number through the port relationship table.
  • S607 Configure the shaping value, the burst value, and the cache value parameter of the OLT virtual port.
  • the configuration relationship table such as the shaping value B of the virtual port A configuration, and the burst.
  • the value C, the cache value D, the configuration relationship table record is A corresponding to B/C/D, and A is the index number. Proceeding to step S603 to continue the detection.
  • the shaping value B of the virtual port is less than or equal to the rate Y of the ONU port, so that the rate of the packet forwarded by the OLT to the ONU port is less than or equal to the rate of the ONU, so that the ONU port can process all the packets without any loss.
  • Packets and other problems; the virtual port burst value C is less than or equal to the ONU port buffer Z, so that the OLT can burst larger packets on the basis of the average rate, and send more packets as much as possible, but guarantee these packets.
  • the OLT virtual port can cache more packets than the ONU port when the upper device has a packet burst, so that the virtual port cache value D is greater than the ONU port cache Z. Ensure that these messages are not discarded.
  • the corresponding ONU port is real hardware port information, and is detected by the negotiation state of the ONU hardware port.
  • S702 Forward, according to the configuration, the port data packet of the ONU to the virtual port configured by the OLT.
  • S703 The ONU starts a thread to detect negotiation state change information of each physical port.
  • S705 Obtain the negotiation status of the physical port. If the status is from DOWN to UP, the port number, the negotiation rate, and the port cache are obtained. The negotiation rate is reported as the port rate. If the status is from UP to DOWN, the port is obtained.
  • the port number information, the negotiation rate and the port cache are not concerned by default, and can be configured to all 0s, and the process proceeds to step S706;
  • the ONU reports the port information (port number, port status, port rate, and port buffer) to the OLT.
  • the port rate is the port negotiation rate.
  • the port rate and port buffer have no meaning. Can be reported as all 0s.
  • the ONU port may be a non-real hardware port information, and is a logical port (such as an ESSID port of the WIFI).
  • the ONU port is used to detect whether the ONU port is in use or not;
  • the maximum rate of processing the packet indicates the port rate.
  • the embodiment includes the following steps:
  • S802 Forward, according to the configuration, the port data packet of the ONU to the virtual port configured by the OLT;
  • the ONU startup thread detects MAC address learning information of each logical port
  • S804 record the number of MAC address learning of each logical port, and compare with the last recorded value
  • step S805 If the number of MAC addresses of the logical port is from the state to the state, the process proceeds to step S809, otherwise proceeds to step S806;
  • step S806 If the number of MAC addresses of the logical port is from the endless state, proceed to step S807, otherwise continue to detect the MAC address learning information of each logical port;
  • step S807 At this time, the logical port state is the UP state, and the state is recorded, and the process proceeds to step S808;
  • S808 Obtain a port rate and a port buffer of the logical port.
  • the port rate does not indicate a true physical rate, but refers to a maximum rate at which the logical port can process packets.
  • the ESSID logical port of the WIFI can process the maximum rate of the packet. 500Mbit / s, then the rate is the port rate), proceeds to step S810;
  • step S809 At this time, the logical port state is the DOWN state, and the state is recorded, and the process proceeds to step S810;
  • the ONU reports the physical port information (port number, port status, port rate, and port buffer) to the OLT.
  • the port rate is the maximum rate at which the port processes packets.
  • the port status is DOWN, the port is DOWN.
  • the rate and port buffers are meaningless and can be reported as all zeros.
  • the corresponding OLT adjusts the shaping value, the burst value, and the cache value configuration of the virtual port according to the port information reported by the ONU and the interface information on the OLT, and includes the following steps.
  • the OLT After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
  • the OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT.
  • the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port.
  • the record information at port 256 is 2/3/5:1 corresponding to 256;
  • S903 The OLT detects the message that the ONU reports the port information (that is, receives the ONU port state change information), if the message is not received, continues to detect, if the message is received, the process proceeds to S904;
  • S904 Obtain the status information of the ONU port. If the port is in the UP state, go to S906, otherwise go to S905.
  • the ONU port is in the DOWN state.
  • the ONU port number is used to determine the OLT virtual port through the port relationship table.
  • the virtual port index is used to search the configuration relationship table, and the virtual port shaping value, the burst value, and the cache value configuration are deleted.
  • the cache is used for other virtual port usage and continues to be detected;
  • the OLT virtual port is determined by the port number relationship table of the ONU port number, so that the uplink port information of the virtual port is located, and the rate information of the interface on the OLT is obtained.
  • step S908 If the uplink rate of the OLT is greater than the ONU port rate, proceed to step S709, otherwise continue to detect;
  • S909 Obtain the parameter information of the port number, the port rate, and the port cache of the ONU.
  • the ONU port number is used to determine the OLT virtual port through the port relationship table, and the shaping value, the burst value, and the cache value parameter of the OLT virtual port are configured, and the OLT virtual port is configured.
  • the configuration relationship table such as the shaping value B of the virtual port A configuration, the burst value C, the cache value D, and the configuration relationship table records as A corresponding to B/C/D and A as the index. No. and continue to test.
  • the shaping port B of the virtual port is less than or equal to the ONU port rate Y, so that the packet rate that the OLT forwards to the ONU port is less than or equal to the port rate of the ONU, so that the ONU port can process all the packets without generating Packet loss and other issues;
  • the virtual port burst value C is less than or equal to the ONU port cache Z, so that the OLT can burst larger packets based on the average rate and send more packets as much as possible, but guarantee these reports.
  • the OLT virtual port can cache more packets than the ONU port when the upper device has a packet burst, because the virtual port cache value D is greater than the ONU port cache Z. This ensures that these messages will not be discarded.
  • the virtual port needs to be shaped, bursted, and cache adjusted to ensure that The efficiency of OLT resource utilization.
  • the OLT adjusts the corresponding shaping value and cache configuration based on the port information reported by the ONU, the link information on the OLT, and the ONU registration status, including the following steps:
  • the OLT After the ONU is successfully registered, the OLT sends data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
  • the OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT.
  • the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port.
  • the record information at port 256 is 2/3/5:1 corresponding to 256;
  • OLT detects the authentication status of the ONU, if the authentication is successful, proceeds to step S1005, otherwise proceeds to step S1004;
  • the ONU is in the authentication failure state, and the OLT traverses all the port information of the ONU.
  • the ONU port determines the OLT virtual port through the port relationship table, searches the configuration relationship table through the virtual port index, and deletes the virtual port shaping value, burst value, and cache. Value configuration, the deleted cache can be used for other virtual ports and continue to be detected;
  • S1005 The OLT detects the message that the ONU reports the port information (that is, determines whether the ONU port status change information is received), and if the message is not received, continues to detect, if yes, proceeds to S1006;
  • S1006 Obtain the status information of the ONU port. If the port is in the UP state, go to S1008, otherwise go to S1007.
  • the ONU port is in the DOWN state.
  • the ONU port number is used to determine the OLT virtual port through the port relationship table.
  • the virtual port index is used to search the configuration relationship table, and the virtual port shaping value, burst value, and cache value configuration are deleted.
  • the cache is used by other virtual ports and continues to be detected;
  • the ONU port is in the Up state and obtains the ONU port rate.
  • the OLT virtual port is determined by the port number relationship table of the ONU port number, so that the uplink port information of the virtual port is located, and the rate information of the interface on the OLT is obtained.
  • step S1010 If the uplink rate of the OLT is greater than the ONU port information, proceed to step S1011, otherwise continue to detect;
  • S1011 Obtain the parameter information of the port number, the port rate, and the port cache of the ONU.
  • the ONU port number is used to determine the OLT virtual port through the port relationship table, and the shaping value, the burst value, and the cache value parameter of the OLT virtual port are configured, and the OLT virtual port is configured.
  • the configuration relationship table such as the shaping value B of the virtual port A configuration, the burst value C, the cache value D, and the configuration relationship table records as A corresponding to B/C/D and A as the index. number. Proceeding to step S803 to continue the detection.
  • the shaping port B of the virtual port is less than or equal to the rate Y of the ONU port, so that the rate of the packet forwarded by the OLT to the ONU port is less than or equal to the port rate of the ONU, so that the ONU port can process all the packets.
  • the virtual port burst value C is less than or equal to the ONU port buffer Z, so that the OLT can burst larger packets on the basis of the average rate and send more packets as much as possible, but Ensure that these packets are not lost due to insufficient ONU port buffering;
  • the virtual port cache value D is greater than the ONU port cache Z, so that the OLT virtual port can cache more than the ONU port when there is a packet burst on the upper device. Messages to ensure that these messages will not be discarded.
  • the virtual port needs to be shaped, bursted, and cache adjusted to ensure that The efficiency of OLT cache resource utilization.
  • the ONU port when the ONU is in the authentication failure state, the ONU is in an illegal state, and the ONU port does not need to perform burst protection for the ONU port, and the virtual port of all ports of the ONU can be directly deleted on the OLT.
  • the shaping, burst, and cache value configuration, and the deleted cache resources are used by other virtual ports to maximize the efficiency of OLT cache resource utilization.
  • a device for processing configuration information of an OLT port is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 11 is a structural block diagram of a processing apparatus for configuration information of a first type of OLT port according to an embodiment of the present disclosure. As shown in FIG. 11, the apparatus includes:
  • the obtaining module 112 is configured to acquire information of the first port in the ONU sent by the optical network unit ONU, and the determining module 114 is connected to the obtaining module 114, and configured to determine the second port of the optical line terminal OLT corresponding to the first port.
  • the second port is a logical port; the processing module 116 is connected to the obtaining module 114, and configured to process the configuration information of the second port according to the information of the first port.
  • the information about the first port includes a connection status of the first port, a packet processing rate of the first port, and a buffering capability of the first port
  • the processing module 116 includes: an adjusting unit, When the connection state of the first port is determined to be a normal connection, the configuration information of the second port is adjusted according to the packet processing rate of the first port and the buffering capability of the first port; and/or the deleting unit is set to When it is determined that the connection state of the first port is disconnected, the configuration information of the second port is deleted.
  • the configuration information of the second port includes an integer value, a burst value, and a cache value
  • the adjusting unit is specifically configured to: adjust the shaping value of the second port to be less than or equal to the first a packet processing rate of the port; adjusting the burst value of the second port to be less than or equal to the buffering capability of the first port; adjusting the buffer value of the second port to be greater than the buffering capability of the first port; wherein the shaping value The average rate of the packets forwarded by the second port, where the burst value is used to indicate the number of bytes that the second port forwards the packet exceeding the average rate, and the cache value is used to indicate the number of bytes allowed to be buffered by the second port.
  • the foregoing apparatus is further configured to: after deleting the configuration information of the second port, allocate resources occupied by the configuration information of the second port to other ports in the OLT.
  • the foregoing apparatus is further configured to: determine an authentication status of the ONU before processing the information of the second port according to the information of the first port; and the processing module 116 is configured to: determine the ONU When the authentication status is successful, the configuration information of the second port is processed according to the information of the first port.
  • the foregoing apparatus is further configured to: after determining the authentication status of the ONU, delete the configuration information of the port corresponding to all the ports in the OLT in the OLT when determining that the authentication status of the ONU is the authentication failure. .
  • the foregoing apparatus is further configured to: after deleting the configuration information of the port corresponding to all ports in the ONU in the OLT, configure the port corresponding to all ports in the ONU in the OLT respectively.
  • the resources occupied by the information are allocated to other ports in the OLT.
  • the foregoing apparatus is further configured to: before processing the configuration information of the second port according to the information of the first port, determine a rate at which the uplink port of the OLT forwards the packet; according to the first port
  • the processing of the second port configuration information includes: when determining that the rate at which the uplink port forwards the packet is greater than the packet processing rate of the first port, processing the configuration information of the second port according to the information of the first port.
  • the foregoing apparatus is further configured to: after determining the rate at which the uplink port of the OLT forwards the packet, determining that the rate at which the uplink port forwards the packet is less than or equal to the packet processing of the first port At the rate, the configuration information of the second port is maintained.
  • the information of the first port includes the number of the first port
  • the device is further configured to: record the ONU before receiving the information of the first port in the ONU from the optical network unit ONU Corresponding relationship between the number of each port in the OLT and the port in the OLT; determining the second port corresponding to the first port in the OLT terminal includes: determining the first port according to the corresponding relationship and the number of the first port Corresponding second port.
  • the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate.
  • the number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
  • the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, The packet processing rate of the first port is the maximum rate of processing packets of the first port. That is, in this embodiment, if the ONU port is a physical port, the rate can be reported as the port rate through the port negotiation rate. If the ONU port is a logical port, the maximum rate of the packet can be processed through the port as the port rate. .
  • the OLT includes an OLT interaction module (corresponding to the above-mentioned acquisition module 112 and determination module 114) and an OLT cache adjustment module (corresponding to the processing module 116 described above), and each module is described below:
  • the OLT interaction module has two functions:
  • the OLT interaction module forwards the ONU port data to the virtual port of the OLT through the protocol between the OLT and the ONU, so that the OLT can sense the information of the ONU port and record the OLT virtual port when forwarding the packet to the ONU. a port relationship table between the port and the ONU port;
  • the ONU port can be mapped to the GEMPORT of the OLT through the OMCI protocol, for example, the ONU port 1 is mapped to the GEMPORT1;
  • the ONU port can be mapped to the LLID of the OLT by extending the OAM protocol, for example, the ONU port 1 is mapped to the LLID1.
  • the port relationship table of the OLT records the index relationship between the ONU port and the OLT virtual port, and the ONU port of the port relationship table is an index number. For example, if the LAN1 port of the No. 5 PON port No. 5 of the No. 2 slot corresponds to the virtual port 256, the record information is 2/3/5: 1 corresponds to 256, and 2/3/5: 1 is the index number of the entry.
  • the OLT interaction module receives the status information of the ONU port and parses the information, so that the OLT senses the change of the ONU port information in real time.
  • the OLT cache adjustment module obtains the ONU port information (port number, port status, port rate, port cache) in real time through the OLT interaction module, and searches the virtual port of the OLT through the ONU port number index port relationship table, and performs virtual port on the OLT.
  • the shaping, burst, and cache adjustments are configured to configure the shaping value, burst value, and cache value of the virtual port to ensure that the burst of the upper-layer device traffic has no impact on the ONU, and records the configuration relationship table between the OLT virtual port and the configuration value.
  • the virtual port is the index number of the table. For example, the shaping value B, the burst value C, and the cache value D of the virtual port A configuration are recorded as A corresponding to B/C/D, and A is an index number.
  • the OLT virtual port (A) is determined by the ONU port number (X) through the port index table;
  • the shaping value B of the OLT virtual port A configuration is less than or equal to the ONU port rate Y;
  • the burst value C configured by the OLT virtual port A is less than or equal to the ONU port buffer value Z;
  • the cache value D configured by the OLT virtual port A is greater than the ONU port cache value Z.
  • the OLT cache adjustment module deletes configurations such as shaping, burst, and cache based on the configuration relationship table information:
  • the OLT virtual port (A) is determined by the ONU port number (X) through the port index table;
  • the OLT cache adjustment module can determine the relationship between the uplink interface rate and the ONU port rate by obtaining the rate of the uplink interface of the OLT.
  • the rate of the uplink port is greater than the rate of the ONU port, the probability of a burst is large.
  • the virtual port needs to be shaped, bursted, and cached.
  • the rate of the uplink port is less than or equal to the ONU port rate (such as the ONU port rate). If the uplink port rate of the OLT is less than or equal to 1000M, the burst of the uplink interface cannot exceed the port rate of the ONU. You can configure the virtual port for bursting, bursting, and caching.
  • the OLT cache adjustment module obtains the authentication status of the ONU through the OLT interaction module. If the ONU is in the authentication failure state, the ONU is in an illegal state, and the virtual port of the ONU can be directly deleted and bursted on the OLT. And cache value configuration, and delete the cached resources for use by other virtual ports.
  • FIG. 12 is a structural block diagram of a processing device for configuring configuration information of a second OLT port according to an embodiment of the present disclosure, as shown in FIG.
  • the device includes:
  • the sending module 122 is configured to send information of the first port in the ONU to the OLT, where the information of the first port is used to instruct the OLT to determine a second port in the OLT corresponding to the first port, and according to the first port The information is processed by the configuration information of the second port, which is a logical port.
  • the apparatus further includes: a detecting module configured to detect that a connection state of the first port changes before transmitting information of the first port in the ONU to the OLT.
  • the foregoing apparatus is further configured to: before transmitting the information of the first port in the ONU to the OLT, detecting a connection state of each port in the ONU, a packet processing rate of each port, and a port processing rate of each port.
  • the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate.
  • the number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
  • the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, the first The packet processing rate of the port is the maximum rate of processing packets on the first port.
  • the device in this embodiment may be applied to an ONU, and the modules in the ONU are described below in conjunction with specific embodiments:
  • the ONU includes an ONU port detection module and an ONU interaction module (corresponding to the foregoing transmission module 122), and each module is described below:
  • the ONU port detection module is responsible for detecting the status of the ONU port, detecting the status of each port of the ONU in real time, and obtaining related information such as the rate of the port and the port cache.
  • the ONU records the following information through the port detection module, including port number, port status, port rate, and port buffer.
  • Port number indicating the number of the ONU port, such as LAN1 and other information
  • Port status indicating the connection status information of the ONU port, including two status information: UP (connection success) / DOWN (connection failure);
  • Port rate which indicates the maximum rate of packets processed on the ONU port, such as 100 Mbit/s and 1000 Mbit/s.
  • the rate can be negotiated through the port as the port rate.
  • the maximum rate of the packet can be processed through the port as the port rate.
  • Port buffer which indicates the maximum packet buffer value of the ONU port, such as 1 Mbyte.
  • the ONU interaction module After receiving the port status change message (port status from UP to DOWN, or from DOWN to UP), the ONU interaction module obtains the information (port number, port status, port rate, port buffer) recorded by the port detection module, and The information is reported to the OLT through the protocol encapsulation between the ONUs and the OLTs.
  • the port information may be encapsulated by the OMCI protocol.
  • the port information can be encapsulated by the extended OAM protocol.
  • FIG. 13 A schematic diagram of each module in the OLT and the ONU is shown in FIG. 13 .
  • the OLT is shaped and buffered when the upper device has a traffic burst, thereby avoiding the impact on the ONU device.
  • it has the following advantages:
  • the parameter adjustment for each terminal device is avoided by directly adjusting the relevant configuration on the central office device;
  • the ONU has no awareness and does not need to upgrade the ONU version on a large scale.
  • the cache information on the OLT can be dynamically adjusted based on the port information and the authentication status of the ONU, so that the cache on the OLT is fully utilized.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present disclosure also provide a storage medium having stored therein a computer program, wherein the computer program is configured to execute the steps of any one of the method embodiments described above.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present disclosure also provide an electronic device including a memory and a processor having a computer program stored therein, the processor being configured to execute a computer program to perform the steps of any one of the method embodiments described above.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the method, the device, the storage medium, and the electronic device for processing configuration information of the OLT port have the following beneficial effects: the problem exists in the related art due to the number of ONUs and the number of the ONUs. In a burst scenario, the ONU cannot guarantee the problem of various traffic burst scenarios.
  • the OLT port is configured to cope with various traffic bursts in the network, which reduces the impact of traffic bursts on the ONU.

Abstract

Provided are a method and apparatus for processing configuration information of an OLT port, a storage medium and an electronic apparatus. The method comprises: acquiring information of a first port in an optical network unit (ONU) sent by the ONU; determining a second port, in an optical line terminal (OLT), corresponding to the first port, wherein the second port is a logical port; and processing configuration information of the second port according to the information of the first port. The disclosure solves the problem in the relevant art that in a traffic burst scenario, an ONU cannot ensure all scenarios of traffic burst are satisfied due to the existence of many ONU models and types, thus achieving the aim of coping with various scenarios of traffic burst in a corresponding network by configuring an OLT port and reducing the impact of traffic burst on an ONU.

Description

OLT端口的配置信息的处理方法、装置及存储介质Method, device and storage medium for processing configuration information of OLT port 技术领域Technical field
本公开涉及通信领域,具体而言,涉及一种OLT端口的配置信息的处理方法、装置、存储介质及电子装置。The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, a storage medium, and an electronic device for processing configuration information of an OLT port.
背景技术Background technique
随着光网络的不断发展以及各个国家宽带战略的实施,FTTX(Fiber-to-the x,x=H for home,P for premises,C for curb and N for node or neighborhood,其中FTTH为光纤到户,FTTP为光纤到驻地,FTTC为光纤到路边/小区,FTTN为光纤到结点)已经全面铺开,目前FTTX是固网接入的主流技术,FTTX系统中主要由OLT(光线线路终端,Optical Line Terminal)和ONU(光纤网络单元,Optical Network Unit)两种设备组成,OLT设备主要放置于局方机房,而ONU设备主要放置于用户侧,OLT和ONU之间通过光纤连接,一个OLT对应着几百至上千个ONU设备。With the continuous development of optical networks and the implementation of broadband strategies in various countries, FTTX (Fiber-to-the x, x=H for home, P for premises, C for curb and N for node or neighborhood, where FTTH is fiber-to-the-home FTTP is the fiber to the station, FTTC is the fiber to the roadside/cell, and FTTN is the fiber to the node. The FTTX is the mainstream technology for fixed network access. The FTTX system is mainly composed of OLT (light line terminal, The Optical Line Terminal is composed of two devices: the OLT device is placed in the office room, and the ONU device is placed on the user side. The OLT and the ONU are connected by optical fibers. Hundreds to thousands of ONU devices.
近年来,随着用户对于带宽的不断追求,100M等大带宽应用在多个地区成为了现实,为了更好的满足用户的需求,OLT上联口设备也由1G的能力逐渐更换为10G的能力,OLT上层设备(包括路由器等)也在带宽上进行了扩容,目前来看可以满足用户的需求,但是也带来了一些问题。In recent years, with the continuous pursuit of bandwidth by users, large-bandwidth applications such as 100M have become a reality in many regions. In order to better meet the needs of users, the OLT-connected device is gradually replaced by the capability of 1G to 10G. The OLT upper-layer devices (including routers, etc.) have also been expanded in bandwidth. Currently, they can meet the needs of users, but they also bring some problems.
上层设备的扩容,导致了流量突发的增加(上层设备按照10G等速率突发),受限于成本或者各厂商不同型号的影响,ONU的缓存无法完全满足各种场景,从而在流量突发比较大时,导致ONU缓存不够,从而引起丢包,影响了用户体验。The expansion of the upper-layer device leads to an increase in traffic bursts (the upper-layer devices burst at a rate of 10G). Due to the cost or the impact of different models of different vendors, the ONU cache cannot fully satisfy various scenarios, thus causing traffic bursts. When the size is large, the ONU cache is insufficient, which causes packet loss and affects the user experience.
为了解决上述问题,最直接的方式就是更换ONU设备或者升级ONU固件版本来满足流量突发的需求,但是受限于成本等压力,ONU无法保证都能够满足各种流量突发的场景,且ONU型号众多,大规模升级ONU 版本也不太实际。In order to solve the above problem, the most direct way is to replace the ONU device or upgrade the ONU firmware version to meet the traffic burst demand, but limited by the cost and other pressure, the ONU can not guarantee that all traffic burst scenarios can be met, and the ONU There are many models, and it is not practical to upgrade the ONU version on a large scale.
针对相关技术中存在的上述问题,目前尚未提出有效的解决方案。In view of the above problems existing in the related art, an effective solution has not yet been proposed.
发明内容Summary of the invention
本公开实施例提供了一种OLT端口的配置信息的处理方法、装置、存储介质及电子装置,以至少解决相关技术中存在的ONU无法保证满足各种流量突发的场景的问题。The embodiments of the present disclosure provide a method, a device, a storage medium, and an electronic device for processing configuration information of an OLT port, so as to solve at least the problem that the ONU existing in the related art cannot guarantee a scenario in which various traffic bursts are satisfied.
根据本公开的一个实施例,提供了一种OLT端口的配置信息的处理方法,包括:获取光纤网络单元ONU发送的所述ONU中的第一端口的信息;确定光纤线路终端OLT中与所述第一端口对应的第二端口,其中,所述第二端口为逻辑端口;根据所述第一端口的信息对所述第二端口的配置信息进行处理。According to an embodiment of the present disclosure, a method for processing configuration information of an OLT port is provided, including: acquiring information of a first port in the ONU sent by a fiber network unit ONU; determining an optical fiber line terminal OLT and the a second port corresponding to the first port, where the second port is a logical port; and the configuration information of the second port is processed according to the information of the first port.
根据本公开的一个实施例,还提供了一种OLT端口的配置信息的处理方法,包括:将ONU中的第一端口的信息发送给OLT,其中,所述第一端口的信息用于指示所述OLT确定所述OLT中与所述第一端口对应的第二端口,并根据所述第一端口的信息对所述第二端口的配置信息进行处理,所述第二端口为逻辑端口。According to an embodiment of the present disclosure, a method for processing configuration information of an OLT port is provided, including: transmitting information of a first port in an ONU to an OLT, where information of the first port is used to indicate The OLT determines a second port corresponding to the first port in the OLT, and processes configuration information of the second port according to the information of the first port, where the second port is a logical port.
根据本公开的另一个实施例,还提供了一种OLT端口的配置信息的处理装置,包括:获取模块,设置为获取光纤网络单元ONU发送的所述ONU中的第一端口的信息;确定模块,设置为确定光纤线路终端OLT中与所述第一端口对应的第二端口,其中,所述第二端口为逻辑端口;处理模块,设置为根据所述第一端口的信息对所述第二端口的配置信息进行处理。According to another embodiment of the present disclosure, a processing apparatus for configuration information of an OLT port is further provided, including: an acquiring module, configured to acquire information of a first port in the ONU sent by a fiber network unit ONU; a second port corresponding to the first port in the optical fiber line terminal OLT, wherein the second port is a logical port, and the processing module is configured to use the information according to the first port to the second port The configuration information of the port is processed.
根据本公开的另一个实施例,还提供了一种OLT端口的配置信息的处理装置,包括:发送模块,设置为将ONU中的第一端口的信息发送给OLT,其中,所述第一端口的信息用于指示所述OLT确定所述OLT中与所述第一端口对应的第二端口,并根据所述第一端口的信息对所述第二端口的配置信息进行处理,所述第二端口为逻辑端口。According to another embodiment of the present disclosure, a processing apparatus for configuration information of an OLT port is further provided, including: a sending module, configured to send information of a first port in an ONU to an OLT, where the first port The information is used to instruct the OLT to determine a second port corresponding to the first port in the OLT, and process configuration information of the second port according to the information of the first port, where the second The port is a logical port.
根据本公开的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to still another embodiment of the present disclosure, there is also provided a storage medium having stored therein a computer program, wherein the computer program is configured to perform the steps of any one of the method embodiments described above at runtime.
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to still another embodiment of the present disclosure, there is also provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor being configured to execute the computer program to perform any of the above The steps in the method embodiments.
通过本公开,由于是对OLT的逻辑端口的配置信息进行了处理,无需更换ONU设备或者升级ONU版本,所以,即使在流量突发时,也无需对ONU进行处理,只对OLT的端口进行重新配置即可,解决了相关技术中存在的由于ONU型号、数量众多而导致在流量突发场景下,ONU无法保证满足各种流量突发的场景的问题,进而实现了通过配置OLT端口来应对网络中各种流量突发的场景,减少了流量突发对于ONU的冲击的目的。With the present disclosure, since the configuration information of the logical port of the OLT is processed, there is no need to replace the ONU device or upgrade the ONU version. Therefore, even when the traffic bursts, the ONU is not required to be processed, and only the port of the OLT is re-established. The configuration can be solved, and the problem that the ONU cannot guarantee the various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of the ONUs is solved, and the OLT port is configured to cope with the network. The scenario of various traffic bursts reduces the impact of traffic bursts on the ONU.
附图说明DRAWINGS
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the present disclosure, which is a part of the present disclosure, and the description of the present disclosure and the description thereof are not intended to limit the disclosure. In the drawing:
图1是根据本公开实施例的FTTX系统整体组网图;1 is an overall networking diagram of an FTTX system in accordance with an embodiment of the present disclosure;
图2是根据本公开实施例的一种OLT端口的配置信息的处理方法的移动终端的硬件结构框图;2 is a hardware structural block diagram of a mobile terminal for processing a configuration information of an OLT port according to an embodiment of the present disclosure;
图3是根据本公开实施例的第一种OLT端口的配置信息的处理方法流程图;3 is a flowchart of a method for processing configuration information of a first type of OLT port according to an embodiment of the present disclosure;
图4是根据本公开实施例的第二种OLT端口的配置信息的处理方法流程图;4 is a flowchart of a method for processing configuration information of a second type of OLT port according to an embodiment of the present disclosure;
图5是根据本公开具体实施例1的OLT检测配置流程图;5 is a flowchart of an OLT detection configuration according to a specific embodiment 1 of the present disclosure;
图6是根据本公开具体实施例2的OLT检测配置流程图;6 is a flowchart of an OLT detection configuration according to a specific embodiment 2 of the present disclosure;
图7是根据本公开具体实施例2的ONU检测物理端口状态流程图;7 is a flowchart of detecting a physical port state by an ONU according to a second embodiment of the present disclosure;
图8是根据本公开具体实施例2的ONU检测逻辑端口状态流程图;8 is a flowchart of an ONU detecting logical port state according to a second embodiment of the present disclosure;
图9是根据本公开具体实施例3的OLT检测配置流程图;9 is a flowchart of an OLT detection configuration according to a specific embodiment 3 of the present disclosure;
图10是根据本公开具体实施例4的OLT检测配置流程图;10 is a flowchart of an OLT detection configuration according to a specific embodiment 4 of the present disclosure;
图11是根据本公开实施例的第一种OLT端口的配置信息的处理装置的结构框图;11 is a structural block diagram of a processing apparatus for configuration information of a first type of OLT port according to an embodiment of the present disclosure;
图12是根据本公开实施例的第二种OLT端口的配置信息的处理装置的结构框图;12 is a structural block diagram of a processing apparatus for configuration information of a second OLT port according to an embodiment of the present disclosure;
图13是根据本公开实施例FTTX系统整体模块示意图。13 is a schematic diagram of an overall module of an FTTX system in accordance with an embodiment of the present disclosure.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
本公开实施例中的方案可以应用于FTTX系统中,可以解决系统中流量突发的问题,使得FTTX系统可以应对网络中各种突发的场景。FTTX系统整体组网图如图1所示。The solution in the embodiment of the present disclosure can be applied to the FTTX system, and can solve the problem of traffic burst in the system, so that the FTTX system can cope with various burst scenarios in the network. The overall network diagram of the FTTX system is shown in Figure 1.
FTTX系统的流量突发,主要是由于上层设备的流量突发导致(10G),ONU下挂设备的链路(百兆/千兆)可能成为瓶颈,从而导致ONU设备需要更多的缓存来存储报文,否则会导致报文丢弃,从而影响到用户体检。The traffic burst of the FTTX system is mainly caused by the traffic burst of the upper device (10G). The link of the ONU device (100 Mbps/Gigabit) may become a bottleneck, which causes the ONU device to need more cache to store. Packets, otherwise the packets will be discarded, which will affect the user's medical examination.
通常来说ONU作为终端设备缓存有限,而OLT作为局端设备缓存充足,并且配置修改方便,本公开实施例中就是通过OLT上的缓存配置策略来解决ONU终端的缓存瓶颈。Generally, the ONU has a limited buffer as a terminal device, and the OLT is sufficient as a central office device to cache, and the configuration is easily modified. In the embodiment of the present disclosure, the cache configuration bottleneck of the ONU terminal is solved by the cache configuration policy on the OLT.
为了解决上述问题,本公开提供了一种FTTX系统流量突发保护方法 和装置,下面解决实施例对本公开进行说明:In order to solve the above problems, the present disclosure provides a method and apparatus for traffic burst protection of an FTTX system. The following solutions are provided to explain the present disclosure:
实施例1Example 1
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图2是本公开实施例的一种OLT端口的配置信息的处理方法的移动终端的硬件结构框图。如图2所示,移动终端20可以包括一个或多个(图2中仅示出一个)处理器202(处理器202可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和设置为存储数据的存储器204,可选地,上述移动终端还可以包括设置为通信功能的传输设备206以及输入输出设备208。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端20还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 2 is a hardware structural block diagram of a mobile terminal for processing a configuration information of an OLT port according to an embodiment of the present disclosure. As shown in FIG. 2, mobile terminal 20 may include one or more (only one of which is shown in FIG. 2) processor 202 (processor 202 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. And a memory 204 configured to store data. Optionally, the mobile terminal may further include a transmission device 206 configured as a communication function and an input and output device 208. It will be understood by those skilled in the art that the structure shown in FIG. 2 is merely illustrative, and does not limit the structure of the above mobile terminal. For example, the mobile terminal 20 may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
存储器204可设置为存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的OLT端口的配置信息的处理方法对应的计算机程序,处理器202通过运行存储在存储器204内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器204可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器204可进一步包括相对于处理器202远程设置的存储器,这些远程存储器可以通过网络连接至移动终端20。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 204 may be configured to store a computer program, for example, a software program of a application software and a module, such as a computer program corresponding to a processing method of configuration information of an OLT port in the embodiment of the present disclosure, and the processor 202 is stored in the memory 204 by running The computer program, thereby performing various functional applications and data processing, implements the above method. Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 204 can further include memory remotely located relative to processor 202, which can be connected to mobile terminal 20 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置206设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端20的通信供应商提供的无线网络。在一个实例中,传输装置206包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置206可以为射频(Radio Frequency,简称为RF)模块,其设置为通过无线方式与互联网进行通讯。 Transmission device 206 is arranged to receive or transmit data via a network. The above specific network example may include a wireless network provided by a communication provider of the mobile terminal 20. In one example, the transmission device 206 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
实施例2Example 2
在本实施例中提供了一种OLT端口的配置信息的处理方法,图3是根据本公开实施例的第一种OLT端口的配置信息的处理方法流程图,如图3所示,该流程包括如下步骤:In this embodiment, a method for processing configuration information of an OLT port is provided. FIG. 3 is a flowchart of a method for processing configuration information of a first type of OLT port according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes The following steps:
步骤S302,获取光纤网络单元ONU发送的所述ONU中的第一端口的信息;Step S302: Acquire information about the first port in the ONU sent by the optical network unit ONU.
步骤S304,确定光纤线路终端OLT中与第一端口对应的第二端口,其中,该第二端口为逻辑端口;Step S304, determining a second port corresponding to the first port in the optical line terminal OLT, where the second port is a logical port;
步骤S306,根据上述第一端口的信息对第二端口的配置信息进行处理。Step S306, processing configuration information of the second port according to the information of the first port.
其中,执行上述操作的可以是终端,例如OLT。在本实施例中,OLT中对应不同的ONU的端口是不同的逻辑端口(也可称为虚拟端口),不同的逻辑端口的配置信息是不同的。Wherein, the above operation may be a terminal, such as an OLT. In this embodiment, ports corresponding to different ONUs in the OLT are different logical ports (also referred to as virtual ports), and configuration information of different logical ports is different.
在上述实施例中,由于是对OLT的逻辑端口的配置信息进行了处理,无需更换ONU设备或者升级ONU版本,所以,即使在流量突发时,也无需对ONU进行处理,只对OLT的端口进行重新配置即可,解决了相关技术中存在的由于ONU型号、数量众多而导致在流量突发场景下,ONU无法保证满足各种流量突发的场景的问题,进而实现了通过配置OLT端口来应对网络中各种流量突发的场景,减少了流量突发对于ONU的冲击的目的。In the above embodiment, since the configuration information of the logical port of the OLT is processed, there is no need to replace the ONU device or upgrade the ONU version. Therefore, even when the traffic bursts, the ONU is not processed, and only the port of the OLT is processed. The reconfiguration can be performed to solve the problem that the ONU cannot guarantee the scenario of various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of ONUs. Coping with various traffic burst scenarios in the network reduces the impact of traffic bursts on the ONU.
在一个可选的实施例中,上述第一端口的信息包括第一端口的连接状态、第一端口的报文处理速率和第一端口的缓存能力,其中,根据第一端口的信息对第二端口的配置信息进行处理包括:在确定第一端口的连接状态为正常连接时,根据第一端口的报文处理速率以及第一端口的缓存能力对第二端口的配置信息进行调整;和/或,在确定第一端口的连接状态为断开连接时,删除第二端口的配置信息。在本实施例中,是不需要对断开连 接的ONU中的端口对应的逻辑端口的配置信息进行调整的。In an optional embodiment, the information about the first port includes a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port, where the information is used according to the information of the first port. The configuration information of the port is processed, and when the connection state of the first port is determined to be a normal connection, the configuration information of the second port is adjusted according to the packet processing rate of the first port and the buffering capability of the first port; and/or When the connection state of the first port is determined to be disconnected, the configuration information of the second port is deleted. In this embodiment, it is not necessary to adjust the configuration information of the logical port corresponding to the port in the disconnected ONU.
在一个可选的实施例中,上述第二端口的配置信息包括整型值、突发值和缓存值,其中,根据第一端口的报文处理速率以及第一端口的缓存能力对第二端口的配置信息进行调整包括:将第二端口的整形值调整成小于或等于第一端口的报文处理速率;将第二端口的突发值调整成小于或等于第一端口的缓存能力;将第二端口的缓存值调整成大于第一端口的缓存能力;其中,该整形值用于第二端口转发报文的平均速率,上述突发值用于表示第二端口转发报文超过平均速率的字节数,上述缓存值用于表示第二端口允许缓存报文的字节数。在本实施例中,是通过OLT上的虚拟端口(对应于上述的逻辑端口)与ONU端口进行绑定,针对OLT上虚拟端口进行整形(虚拟端口转发报文的平均速率)、突发(虚拟端口转发报文超过平均速率的字节数)和缓存(虚拟端口能够缓存报文的字节数)调整,在OLT上屏蔽FTTX系统外的突发流量,从而减少对于ONU的冲击,来解决流量突发问题。在本实施例中,OLT可以基于ONU上报的端口信息(例如,端口连接状态,端口的报文处理速率,端口的缓存能力)针对虚拟端口进行整形、突发和缓存调整。In an optional embodiment, the configuration information of the second port includes an integer value, a burst value, and a cache value, where the second port is configured according to a packet processing rate of the first port and a buffering capability of the first port. The configuration information is adjusted to: adjust the shaping value of the second port to be less than or equal to the packet processing rate of the first port; adjust the burst value of the second port to be less than or equal to the buffering capability of the first port; The buffer value of the second port is adjusted to be larger than the buffering capability of the first port. The shaping value is used for the average rate of the second port to forward the packet. The burst value is used to indicate that the second port forwards the packet exceeding the average rate. The number of sections, the above cached value is used to indicate the number of bytes of the second port allowed to buffer packets. In this embodiment, the virtual port (corresponding to the above-mentioned logical port) on the OLT is bound to the ONU port, and the virtual port on the OLT is shaped (the average rate of the virtual port forwarding packet) and the burst (virtual). The number of bytes that the port forwards the packet exceeds the average rate) and the cache (the number of bytes that the virtual port can buffer the packet) are adjusted. The burst traffic outside the FTTX system is shielded on the OLT, thereby reducing the impact on the ONU and solving the traffic. Sudden problems. In this embodiment, the OLT may perform shaping, bursting, and buffer adjustment for the virtual port based on port information reported by the ONU (eg, port connection status, packet processing rate of the port, and buffering capability of the port).
在一个可选的实施例中,在删除上述第二端口的配置信息之后,上述方法还包括:将第二端口的配置信息所占用的资源分配给OLT中的其他端口。也就是说,在本实施例中,删除的缓存资源可以分配给其他虚拟端口使用。In an optional embodiment, after deleting the configuration information of the second port, the method further includes: allocating resources occupied by the configuration information of the second port to other ports in the OLT. That is to say, in this embodiment, the deleted cache resource can be allocated to other virtual ports for use.
在一个可选的实施例中,在根据上述第一端口的信息对第二端口的信息进行处理之前,上述方法还包括:确定ONU的认证状态;根据上述第一端口的信息对第二端口的信息进行处理包括:在确定ONU的认证状态为认证成功时,根据第一端口的信息对第二端口的配置信息进行处理。也就是说,在本实施例中,是可以先对ONU的认证状态进行确定的,在确定ONU的认证状态是认证成功时,才会对ONU中的端口对应的OLT中的逻辑端口的配置信息进行处理。下面对认证失败下的处理方式进行说明:In an optional embodiment, before the processing the information of the second port according to the information of the first port, the method further includes: determining an authentication status of the ONU; and using the information of the first port to the second port The information processing includes: when determining that the authentication status of the ONU is the authentication success, processing the configuration information of the second port according to the information of the first port. That is to say, in this embodiment, the authentication status of the ONU can be determined first. When the authentication status of the ONU is determined to be successful, the configuration information of the logical port in the OLT corresponding to the port in the ONU is obtained. Process it. The following describes the processing method under authentication failure:
在一个可选的实施例中,在确定ONU的认证状态之后,上述方法还包括:在确定ONU的认证状态为认证失败时,删除OLT中与ONU中的所有端口分别对应的端口的配置信息。在本实施例中,在ONU认证失败时,说明该ONU与OLT之间应当是不会有报文传输的,因此,可以将OLT中与ONU中的端口对应的端口配置进行删除。In an optional embodiment, after determining the authentication status of the ONU, the method further includes: deleting the configuration information of the port corresponding to all ports in the ONU in the OLT when the authentication status of the ONU is determined to be an authentication failure. In this embodiment, when the ONU authentication fails, it indicates that there should be no packet transmission between the ONU and the OLT. Therefore, the port configuration corresponding to the port in the ONU in the OLT can be deleted.
在一个可选的实施例中,在删除上述OLT中与ONU中的所有端口分别对应的端口的配置信息之后,上述方法还包括:将OLT中与ONU中的所有端口分别对应的端口的配置信息所占用的资源分配给OLT中的其他端口。也就是说,在本实施例中,删除的缓存资源可以分配给其他虚拟端口使用。In an optional embodiment, after the configuration information of the port corresponding to all the ports in the ONU is deleted, the method further includes: configuring configuration information of the port corresponding to all ports in the ONU in the OLT. The occupied resources are allocated to other ports in the OLT. That is to say, in this embodiment, the deleted cache resource can be allocated to other virtual ports for use.
在一个可选的实施例中,在根据上述第一端口的信息对第二端口的配置信息进行处理之前,上述方法还包括:确定OLT的上联口转发报文的速率;根据第一端口的信息对第二端口的配置信息进行处理包括:在确定上联口转发报文的速率大于第一端口的报文处理速率时,根据第一端口的信息对第二端口的配置信息进行处理。在本实施例中,OLT可以基于OLT上联口速率和ONU上报的端口信息进行判断,针对虚拟端口进行整形、突发和缓存调整。此外,还需要说明的是,OLT还可以基于ONU的认证状态,并结合OLT上联口报文速率和ONU上报端口信息进行判断,针对虚拟端口进行整形、突发和缓存调整。In an optional embodiment, before the processing of the configuration information of the second port is performed according to the information about the first port, the method further includes: determining a rate at which the uplink port of the OLT forwards the packet; The processing of the second port configuration information includes: when determining that the rate at which the uplink port forwards the packet is greater than the packet processing rate of the first port, processing the configuration information of the second port according to the information of the first port. In this embodiment, the OLT may perform judgment based on the link rate of the OLT and the port information reported by the ONU, and perform shaping, burst, and buffer adjustment for the virtual port. In addition, it should be noted that the OLT can also perform judgment based on the authentication status of the ONU, combined with the link rate of the link on the OLT and the report port of the ONU, and perform shaping, burst, and buffer adjustment for the virtual port.
在一个可选的实施例中,在确定上述OLT的上联口转发报文的速率之后,上述方法还包括:在确定上联口转发报文的速率小于或等于第一端口的报文处理速率时,维持第二端口的配置信息不变。In an optional embodiment, after determining the rate at which the uplink port of the OLT forwards the packet, the method further includes: determining that the rate at which the uplink port forwards the packet is less than or equal to the packet processing rate of the first port. When the configuration information of the second port is maintained.
在一个可选的实施例中,上述第一端口的信息中包括第一端口的编号,其中,在接收来自光纤网络单元ONU的ONU中第一端口的信息之前,上述方法还包括:记录ONU中的各端口的编号与OLT中的各端口之间的对应关系;确定光纤线路终端OLT中与第一端口对应的第二端口包括:根据对应关系以及第一端口的编号确定与该第一端口对应的第二端口。在 本实施例中,OLT上的虚拟端口(对应于上述的逻辑端口)与ONU中的端口是需要预先进行绑定的。In an optional embodiment, the information of the first port includes the number of the first port, where the method further includes: recording the ONU before receiving the information of the first port in the ONU from the optical network unit ONU Corresponding relationship between the number of each port and each port in the OLT; determining the second port of the fiber line terminal OLT corresponding to the first port includes: determining, according to the correspondence relationship and the number of the first port, the first port The second port. In this embodiment, the virtual port (corresponding to the above-mentioned logical port) on the OLT and the port in the ONU need to be bound in advance.
在一个可选的实施例中,上述第一端口的信息包括以下至少之一:第一端口的编号、第一端口的连接状态、第一端口的报文处理速率、第一端口的缓存能力;和/或,上述第二端口的配置信息包括以下至少之一:整形值,用于表示第二端口转发报文的平均速率的;突发值,用于表示第二端口转发报文超过平均速率的字节数;缓存值,用于表示第二端口允许缓存报文的字节数。In an optional embodiment, the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate. The number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
在一个可选的实施例中,当上述第一端口为物理端口时,该第一端口的报文处理速率为第一端口的协商速率;和/或,当上述第一端口为逻辑端口时,该第一端口的报文处理速率为第一端口的处理报文的最大速率。也就是说,在本实施例中,如果ONU端口是物理端口,可以通过其端口协商速率,作为端口速率上报;如果ONU端口是逻辑端口,可以通过其端口最大处理报文速率,作为端口速率上报。In an optional embodiment, when the first port is a physical port, the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, The packet processing rate of the first port is the maximum rate of processing packets of the first port. That is, in this embodiment, if the ONU port is a physical port, the rate can be reported as the port rate through the port negotiation rate. If the ONU port is a logical port, the maximum rate of the packet can be processed through the port as the port rate. .
实施例3Example 3
在本实施例中还提供了一种OLT端口的配置信息的处理方法,图4是根据本公开实施例的第二种OLT端口的配置信息的处理方法流程图,如图4所示,该流程包括如下步骤:In this embodiment, a method for processing configuration information of an OLT port is further provided. FIG. 4 is a flowchart of a method for processing configuration information of a second OLT port according to an embodiment of the present disclosure. Including the following steps:
步骤S402,将ONU中的第一端口的信息发送给OLT,其中,该第一端口的信息用于指示OLT确定OLT中与所述第一端口对应的第二端口,并根据第一端口的信息对第二端口的配置信息进行处理,该第二端口为逻辑端口。Step S402, the information of the first port in the ONU is sent to the OLT, where the information of the first port is used to instruct the OLT to determine the second port in the OLT corresponding to the first port, and according to the information of the first port. The configuration information of the second port is processed, and the second port is a logical port.
其中,执行上述操作的可以是ONU。在本实施例中,OLT中对应不同的ONU的端口是不同的逻辑端口(也可称为虚拟端口),不同的逻辑端口的配置信息是不同的。Among them, the above operation may be an ONU. In this embodiment, ports corresponding to different ONUs in the OLT are different logical ports (also referred to as virtual ports), and configuration information of different logical ports is different.
在上述实施例中,由于是对OLT的逻辑端口的配置信息进行了处理, 无需更换ONU设备或者升级ONU版本,所以,即使在流量突发时,也无需对ONU进行处理,只对OLT的端口进行重新配置即可,解决了相关技术中存在的由于ONU型号、数量众多而导致在流量突发场景下,ONU无法保证满足各种流量突发的场景的问题,进而实现了通过配置OLT端口来应对网络中各种流量突发的场景,减少了流量突发对于ONU的冲击的目的。In the above embodiment, since the configuration information of the logical port of the OLT is processed, the ONU device does not need to be replaced or the ONU version is upgraded. Therefore, even when the traffic bursts, the ONU is not processed, and only the port of the OLT is processed. The reconfiguration can be performed to solve the problem that the ONU cannot guarantee the scenario of various traffic bursts in the traffic burst scenario due to the number of ONU models and the number of ONUs. Coping with various traffic burst scenarios in the network reduces the impact of traffic bursts on the ONU.
在一个可选的实施例中,在将ONU中的第一端口的信息发送给OLT之前,上述方法还包括:检测到所述第一端口的连接状态发生变化。在本实施例中,ONU可以实时监测ONU中各个端口的状态,在确定有端口的连接状态发生变化后,将ONU中的连接状态发生变化的端口的信息发生给OLT。In an optional embodiment, before the sending the information of the first port in the ONU to the OLT, the method further includes: detecting that the connection state of the first port changes. In this embodiment, the ONU can monitor the status of each port in the ONU in real time, and after determining that the connection status of the port changes, the information of the port whose connection status changes in the ONU is generated to the OLT.
在一个可选的实施例中,在将ONU中的第一端口的信息发送给OLT之前,上述方法还包括:检测ONU中各端口的连接状态、各端口的报文处理速率以及各端口的缓存能力;将ONU中的第一端口的信息发送给OLT包括:将第一端口的编号,检测到的第一端口的连接状态、第一端口的报文处理速率以及第一端口的缓存能力发送给OLT。In an optional embodiment, before the sending the information of the first port in the ONU to the OLT, the method further includes: detecting a connection state of each port in the ONU, a packet processing rate of each port, and a buffer of each port. The function of sending the information of the first port in the ONU to the OLT includes: sending the number of the first port, the detected connection state of the first port, the packet processing rate of the first port, and the buffering capability of the first port to OLT.
在一个可选的实施例中,上述第一端口的信息包括以下至少之一:第一端口的编号、第一端口的连接状态、第一端口的报文处理速率、第一端口的缓存能力;和/或,上述第二端口的配置信息包括以下至少之一:整形值,用于表示第二端口转发报文的平均速率的;突发值,用于表示第二端口转发报文超过平均速率的字节数;缓存值,用于表示第二端口允许缓存报文的字节数。In an optional embodiment, the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate. The number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
在一个可选的实施例中,当上述第一端口为物理端口时,第一端口的报文处理速率为第一端口的协商速率;和/或,当第一端口为逻辑端口时,第一端口的报文处理速率为第一端口的处理报文的最大速率。In an optional embodiment, when the first port is a physical port, the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, the first The packet processing rate of the port is the maximum rate of processing packets on the first port.
实施例2主要是从OLT侧进行描述的,实施例3主要是从ONU侧进行描述的,下面结合具体实施例,对OLT和ONU之间的交互处理进行整 体说明:The embodiment 2 is mainly described from the OLT side. The third embodiment is mainly described from the ONU side. The following describes the interaction between the OLT and the ONU in conjunction with the specific embodiments:
具体实施例1Specific embodiment 1
如图5所示,在本实施例中OLT针对虚拟端口配置整形值、突发值和缓存值配置,包括如下步骤:As shown in FIG. 5, in this embodiment, the OLT configures the shaping value, the burst value, and the cache value configuration for the virtual port, including the following steps:
S501:ONU注册认证成功后,OLT给ONU下发数据配置,将ONU的端口数据映射到OLT的虚拟端口(对应于上述的OLT中的逻辑端口)上;S501: After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT (corresponding to the logical port in the OLT).
S502:OLT记录ONU端口和OLT虚拟端口的端口关系表,包括该ONU在OLT上的槽位号、PON口号以及注册号信息,如2号槽位3号PON口5号ONU的LAN1口对应虚拟端口256时的记录信息为2/3/5:1对应256;S502: The OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT. For example, the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port. The record information at port 256 is 2/3/5:1 corresponding to 256;
S503:OLT针对虚拟端口配置整形值、突发值和缓存值参数。S503: The OLT configures an shaping value, a burst value, and a cache value parameter for the virtual port.
按照本公开实施例中的内容,OLT针对虚拟端口配置整形值、突发值和缓存值,保证OLT下发的报文速率比较均匀,并缓存上层设备的突发流量,减少了流量突发对于ONU的冲击。According to the content of the embodiment of the present disclosure, the OLT configures the shaping value, the burst value, and the buffer value for the virtual port to ensure that the packet rate delivered by the OLT is relatively uniform, and the burst traffic of the upper layer device is cached, and the traffic burst is reduced. The impact of ONU.
具体实施例2Specific embodiment 2
如图6所示,在本具体实施例中,OLT根据ONU上报的端口信息来调整OLT中的虚拟端口的整形值、突发值和缓存值配置,包括如下步骤:As shown in FIG. 6, in the specific embodiment, the OLT adjusts the configuration of the shaping value, the burst value, and the cache value of the virtual port in the OLT according to the port information reported by the ONU, including the following steps:
S601:ONU注册认证成功后,OLT给ONU下发数据配置,将ONU的端口数据映射到OLT的虚拟端口上;S601: After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
S602:OLT记录ONU端口和OLT虚拟端口的端口关系表,包括该ONU在OLT上的槽位号、PON口号以及注册号信息,如2号槽位3号PON口5号ONU的LAN1口对应虚拟端口256时的记录信息为2/3/5:1对应256;S602: The OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, the PON port number, and the registration number information of the ONU on the OLT, such as the LAN1 port of the No. 5 PON port No. 5 ONU in the slot 2 The record information at port 256 is 2/3/5:1 corresponding to 256;
S603:OLT检测ONU上报端口信息的消息(即,检测是否接收到ONU端口状态变化信息),如果没有收到消息,继续检测,如果收到消息, 进入S604;S603: The OLT detects the message that the ONU reports the port information (that is, detects whether the ONU port status change information is received). If the message is not received, the OLT continues to detect. If the message is received, the process proceeds to S604.
S604:获取ONU端口状态信息,判断ONU端口状态,如果端口是UP状态(对应于上述的连接状态),进入S606,否则(即,如果端口时DOWN状态,对应于上述的断开连接状态)进入S605;S604: Obtain the status information of the ONU port, determine the status of the ONU port, and if the port is in the UP state (corresponding to the connection state described above), go to S606, otherwise (ie, if the port is in the DOWN state, corresponding to the disconnected state described above) S605;
S605:此时ONU端口为DOWN状态,由ONU端口号通过端口关系表确定OLT虚拟端口,通过虚拟端口索引查找配置关系表,删除虚拟端口整形值、突发值和缓存值配置,可以将删除的缓存用于其他虚拟端口使用,进入步骤S603继续检测;S605: The ONU port is in the DOWN state. The ONU port number is used to determine the OLT virtual port through the port relationship table. The virtual port index is used to search the configuration relationship table, and the virtual port shaping value, the burst value, and the cache value configuration are deleted. The cache is used for other virtual port usage, and the process proceeds to step S603 to continue the detection;
S606:此时ONU端口为UP状态,获取ONU的端口号、端口速率、端口缓存等参数信息,由ONU端口号通过端口关系表确定OLT虚拟端口;S606: The ONU port is in the UP state, and the parameter information such as the port number, the port rate, and the port cache of the ONU is obtained, and the OLT virtual port is determined by the ONU port number through the port relationship table.
S607:配置OLT虚拟端口的整形值、突发值和缓存值参数,OLT虚拟端口的具体配置原则参见发明实施例中的说明,记录配置关系表,如虚拟端口A配置的整形值B,突发值C,缓存值D,配置关系表记录为A对应B/C/D,A为索引号。进入步骤S603继续检测。S607: Configure the shaping value, the burst value, and the cache value parameter of the OLT virtual port. For the specific configuration principle of the OLT virtual port, refer to the description in the embodiment, and record the configuration relationship table, such as the shaping value B of the virtual port A configuration, and the burst. The value C, the cache value D, the configuration relationship table record is A corresponding to B/C/D, and A is the index number. Proceeding to step S603 to continue the detection.
按照本实施例,通过虚拟端口的整形值B小于等于ONU端口速率Y,保证OLT转发给ONU端口的报文速率小于等于ONU的端口速率,使得ONU端口能够处理所有的报文,不会产生丢包等问题;通过虚拟端口突发值C小于等于ONU端口缓存Z,使得OLT能够在平均速率的基础上突发更大的报文,尽最大能力发送更多的报文,但是保证这些报文不会因为ONU端口缓存不足而导致丢包;通过虚拟端口缓存值D大于ONU端口缓存Z,使得在上层设备有报文突发时OLT虚拟端口相比ONU端口能够缓存更多的报文,从而保证这些报文不会被丢弃。According to the embodiment, the shaping value B of the virtual port is less than or equal to the rate Y of the ONU port, so that the rate of the packet forwarded by the OLT to the ONU port is less than or equal to the rate of the ONU, so that the ONU port can process all the packets without any loss. Packets and other problems; the virtual port burst value C is less than or equal to the ONU port buffer Z, so that the OLT can burst larger packets on the basis of the average rate, and send more packets as much as possible, but guarantee these packets. The OLT virtual port can cache more packets than the ONU port when the upper device has a packet burst, so that the virtual port cache value D is greater than the ONU port cache Z. Ensure that these messages are not discarded.
如图7所示,所对应的ONU端口是真实的硬件端口信息,通过对ONU硬件端口的协商状态来进行检测。As shown in FIG. 7, the corresponding ONU port is real hardware port information, and is detected by the negotiation state of the ONU hardware port.
S701:ONU启动完成后,接收OLT下发的配置,解析相关配置信息;S701: After the ONU is started, the configuration sent by the OLT is received, and the related configuration information is parsed.
S702:基于配置将ONU的端口数据报文转发到OLT配置的虚拟端口中;S702: Forward, according to the configuration, the port data packet of the ONU to the virtual port configured by the OLT.
S703:ONU启动线程检测各个物理端口的协商状态变化信息;S703: The ONU starts a thread to detect negotiation state change information of each physical port.
S704:如果没有变化,继续检测,如果有变化,进入S705;S704: If there is no change, continue to detect, if there is a change, go to S705;
S705:获取物理端口的协商状态,如果是从DOWN到UP状态,获取端口的端口号、协商速率、端口缓存等信息,将协商速率作为端口速率上报;如果是从UP到DOWN状态,获取端口的端口号信息,协商速率和端口缓存默认不关心,可以配置为全0,进入步骤S706;S705: Obtain the negotiation status of the physical port. If the status is from DOWN to UP, the port number, the negotiation rate, and the port cache are obtained. The negotiation rate is reported as the port rate. If the status is from UP to DOWN, the port is obtained. The port number information, the negotiation rate and the port cache are not concerned by default, and can be configured to all 0s, and the process proceeds to step S706;
S706:ONU将端口信息(端口号,端口状态,端口速率,端口缓存)上报给OLT,端口状态为UP时,端口速率即为端口协商速率;端口状态为DOWN时,端口速率和端口缓存没有意义,可以上报为全0。S706: The ONU reports the port information (port number, port status, port rate, and port buffer) to the OLT. When the port status is UP, the port rate is the port negotiation rate. When the port status is DOWN, the port rate and port buffer have no meaning. Can be reported as all 0s.
在本具体实施例中,ONU端口可以是非真实的硬件端口信息,是逻辑端口(如WIFI的ESSID端口),通过对ONU逻辑端口MAC地址信息的检测,来判断ONU端口是否在使用;通过逻辑端口的处理报文最大速率来表示端口速率,如图8所示,本实施例包括如下步骤:In this embodiment, the ONU port may be a non-real hardware port information, and is a logical port (such as an ESSID port of the WIFI). The ONU port is used to detect whether the ONU port is in use or not; The maximum rate of processing the packet indicates the port rate. As shown in FIG. 8, the embodiment includes the following steps:
S801:ONU启动完成后,接收OLT下发的配置,解析相关配置信息;S801: After the ONU is started, the configuration sent by the OLT is received, and the related configuration information is parsed.
S802:基于配置将ONU的端口数据报文转发到OLT配置的虚拟端口中;S802: Forward, according to the configuration, the port data packet of the ONU to the virtual port configured by the OLT;
S803:ONU启动线程检测各个逻辑端口的MAC地址学习信息;S803: The ONU startup thread detects MAC address learning information of each logical port;
S804:记录各个逻辑端口MAC地址学习数量,并与上次记录值进行比较;S804: record the number of MAC address learning of each logical port, and compare with the last recorded value;
S805:如果逻辑端口的MAC地址数量为从有到无状态,则进入步骤S809,否则进入步骤S806;S805: If the number of MAC addresses of the logical port is from the state to the state, the process proceeds to step S809, otherwise proceeds to step S806;
S806:如果逻辑端口的MAC地址数量为从无到有状态,则进入步骤S807,否则继续检测各个逻辑端口MAC地址学习信息;S806: If the number of MAC addresses of the logical port is from the endless state, proceed to step S807, otherwise continue to detect the MAC address learning information of each logical port;
S807:此时该逻辑端口状态为UP状态,记录该状态,进入步骤S808;S807: At this time, the logical port state is the UP state, and the state is recorded, and the process proceeds to step S808;
S808:获取逻辑端口的端口速率和端口缓存,该端口速率并不是表示真正的物理速率,而是指该逻辑端口能够处理报文的最大速率(如WIFI 的ESSID逻辑端口能够处理报文最大速率为500Mbit/s,则该速率即为端口速率),进入步骤S810;S808: Obtain a port rate and a port buffer of the logical port. The port rate does not indicate a true physical rate, but refers to a maximum rate at which the logical port can process packets. For example, the ESSID logical port of the WIFI can process the maximum rate of the packet. 500Mbit / s, then the rate is the port rate), proceeds to step S810;
S809:此时该逻辑端口状态为DOWN状态,记录该状态,进入步骤S810;S809: At this time, the logical port state is the DOWN state, and the state is recorded, and the process proceeds to step S810;
S810:ONU将物理端口信息(端口号,端口状态,端口速率,端口缓存)上报给OLT,端口状态为UP时,端口速率即为该端口处理报文的最大速率;端口状态为DOWN时,端口速率和端口缓存没有意义,可以上报为全0。S810: The ONU reports the physical port information (port number, port status, port rate, and port buffer) to the OLT. When the port status is Up, the port rate is the maximum rate at which the port processes packets. When the port status is DOWN, the port is DOWN. The rate and port buffers are meaningless and can be reported as all zeros.
具体实施例3Specific embodiment 3
如图9所示,在本具体实施例中,所对应的OLT根据ONU上报的端口信息和OLT上联口信息来调整虚拟端口的整形值、突发值和缓存值配置,包括如下步骤。As shown in FIG. 9 , in the specific embodiment, the corresponding OLT adjusts the shaping value, the burst value, and the cache value configuration of the virtual port according to the port information reported by the ONU and the interface information on the OLT, and includes the following steps.
S901:ONU注册认证成功后,OLT给ONU下发数据配置,将ONU的端口数据映射到OLT的虚拟端口上;S901: After the ONU is successfully registered, the OLT sends a data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
S902:OLT记录ONU端口和OLT虚拟端口的端口关系表,包括该ONU在OLT上的槽位号、PON口号以及注册号信息,如2号槽位3号PON口5号ONU的LAN1口对应虚拟端口256时的记录信息为2/3/5:1对应256;S902: The OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT. For example, the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port. The record information at port 256 is 2/3/5:1 corresponding to 256;
S903:OLT检测ONU上报端口信息的消息(即,接收ONU端口状态变化信息),如果没有收到消息,继续检测,如果收到消息,进入S904;S903: The OLT detects the message that the ONU reports the port information (that is, receives the ONU port state change information), if the message is not received, continues to detect, if the message is received, the process proceeds to S904;
S904:获取ONU端口状态信息,如果端口是UP状态,进入S906,否则进入S905;S904: Obtain the status information of the ONU port. If the port is in the UP state, go to S906, otherwise go to S905.
S905:此时ONU端口为DOWN状态,由ONU端口号通过端口关系表确定OLT虚拟端口,通过虚拟端口索引查找配置关系表,删除虚拟端口整形值、突发值和缓存值配置,可以将删除的缓存用于其他虚拟端口使 用,则继续检测;S905: The ONU port is in the DOWN state. The ONU port number is used to determine the OLT virtual port through the port relationship table. The virtual port index is used to search the configuration relationship table, and the virtual port shaping value, the burst value, and the cache value configuration are deleted. The cache is used for other virtual port usage and continues to be detected;
S906:此时ONU端口为UP状态,获取ONU端口速率;S906: The ONU port is in the UP state, and the ONU port rate is obtained.
S907:由ONU端口号通过端口关系表确定OLT虚拟端口,从而定位到该虚拟端口的上联口信息,获取OLT上联口的速率信息;S907: The OLT virtual port is determined by the port number relationship table of the ONU port number, so that the uplink port information of the virtual port is located, and the rate information of the interface on the OLT is obtained.
S908:如果OLT上联口速率大于ONU端口速率,则进入步骤S709,否则继续检测;S908: If the uplink rate of the OLT is greater than the ONU port rate, proceed to step S709, otherwise continue to detect;
S909:获取ONU的端口号、端口速率、端口缓存等参数信息,由ONU端口号通过端口关系表确定OLT虚拟端口,配置OLT虚拟端口的整形值、突发值和缓存值参数,OLT虚拟端口的具体配置原则参见发明内容中的说明,记录配置关系表,如虚拟端口A配置的整形值B,突发值C,缓存值D,配置关系表记录为A对应B/C/D,A为索引号,并继续进行检测。S909: Obtain the parameter information of the port number, the port rate, and the port cache of the ONU. The ONU port number is used to determine the OLT virtual port through the port relationship table, and the shaping value, the burst value, and the cache value parameter of the OLT virtual port are configured, and the OLT virtual port is configured. For details, refer to the description in the content of the invention. Record the configuration relationship table, such as the shaping value B of the virtual port A configuration, the burst value C, the cache value D, and the configuration relationship table records as A corresponding to B/C/D and A as the index. No. and continue to test.
在本实施例中,通过虚拟端口的整形值B小于等于ONU端口速率Y,保证OLT转发给ONU端口的报文速率小于等于ONU的端口速率,使得ONU端口能够处理所有的报文,不会产生丢包等问题;通过虚拟端口突发值C小于等于ONU端口缓存Z,使得OLT能够在平均速率的基础上突发更大的报文,尽最大能力发送更多的报文,但是保证这些报文不会因为ONU端口缓存不足而导致丢包;通过虚拟端口缓存值D大于ONU端口缓存Z,使得在上层设备有报文突发时OLT虚拟端口相比ONU端口能够缓存更多的报文,从而保证这些报文不会被丢弃。In this embodiment, the shaping port B of the virtual port is less than or equal to the ONU port rate Y, so that the packet rate that the OLT forwards to the ONU port is less than or equal to the port rate of the ONU, so that the ONU port can process all the packets without generating Packet loss and other issues; the virtual port burst value C is less than or equal to the ONU port cache Z, so that the OLT can burst larger packets based on the average rate and send more packets as much as possible, but guarantee these reports. The OLT virtual port can cache more packets than the ONU port when the upper device has a packet burst, because the virtual port cache value D is greater than the ONU port cache Z. This ensures that these messages will not be discarded.
可选地,通过对上联口速率的判断,只有在上联口速率大于ONU端口速率时,此时才存在突发的可能性,需要对虚拟端口进行整形、突发和缓存调整,保证了OLT资源利用的效率。Optionally, by determining the rate of the uplink port, only when the uplink port rate is greater than the ONU port rate, there is a possibility of bursting at this time, and the virtual port needs to be shaped, bursted, and cache adjusted to ensure that The efficiency of OLT resource utilization.
具体实施例4Specific embodiment 4
如图10所示,OLT根据ONU上报的端口信息、OLT上联口信息以及ONU注册状态来调整对应的整形值和缓存配置,包括如下步骤:As shown in Figure 10, the OLT adjusts the corresponding shaping value and cache configuration based on the port information reported by the ONU, the link information on the OLT, and the ONU registration status, including the following steps:
S1001:ONU注册认证成功后,OLT给ONU下发数据配置,将ONU的端口数据映射到OLT的虚拟端口上;S1001: After the ONU is successfully registered, the OLT sends data configuration to the ONU, and maps the port data of the ONU to the virtual port of the OLT.
S1002:OLT记录ONU端口和OLT虚拟端口的端口关系表,包括该ONU在OLT上的槽位号、PON口号以及注册号信息,如2号槽位3号PON口5号ONU的LAN1口对应虚拟端口256时的记录信息为2/3/5:1对应256;S1002: The OLT records the port relationship table between the ONU port and the OLT virtual port, including the slot number, PON port number, and registration number information of the ONU on the OLT. For example, the LAN1 port of the No. 5 PON port No. 5 ONU in slot 2 corresponds to the virtual port. The record information at port 256 is 2/3/5:1 corresponding to 256;
S1003:OLT检测ONU的认证状态,如果认证成功,进入步骤S1005,否则进入步骤S1004;S1003: OLT detects the authentication status of the ONU, if the authentication is successful, proceeds to step S1005, otherwise proceeds to step S1004;
S1004:此时ONU处于认证失败状态,OLT遍历该ONU所有端口信息,由ONU端口通过端口关系表确定OLT虚拟端口,通过虚拟端口索引查找配置关系表,删除虚拟端口整形值、突发值和缓存值配置,可以将删除的缓存用于其他虚拟端口使用,并继续检测;S1004: The ONU is in the authentication failure state, and the OLT traverses all the port information of the ONU. The ONU port determines the OLT virtual port through the port relationship table, searches the configuration relationship table through the virtual port index, and deletes the virtual port shaping value, burst value, and cache. Value configuration, the deleted cache can be used for other virtual ports and continue to be detected;
S1005:OLT检测ONU上报端口信息的消息(即,判断是否接收到ONU端口状态变化信息),如果没有收到消息,则继续检测,如果接收到,进入S1006;S1005: The OLT detects the message that the ONU reports the port information (that is, determines whether the ONU port status change information is received), and if the message is not received, continues to detect, if yes, proceeds to S1006;
S1006:获取ONU端口状态信息,如果端口是UP状态,进入S1008,否则进入S1007;S1006: Obtain the status information of the ONU port. If the port is in the UP state, go to S1008, otherwise go to S1007.
S1007:此时ONU端口为DOWN状态,由ONU端口号通过端口关系表确定OLT虚拟端口,通过虚拟端口索引查找配置关系表,删除虚拟端口整形值、突发值和缓存值配置,可以将删除的缓存用于其他虚拟端口使用,并继续检测;S1007: The ONU port is in the DOWN state. The ONU port number is used to determine the OLT virtual port through the port relationship table. The virtual port index is used to search the configuration relationship table, and the virtual port shaping value, burst value, and cache value configuration are deleted. The cache is used by other virtual ports and continues to be detected;
S1008:此时ONU端口为UP状态,获取ONU端口速率;S1008: The ONU port is in the Up state and obtains the ONU port rate.
S1009:由ONU端口号通过端口关系表确定OLT虚拟端口,从而定位到该虚拟端口的上联口信息,获取OLT上联口的速率信息;S1009: The OLT virtual port is determined by the port number relationship table of the ONU port number, so that the uplink port information of the virtual port is located, and the rate information of the interface on the OLT is obtained.
S1010:如果OLT上联口速率大于ONU端口信息,则进入步骤S1011,否则继续检测;S1010: If the uplink rate of the OLT is greater than the ONU port information, proceed to step S1011, otherwise continue to detect;
S1011:获取ONU的端口号、端口速率、端口缓存等参数信息,由ONU端口号通过端口关系表确定OLT虚拟端口,配置OLT虚拟端口的整形值、突发值和缓存值参数,OLT虚拟端口的具体配置原则参见发明内容中的说明,记录配置关系表,如虚拟端口A配置的整形值B,突发值C,缓存值D,配置关系表记录为A对应B/C/D,A为索引号。进入步骤S803继续检测。S1011: Obtain the parameter information of the port number, the port rate, and the port cache of the ONU. The ONU port number is used to determine the OLT virtual port through the port relationship table, and the shaping value, the burst value, and the cache value parameter of the OLT virtual port are configured, and the OLT virtual port is configured. For details, refer to the description in the content of the invention. Record the configuration relationship table, such as the shaping value B of the virtual port A configuration, the burst value C, the cache value D, and the configuration relationship table records as A corresponding to B/C/D and A as the index. number. Proceeding to step S803 to continue the detection.
按照本具体实施例中的内容,通过虚拟端口的整形值B小于等于ONU端口速率Y,保证OLT转发给ONU端口的报文速率小于等于ONU的端口速率,使得ONU端口能够处理所有的报文,不会产生丢包等问题;通过虚拟端口突发值C小于等于ONU端口缓存Z,使得OLT能够在平均速率的基础上突发更大的报文,尽最大能力发送更多的报文,但是保证这些报文不会因为ONU端口缓存不足而导致丢包;通过虚拟端口缓存值D大于ONU端口缓存Z,使得在上层设备有报文突发时OLT虚拟端口相比ONU端口能够缓存更多的报文,从而保证这些报文不会被丢弃。According to the content of the embodiment, the shaping port B of the virtual port is less than or equal to the rate Y of the ONU port, so that the rate of the packet forwarded by the OLT to the ONU port is less than or equal to the port rate of the ONU, so that the ONU port can process all the packets. No problem such as packet loss occurs; the virtual port burst value C is less than or equal to the ONU port buffer Z, so that the OLT can burst larger packets on the basis of the average rate and send more packets as much as possible, but Ensure that these packets are not lost due to insufficient ONU port buffering; the virtual port cache value D is greater than the ONU port cache Z, so that the OLT virtual port can cache more than the ONU port when there is a packet burst on the upper device. Messages to ensure that these messages will not be discarded.
可选地,通过对于上联口速率的判断,只有在上联口速率大于ONU端口速率时,此时才存在突发的可能性,需要对虚拟端口进行整形、突发和缓存调整,保证了OLT缓存资源利用的效率。Optionally, by determining the rate of the uplink port, only when the uplink port rate is greater than the ONU port rate, there is a possibility of bursting at this time, and the virtual port needs to be shaped, bursted, and cache adjusted to ensure that The efficiency of OLT cache resource utilization.
可选地,通过对于ONU认证状态的判断,当ONU处于认证失败状态时,此时ONU已经处于非法状态,无需针对ONU端口进行突发保护,可以直接删除该ONU所有端口在OLT上虚拟端口的整形、突发和缓存值配置,并将删除的缓存资源给其他虚拟端口使用,最大限度的提高OLT缓存资源利用的效率。Optionally, when the ONU is in the authentication failure state, the ONU is in an illegal state, and the ONU port does not need to perform burst protection for the ONU port, and the virtual port of all ports of the ONU can be directly deleted on the OLT. The shaping, burst, and cache value configuration, and the deleted cache resources are used by other virtual ports to maximize the efficiency of OLT cache resource utilization.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软 件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, portions of the technical solutions of the present disclosure that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
实施例4Example 4
在本实施例中还提供了一种OLT端口的配置信息的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for processing configuration information of an OLT port is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图11是根据本公开实施例的第一种OLT端口的配置信息的处理装置的结构框图,如图11所示,该装置包括:11 is a structural block diagram of a processing apparatus for configuration information of a first type of OLT port according to an embodiment of the present disclosure. As shown in FIG. 11, the apparatus includes:
获取模块112,设置为获取光纤网络单元ONU发送的ONU中的第一端口的信息;确定模块114,连接至上述获取模块114,设置为确定光纤线路终端OLT中与第一端口对应的第二端口,其中,该第二端口为逻辑端口;处理模块116,连接至上述获取模块114,设置为根据第一端口的信息对第二端口的配置信息进行处理。The obtaining module 112 is configured to acquire information of the first port in the ONU sent by the optical network unit ONU, and the determining module 114 is connected to the obtaining module 114, and configured to determine the second port of the optical line terminal OLT corresponding to the first port. The second port is a logical port; the processing module 116 is connected to the obtaining module 114, and configured to process the configuration information of the second port according to the information of the first port.
在一个可选的实施例中,上述第一端口的信息包括第一端口的连接状态、第一端口的报文处理速率和第一端口的缓存能力,其中,上述处理模块116包括:调整单元,设置为在确定第一端口的连接状态为正常连接时,根据第一端口的报文处理速率以及第一端口的缓存能力对第二端口的配置信息进行调整;和/或,删除单元,设置为在确定第一端口的连接状态为断开连接时,删除第二端口的配置信息。In an optional embodiment, the information about the first port includes a connection status of the first port, a packet processing rate of the first port, and a buffering capability of the first port, where the processing module 116 includes: an adjusting unit, When the connection state of the first port is determined to be a normal connection, the configuration information of the second port is adjusted according to the packet processing rate of the first port and the buffering capability of the first port; and/or the deleting unit is set to When it is determined that the connection state of the first port is disconnected, the configuration information of the second port is deleted.
在一个可选的实施例中,上述第二端口的配置信息包括整型值、突发值和缓存值,其中,上述调整单元具体设置为:将第二端口的整形值调整成小于或等于第一端口的报文处理速率;将第二端口的突发值调整成小于或等于第一端口的缓存能力;将第二端口的缓存值调整成大于第一端口的 缓存能力;其中,该整形值用于第二端口转发报文的平均速率,上述突发值用于表示第二端口转发报文超过平均速率的字节数,上述缓存值用于表示第二端口允许缓存报文的字节数。In an optional embodiment, the configuration information of the second port includes an integer value, a burst value, and a cache value, where the adjusting unit is specifically configured to: adjust the shaping value of the second port to be less than or equal to the first a packet processing rate of the port; adjusting the burst value of the second port to be less than or equal to the buffering capability of the first port; adjusting the buffer value of the second port to be greater than the buffering capability of the first port; wherein the shaping value The average rate of the packets forwarded by the second port, where the burst value is used to indicate the number of bytes that the second port forwards the packet exceeding the average rate, and the cache value is used to indicate the number of bytes allowed to be buffered by the second port. .
在一个可选的实施例中,上述装置还设置为:在删除上述第二端口的配置信息之后,将第二端口的配置信息所占用的资源分配给OLT中的其他端口。In an optional embodiment, the foregoing apparatus is further configured to: after deleting the configuration information of the second port, allocate resources occupied by the configuration information of the second port to other ports in the OLT.
在一个可选的实施例中,上述装置还设置为:在根据上述第一端口的信息对第二端口的信息进行处理之前,确定ONU的认证状态;上述处理模块116设置为:在确定ONU的认证状态为认证成功时,根据第一端口的信息对第二端口的配置信息进行处理。In an optional embodiment, the foregoing apparatus is further configured to: determine an authentication status of the ONU before processing the information of the second port according to the information of the first port; and the processing module 116 is configured to: determine the ONU When the authentication status is successful, the configuration information of the second port is processed according to the information of the first port.
在一个可选的实施例中,上述装置还设置为:在确定ONU的认证状态之后,在确定ONU的认证状态为认证失败时,删除OLT中与ONU中的所有端口分别对应的端口的配置信息。In an optional embodiment, the foregoing apparatus is further configured to: after determining the authentication status of the ONU, delete the configuration information of the port corresponding to all the ports in the OLT in the OLT when determining that the authentication status of the ONU is the authentication failure. .
在一个可选的实施例中,上述装置还设置为:在删除上述OLT中与ONU中的所有端口分别对应的端口的配置信息之后,将OLT中与ONU中的所有端口分别对应的端口的配置信息所占用的资源分配给OLT中的其他端口。In an optional embodiment, the foregoing apparatus is further configured to: after deleting the configuration information of the port corresponding to all ports in the ONU in the OLT, configure the port corresponding to all ports in the ONU in the OLT respectively. The resources occupied by the information are allocated to other ports in the OLT.
在一个可选的实施例中,上述装置还设置为:在根据上述第一端口的信息对第二端口的配置信息进行处理之前,确定OLT的上联口转发报文的速率;根据第一端口的信息对第二端口的配置信息进行处理包括:在确定上联口转发报文的速率大于第一端口的报文处理速率时,根据第一端口的信息对第二端口的配置信息进行处理。In an optional embodiment, the foregoing apparatus is further configured to: before processing the configuration information of the second port according to the information of the first port, determine a rate at which the uplink port of the OLT forwards the packet; according to the first port The processing of the second port configuration information includes: when determining that the rate at which the uplink port forwards the packet is greater than the packet processing rate of the first port, processing the configuration information of the second port according to the information of the first port.
在一个可选的实施例中,上述装置还设置为:在确定上述OLT的上联口转发报文的速率之后,在确定上联口转发报文的速率小于或等于第一端口的报文处理速率时,维持第二端口的配置信息不变。In an optional embodiment, the foregoing apparatus is further configured to: after determining the rate at which the uplink port of the OLT forwards the packet, determining that the rate at which the uplink port forwards the packet is less than or equal to the packet processing of the first port At the rate, the configuration information of the second port is maintained.
在一个可选的实施例中,上述第一端口的信息中包括第一端口的编号,其中,上述装置还设置为:在接收来自光纤网络单元ONU的ONU中第 一端口的信息之前,记录ONU中的各端口的编号与OLT中的各端口之间的对应关系;确定光纤线路终端OLT中与第一端口对应的第二端口包括:根据对应关系以及第一端口的编号确定与该第一端口对应的第二端口。In an optional embodiment, the information of the first port includes the number of the first port, wherein the device is further configured to: record the ONU before receiving the information of the first port in the ONU from the optical network unit ONU Corresponding relationship between the number of each port in the OLT and the port in the OLT; determining the second port corresponding to the first port in the OLT terminal includes: determining the first port according to the corresponding relationship and the number of the first port Corresponding second port.
在一个可选的实施例中,上述第一端口的信息包括以下至少之一:第一端口的编号、第一端口的连接状态、第一端口的报文处理速率、第一端口的缓存能力;和/或,上述第二端口的配置信息包括以下至少之一:整形值,用于表示第二端口转发报文的平均速率的;突发值,用于表示第二端口转发报文超过平均速率的字节数;缓存值,用于表示第二端口允许缓存报文的字节数。In an optional embodiment, the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate. The number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
在一个可选的实施例中,当上述第一端口为物理端口时,该第一端口的报文处理速率为第一端口的协商速率;和/或,当上述第一端口为逻辑端口时,该第一端口的报文处理速率为第一端口的处理报文的最大速率。也就是说,在本实施例中,如果ONU端口是物理端口,可以通过其端口协商速率,作为端口速率上报;如果ONU端口是逻辑端口,可以通过其端口最大处理报文速率,作为端口速率上报。In an optional embodiment, when the first port is a physical port, the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, The packet processing rate of the first port is the maximum rate of processing packets of the first port. That is, in this embodiment, if the ONU port is a physical port, the rate can be reported as the port rate through the port negotiation rate. If the ONU port is a logical port, the maximum rate of the packet can be processed through the port as the port rate. .
需要说明的是,本实施例中的装置可以应用于OLT中,下面结合具体实施例对OLT中的模块进行说明:It should be noted that the apparatus in this embodiment may be applied to an OLT, and the modules in the OLT are described below in conjunction with specific embodiments:
具体实施例5Specific embodiment 5
在本具体实施例中,OLT中包括OLT交互模块(对应于上述的获取模块112和确定模块114)和OLT缓存调整模块(对应于上述的处理模块116),下面对各模块进行说明:In this embodiment, the OLT includes an OLT interaction module (corresponding to the above-mentioned acquisition module 112 and determination module 114) and an OLT cache adjustment module (corresponding to the processing module 116 described above), and each module is described below:
OLT交互模块有两个作用:The OLT interaction module has two functions:
1)OLT交互模块通过OLT-ONU之间的协议,将ONU端口数据全部转发到OLT的虚拟端口上,使得OLT在转发报文给ONU时,能够感知到ONU端口的信息,并记录OLT虚拟端口和ONU端口之间的端口关系表;1) The OLT interaction module forwards the ONU port data to the virtual port of the OLT through the protocol between the OLT and the ONU, so that the OLT can sense the information of the ONU port and record the OLT virtual port when forwarding the packet to the ONU. a port relationship table between the port and the ONU port;
可选地,如果ONU-OLT之间是GPON协议,可以通过OMCI协议将 ONU端口映射到OLT的GEMPORT上,如ONU端口1映射到GEMPORT1上;Optionally, if the ONU-OLT is a GPON protocol, the ONU port can be mapped to the GEMPORT of the OLT through the OMCI protocol, for example, the ONU port 1 is mapped to the GEMPORT1;
可选地,如果ONU-OLT之间是EPON协议,可以通过扩展OAM协议将ONU端口映射到OLT的LLID上,如ONU端口1映射到LLID1上;Optionally, if the ONU-OLT is an EPON protocol, the ONU port can be mapped to the LLID of the OLT by extending the OAM protocol, for example, the ONU port 1 is mapped to the LLID1.
可选地,OLT的端口关系表记录了ONU端口和OLT虚拟端口的索引关系,端口关系表的ONU端口是索引号。如2号槽位3号PON口5号ONU的LAN1口对应虚拟端口256时的记录信息为2/3/5:1对应256,2/3/5:1为该条目的索引号。Optionally, the port relationship table of the OLT records the index relationship between the ONU port and the OLT virtual port, and the ONU port of the port relationship table is an index number. For example, if the LAN1 port of the No. 5 PON port No. 5 of the No. 2 slot corresponds to the virtual port 256, the record information is 2/3/5: 1 corresponds to 256, and 2/3/5: 1 is the index number of the entry.
2)OLT交互模块接收ONU端口状态信息,并解析这些信息,使得OLT实时感知ONU端口信息的变化。2) The OLT interaction module receives the status information of the ONU port and parses the information, so that the OLT senses the change of the ONU port information in real time.
OLT缓存调整模块通过OLT交互模块实时获取到ONU端口信息(端口号,端口状态,端口速率,端口缓存),通过ONU端口号索引端口关系表,查找OLT的虚拟端口,在OLT上针对虚拟端口进行整形、突发和缓存调整,配置虚拟端口的整形值、突发值和缓存值,保证上层设备流量的突发对于ONU没有任何影响,并记录OLT虚拟端口和配置值之间的配置关系表,虚拟端口为该表的索引号。如虚拟端口A配置的整形值B,突发值C,缓存值D,配置关系表记录为A对应B/C/D,A为索引号。The OLT cache adjustment module obtains the ONU port information (port number, port status, port rate, port cache) in real time through the OLT interaction module, and searches the virtual port of the OLT through the ONU port number index port relationship table, and performs virtual port on the OLT. The shaping, burst, and cache adjustments are configured to configure the shaping value, burst value, and cache value of the virtual port to ensure that the burst of the upper-layer device traffic has no impact on the ONU, and records the configuration relationship table between the OLT virtual port and the configuration value. The virtual port is the index number of the table. For example, the shaping value B, the burst value C, and the cache value D of the virtual port A configuration are recorded as A corresponding to B/C/D, and A is an index number.
如果ONU端口状态为UP,OLT缓存调整模块记录的信息和基本原则如表1所示:If the status of the ONU port is UP, the information and basic principles recorded by the OLT cache adjustment module are shown in Table 1:
1)由ONU端口号(X)通过端口索引表确定OLT虚拟端口(A);1) The OLT virtual port (A) is determined by the ONU port number (X) through the port index table;
2)OLT虚拟端口A配置的整形值B小于等于ONU端口速率Y;2) The shaping value B of the OLT virtual port A configuration is less than or equal to the ONU port rate Y;
3)OLT虚拟端口A配置的突发值C小于等于ONU端口缓存值Z;3) The burst value C configured by the OLT virtual port A is less than or equal to the ONU port buffer value Z;
4)OLT虚拟端口A配置的缓存值D大于ONU端口缓存值Z。4) The cache value D configured by the OLT virtual port A is greater than the ONU port cache value Z.
表1Table 1
Figure PCTCN2019077211-appb-000001
Figure PCTCN2019077211-appb-000001
Figure PCTCN2019077211-appb-000002
Figure PCTCN2019077211-appb-000002
如果ONU端口状态是DOWN,OLT缓存调整模块将基于配置关系表信息,删除整形、突发和缓存等配置:If the ONU port status is DOWN, the OLT cache adjustment module deletes configurations such as shaping, burst, and cache based on the configuration relationship table information:
1)由ONU端口号(X)通过端口索引表确定OLT虚拟端口(A);1) The OLT virtual port (A) is determined by the ONU port number (X) through the port index table;
2)删除OLT虚拟端口A的整形值B配置;2) Delete the shaping value B configuration of the OLT virtual port A;
3)删除OLT虚拟端口A的突发值C配置;3) Delete the burst value C configuration of the OLT virtual port A;
4)删除OLT虚拟端口A的缓存值D配置,可以将删除的缓存资源分配给其他虚拟端口使用。4) Delete the cache value D configuration of the OLT virtual port A, and allocate the deleted cache resources to other virtual ports.
可选地,OLT缓存调整模块通过获取OLT上联接口的速率,能够判断出上联接口速率和ONU端口速率之间的关系。当上联口速率大于ONU端口速率时,此时突发的可能性比较大,需要对虚拟端口进行整形、突发和缓存调整;当上联口速率小于等于ONU端口速率时(如ONU端口速率为1000M,OLT上联端口速率小于等于1000M时),此时上联接口的突发不可能超过ONU的端口速率,可以不用针对虚拟端口进行整形、突发和缓存等配置。Optionally, the OLT cache adjustment module can determine the relationship between the uplink interface rate and the ONU port rate by obtaining the rate of the uplink interface of the OLT. When the rate of the uplink port is greater than the rate of the ONU port, the probability of a burst is large. The virtual port needs to be shaped, bursted, and cached. When the rate of the uplink port is less than or equal to the ONU port rate (such as the ONU port rate). If the uplink port rate of the OLT is less than or equal to 1000M, the burst of the uplink interface cannot exceed the port rate of the ONU. You can configure the virtual port for bursting, bursting, and caching.
可选地,OLT缓存调整模块通过OLT交互模块获取ONU的认证状态,如果ONU已经处于认证失败状态,此时ONU处于非法状态,可以直接删除该ONU所有端口在OLT上虚拟端口的整形、突发和缓存值配置,并将删除的缓存资源给其他虚拟端口使用。Optionally, the OLT cache adjustment module obtains the authentication status of the ONU through the OLT interaction module. If the ONU is in the authentication failure state, the ONU is in an illegal state, and the virtual port of the ONU can be directly deleted and bursted on the OLT. And cache value configuration, and delete the cached resources for use by other virtual ports.
实施例5Example 5
在本实施例中,还提供了一种OLT端口的配置信息的处理装置,图12是根据本公开实施例的第二种OLT端口的配置信息的处理装置的结构框图,如图12所示,该装置包括:In this embodiment, a processing device for configuring configuration information of an OLT port is further provided. FIG. 12 is a structural block diagram of a processing device for configuring configuration information of a second OLT port according to an embodiment of the present disclosure, as shown in FIG. The device includes:
发送模块122,设置为将ONU中的第一端口的信息发送给OLT,其 中,该第一端口的信息用于指示OLT确定OLT中与第一端口对应的第二端口,并根据该第一端口的信息对第二端口的配置信息进行处理,该第二端口为逻辑端口。The sending module 122 is configured to send information of the first port in the ONU to the OLT, where the information of the first port is used to instruct the OLT to determine a second port in the OLT corresponding to the first port, and according to the first port The information is processed by the configuration information of the second port, which is a logical port.
在一个可选的实施例中,上述装置还包括:检测模块,设置为在将ONU中的第一端口的信息发送给OLT之前,检测到第一端口的连接状态发生变化。In an optional embodiment, the apparatus further includes: a detecting module configured to detect that a connection state of the first port changes before transmitting information of the first port in the ONU to the OLT.
在一个可选的实施例中,上述装置还设置为:在将ONU中的第一端口的信息发送给OLT之前,检测ONU中各端口的连接状态、各端口的报文处理速率以及各端口的缓存能力;将ONU中的第一端口的信息发送给OLT包括:将第一端口的编号,检测到的第一端口的连接状态、第一端口的报文处理速率以及第一端口的缓存能力发送给OLT。In an optional embodiment, the foregoing apparatus is further configured to: before transmitting the information of the first port in the ONU to the OLT, detecting a connection state of each port in the ONU, a packet processing rate of each port, and a port processing rate of each port. Cache capability: sending the information of the first port in the ONU to the OLT includes: sending the number of the first port, detecting the connection state of the first port, the packet processing rate of the first port, and the buffering capability of the first port Give the OLT.
在一个可选的实施例中,上述第一端口的信息包括以下至少之一:第一端口的编号、第一端口的连接状态、第一端口的报文处理速率、第一端口的缓存能力;和/或,上述第二端口的配置信息包括以下至少之一:整形值,用于表示第二端口转发报文的平均速率的;突发值,用于表示第二端口转发报文超过平均速率的字节数;缓存值,用于表示第二端口允许缓存报文的字节数。In an optional embodiment, the information about the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; And/or, the configuration information of the foregoing second port includes at least one of the following: an shaping value, which is used to indicate an average rate of forwarding packets of the second port, and a burst value, which is used to indicate that the second port forwards the packet exceeding an average rate. The number of bytes; the cache value is used to indicate the number of bytes that the second port is allowed to buffer.
在一个可选的实施例中,当上述第一端口为物理端口时,第一端口的报文处理速率为第一端口的协商速率;和/或,当第一端口为逻辑端口时,第一端口的报文处理速率为第一端口的处理报文的最大速率。In an optional embodiment, when the first port is a physical port, the packet processing rate of the first port is a negotiation rate of the first port; and/or, when the first port is a logical port, the first The packet processing rate of the port is the maximum rate of processing packets on the first port.
需要说明的是,本实施例中的装置可以应用于ONU中,下面结合具体实施例对ONU中的模块进行说明:It should be noted that the device in this embodiment may be applied to an ONU, and the modules in the ONU are described below in conjunction with specific embodiments:
具体实施例6Specific embodiment 6
在本具体实施例中,ONU包括ONU端口检测模块和ONU交互模块(对应于上述的发送模块122),下面对各模块进行说明:In this embodiment, the ONU includes an ONU port detection module and an ONU interaction module (corresponding to the foregoing transmission module 122), and each module is described below:
ONU端口检测模块负责ONU端口状态的检测,实时检测ONU各个端口的状态,并获取端口的速率、端口缓存等相关信息。The ONU port detection module is responsible for detecting the status of the ONU port, detecting the status of each port of the ONU in real time, and obtaining related information such as the rate of the port and the port cache.
ONU通过端口检测模块记录如下信息,包括端口号,端口状态,端口速率,端口缓存。The ONU records the following information through the port detection module, including port number, port status, port rate, and port buffer.
端口号,表示ONU端口的编号,如LAN1等信息;Port number, indicating the number of the ONU port, such as LAN1 and other information;
端口状态,表示ONU端口的连接状态信息,包括UP(连接成功)/DOWN(连接失败)两种状态信息;Port status, indicating the connection status information of the ONU port, including two status information: UP (connection success) / DOWN (connection failure);
端口速率,表示ONU端口最大处理报文的速率,如100Mbit/s、1000Mbit/s等;Port rate, which indicates the maximum rate of packets processed on the ONU port, such as 100 Mbit/s and 1000 Mbit/s.
可选地,如果ONU端口是物理端口,可以通过其端口协商速率,作为端口速率上报;Optionally, if the ONU port is a physical port, the rate can be negotiated through the port as the port rate.
可选地,如果ONU端口是逻辑端口,可以通过其端口最大处理报文速率,作为端口速率上报。Optionally, if the ONU port is a logical port, the maximum rate of the packet can be processed through the port as the port rate.
端口缓存,表示ONU端口最大的报文缓存值,如1M字节等。Port buffer, which indicates the maximum packet buffer value of the ONU port, such as 1 Mbyte.
ONU交互模块在收到端口状态变化消息之后(端口状态从UP到DOWN,或者是从DOWN到UP),获取端口检测模块记录的信息(端口号,端口状态,端口速率,端口缓存),并将这些信息通过ONU-OLT之间的协议封装上报给OLT。After receiving the port status change message (port status from UP to DOWN, or from DOWN to UP), the ONU interaction module obtains the information (port number, port status, port rate, port buffer) recorded by the port detection module, and The information is reported to the OLT through the protocol encapsulation between the ONUs and the OLTs.
可选地,如果ONU-OLT之间是GPON协议,可以通过OMCI协议封装端口信息上报;Optionally, if the ONU-OLT is a GPON protocol, the port information may be encapsulated by the OMCI protocol.
可选地,如果ONU-OLT之间是EPON协议,可以通过扩展OAM协议封装端口信息上报。Optionally, if the ONU-OLT is an EPON protocol, the port information can be encapsulated by the extended OAM protocol.
OLT和ONU中各模块的示意图如图13所示,通过具体实施例5和6中各模块的操作,在上层设备有流量突发时通过OLT的整形和缓存调整,避免了对于ONU设备的影响,与传统的技术相比有如下优势:A schematic diagram of each module in the OLT and the ONU is shown in FIG. 13 . Through the operations of the modules in the specific embodiments 5 and 6 , the OLT is shaped and buffered when the upper device has a traffic burst, thereby avoiding the impact on the ONU device. Compared with traditional technology, it has the following advantages:
首先,直接通过在局端设备上调整相关配置,避免了对于每个终端设备的参数调整;First, the parameter adjustment for each terminal device is avoided by directly adjusting the relevant configuration on the central office device;
其次,网络流量升级时,ONU无感知,无需大规模升级ONU版本;Secondly, when the network traffic is upgraded, the ONU has no awareness and does not need to upgrade the ONU version on a large scale.
最后,能够基于ONU各个端口信息和认证状态,动态调整OLT上的缓存信息,使得OLT上的缓存得到充分使用。Finally, the cache information on the OLT can be dynamically adjusted based on the port information and the authentication status of the ONU, so that the cache on the OLT is fully utilized.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例6Example 6
本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide a storage medium having stored therein a computer program, wherein the computer program is configured to execute the steps of any one of the method embodiments described above.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store computer programs, such as hard drives, disks, or optical disks.
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。Embodiments of the present disclosure also provide an electronic device including a memory and a processor having a computer program stored therein, the processor being configured to execute a computer program to perform the steps of any one of the method embodiments described above.
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来 执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only a preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the scope of the present disclosure are intended to be included within the scope of the present disclosure.
工业实用性Industrial applicability
如上所述,本公开实施例提供的一种OLT端口的配置信息的处理方法、装置、存储介质及电子装置具有以下有益效果:解决了相关技术中存在的由于ONU型号、数量众多而导致在流量突发场景下,ONU无法保证满足各种流量突发的场景的问题,进而实现了通过配置OLT端口来应对网络中各种流量突发的场景,减少了流量突发对于ONU的冲击的目的。As described above, the method, the device, the storage medium, and the electronic device for processing configuration information of the OLT port provided by the embodiments of the present disclosure have the following beneficial effects: the problem exists in the related art due to the number of ONUs and the number of the ONUs. In a burst scenario, the ONU cannot guarantee the problem of various traffic burst scenarios. In addition, the OLT port is configured to cope with various traffic bursts in the network, which reduces the impact of traffic bursts on the ONU.

Claims (23)

  1. 一种OLT端口的配置信息的处理方法,包括:A method for processing configuration information of an OLT port includes:
    获取光纤网络单元ONU发送的所述ONU中的第一端口的信息;Obtaining information about the first port in the ONU sent by the optical network unit ONU;
    确定光纤线路终端OLT中与所述第一端口对应的第二端口,其中,所述第二端口为逻辑端口;Determining, in the optical fiber line terminal OLT, a second port corresponding to the first port, where the second port is a logical port;
    根据所述第一端口的信息对所述第二端口的配置信息进行处理。And configuring configuration information of the second port according to the information of the first port.
  2. 根据权利要求1所述的方法,其中,所述第一端口的信息包括所述第一端口的连接状态、所述第一端口的报文处理速率和所述第一端口的缓存能力,其中,所述根据所述第一端口的信息对所述第二端口的配置信息进行处理包括:The method of claim 1, wherein the information of the first port comprises a connection status of the first port, a packet processing rate of the first port, and a buffering capability of the first port, where The processing the configuration information of the second port according to the information of the first port includes:
    在确定所述第一端口的连接状态为正常连接时,根据所述第一端口的报文处理速率以及所述第一端口的缓存能力对所述第二端口的配置信息进行调整;和/或,Adjusting the configuration information of the second port according to the packet processing rate of the first port and the buffering capability of the first port, and/or determining that the connection status of the first port is a normal connection; and/or ,
    在确定所述第一端口的连接状态为断开连接时,删除所述第二端口的配置信息。When it is determined that the connection state of the first port is disconnected, the configuration information of the second port is deleted.
  3. 根据权利要求2所述的方法,其中,所述第二端口的配置信息包括整型值、突发值和缓存值,其中,根据所述第一端口的报文处理速率以及所述第一端口的缓存能力对所述第二端口的配置信息进行调整包括:The method of claim 2, wherein the configuration information of the second port comprises an integer value, a burst value, and a cache value, wherein, according to the packet processing rate of the first port and the first port The buffering capability adjusts the configuration information of the second port, including:
    将所述第二端口的整形值调整成小于或等于所述第一端口的报文处理速率;Adjusting an shaping value of the second port to be less than or equal to a packet processing rate of the first port;
    将所述第二端口的突发值调整成小于或等于所述第一端口的缓存能力;Adjusting a burst value of the second port to be less than or equal to a buffering capability of the first port;
    将所述第二端口的缓存值调整成大于所述第一端口的缓存能力;Adjusting a buffer value of the second port to be greater than a buffering capability of the first port;
    其中,所述整形值用于所述第二端口转发报文的平均速率,所述突发值用于表示所述第二端口转发报文超过平均速率的字节数,所述缓存值用于表示所述第二端口允许缓存报文的字节数。The shaping value is used for the average rate of the second port to forward the packet, and the burst value is used to indicate the number of bytes of the second port forwarding packet exceeding the average rate, and the buffer value is used for Indicates the number of bytes that the second port allows to buffer messages.
  4. 根据权利要求1所述的方法,其中,在删除所述第二端口的配置信息之后,所述方法还包括:The method of claim 1, wherein after deleting the configuration information of the second port, the method further comprises:
    将所述第二端口的配置信息所占用的资源分配给所述OLT中的其他端口。Allocating resources occupied by the configuration information of the second port to other ports in the OLT.
  5. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    在根据所述第一端口的信息对所述第二端口的信息进行处理之前,所述方法还包括:确定所述ONU的认证状态;Before the information about the second port is processed according to the information of the first port, the method further includes: determining an authentication status of the ONU;
    根据所述第一端口的信息对所述第二端口的信息进行处理包括:在确定所述ONU的认证状态为认证成功时,根据所述第一端口的信息对所述第二端口的配置信息进行处理。The processing of the information about the second port according to the information of the first port includes: when determining that the authentication status of the ONU is the authentication success, configuring information about the second port according to the information of the first port Process it.
  6. 根据权利要求5所述的方法,其中,在确定所述ONU的认证状态之后,所述方法还包括:The method of claim 5, wherein after determining the authentication status of the ONU, the method further comprises:
    在确定所述ONU的认证状态为认证失败时,删除所述OLT中与所述ONU中的所有端口分别对应的端口的配置信息。When it is determined that the authentication status of the ONU is an authentication failure, the configuration information of the port corresponding to all the ports in the ONU in the OLT is deleted.
  7. 根据权利要求6所述的方法,其中,在删除所述OLT中与所述ONU中的所有端口分别对应的端口的配置信息之后,所述方法还包括:The method of claim 6, wherein after deleting the configuration information of the port corresponding to all the ports in the ONU in the OLT, the method further includes:
    将所述OLT中与所述ONU中的所有端口分别对应的端口的配置信息所占用的资源分配给所述OLT中的其他端口。Allocating resources occupied by configuration information of ports corresponding to all ports in the ONU in the OLT to other ports in the OLT.
  8. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    在根据所述第一端口的信息对所述第二端口的配置信息进行处理之前,所述方法还包括:确定所述OLT的上联口转发报文的速率;Before the processing of the configuration information of the second port is performed according to the information about the first port, the method further includes: determining a rate at which the uplink port of the OLT forwards the packet;
    根据所述第一端口的信息对所述第二端口的配置信息进行处理包括:在确定所述上联口转发报文的速率大于所述第一端口的报文处理速率时,根据所述第一端口的信息对所述第二端口的配置信息进行处理。The processing of the configuration information of the second port according to the information of the first port includes: when determining that the rate at which the uplink port forwards the packet is greater than the packet processing rate of the first port, according to the The information of one port processes the configuration information of the second port.
  9. 根据权利要求8所述的方法,其中,在确定所述OLT的上联口转发报文的速率之后,所述方法还包括:The method of claim 8, wherein after determining the rate at which the uplink port of the OLT forwards the packet, the method further includes:
    在确定所述上联口转发报文的速率小于或等于所述第一端口的报文处理速率时,维持所述第二端口的配置信息不变。The configuration information of the second port is maintained unchanged when the rate at which the uplink port forwards the packet is less than or equal to the packet processing rate of the first port.
  10. 根据权利要求1所述的方法,其中,所述第一端口的信息中包括所述第一端口的编号,其中,The method according to claim 1, wherein the information of the first port includes a number of the first port, wherein
    在接收来自光纤网络单元ONU的所述ONU中第一端口的信息之前,所述方法还包括:记录所述ONU中的各端口的编号与所述OLT中的各端口之间的对应关系;Before receiving the information of the first port in the ONU from the optical network unit ONU, the method further includes: recording a correspondence between a number of each port in the ONU and each port in the OLT;
    确定光纤线路终端OLT中与所述第一端口对应的第二端口包括:根据所述对应关系以及所述第一端口的编号确定与所述第一端口对应的所述第二端口。Determining the second port corresponding to the first port in the optical fiber line terminal OLT includes: determining, according to the correspondence relationship and the number of the first port, the second port corresponding to the first port.
  11. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述第一端口的信息包括以下至少之一:所述第一端口的编号、所述第一端口的连接状态、所述第一端口的报文处理速率、所述第一端口的缓存能力;和/或,The information of the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; and / or,
    所述第二端口的配置信息包括以下至少之一:整形值,用于表示 所述第二端口转发报文的平均速率的;突发值,用于表示所述第二端口转发报文超过平均速率的字节数;缓存值,用于表示所述第二端口允许缓存报文的字节数。The configuration information of the second port includes at least one of the following: an integer value, which is used to indicate that the second port forwards the average rate of the packet, and a burst value, which is used to indicate that the second port forwards the packet more than the average value. The number of bytes of the rate; the cache value is used to indicate the number of bytes of the second port allowed to buffer the message.
  12. 根据权利要求11所述的方法,其中,The method of claim 11 wherein
    当所述第一端口为物理端口时,所述第一端口的报文处理速率为所述第一端口的协商速率;和/或,When the first port is a physical port, the packet processing rate of the first port is a negotiated rate of the first port; and/or,
    当所述第一端口为逻辑端口时,所述第一端口的报文处理速率为所述第一端口的处理报文的最大速率。When the first port is a logical port, the packet processing rate of the first port is the maximum rate of processing packets of the first port.
  13. 一种OLT端口的配置信息的处理方法,包括:A method for processing configuration information of an OLT port includes:
    将ONU中的第一端口的信息发送给OLT,其中,所述第一端口的信息用于指示所述OLT确定所述OLT中与所述第一端口对应的第二端口,并根据所述第一端口的信息对所述第二端口的配置信息进行处理,所述第二端口为逻辑端口。Sending information of the first port in the ONU to the OLT, where the information of the first port is used to instruct the OLT to determine a second port in the OLT that corresponds to the first port, and according to the The information of one port processes the configuration information of the second port, and the second port is a logical port.
  14. 根据权利要求13所述的方法,其中,在将ONU中的第一端口的信息发送给OLT之前,所述方法还包括:The method of claim 13, wherein the method further comprises: before transmitting the information of the first port in the ONU to the OLT, the method further comprising:
    检测到所述第一端口的连接状态发生变化。A change in the connection state of the first port is detected.
  15. 根据权利要求14所述的方法,其中,The method of claim 14 wherein
    在将ONU中的第一端口的信息发送给OLT之前,所述方法还包括:检测所述ONU中各端口的连接状态、各端口的报文处理速率以及各端口的缓存能力;Before the information of the first port in the ONU is sent to the OLT, the method further includes: detecting a connection state of each port in the ONU, a packet processing rate of each port, and a buffering capability of each port;
    将ONU中的第一端口的信息发送给OLT包括:将所述第一端口的编号,检测到的所述第一端口的连接状态、所述第一端口的报文处理速率以及所述第一端口的缓存能力发送给所述OLT。The sending the information of the first port in the ONU to the OLT includes: the number of the first port, the detected connection state of the first port, the packet processing rate of the first port, and the first The buffering capability of the port is sent to the OLT.
  16. 根据权利要求13所述的方法,其中,The method of claim 13 wherein
    所述第一端口的信息包括以下至少之一:所述第一端口的编号、所述第一端口的连接状态、所述第一端口的报文处理速率、所述第一端口的缓存能力;和/或,The information of the first port includes at least one of the following: a number of the first port, a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port; and / or,
    所述第二端口的配置信息包括以下至少之一:整形值,用于表示所述第二端口转发报文的平均速率的;突发值,用于表示所述第二端口转发报文超过平均速率的字节数;缓存值,用于表示所述第二端口允许缓存报文的字节数。The configuration information of the second port includes at least one of the following: an integer value, which is used to indicate that the second port forwards the average rate of the packet, and a burst value, which is used to indicate that the second port forwards the packet more than the average value. The number of bytes of the rate; the cache value is used to indicate the number of bytes of the second port allowed to buffer the message.
  17. 根据权利要求16所述的方法,其中,The method of claim 16 wherein
    当所述第一端口为物理端口时,所述第一端口的报文处理速率为所述第一端口的协商速率;和/或,When the first port is a physical port, the packet processing rate of the first port is a negotiated rate of the first port; and/or,
    当所述第一端口为逻辑端口时,所述第一端口的报文处理速率为所述第一端口的处理报文的最大速率。When the first port is a logical port, the packet processing rate of the first port is the maximum rate of processing packets of the first port.
  18. 一种OLT端口的配置信息的处理装置,包括:A device for processing configuration information of an OLT port, comprising:
    获取模块,设置为获取光纤网络单元ONU发送的所述ONU中的第一端口的信息;An acquiring module, configured to acquire information about a first port in the ONU sent by the optical network unit ONU;
    确定模块,设置为确定光纤线路终端OLT中与所述第一端口对应的第二端口,其中,所述第二端口为逻辑端口;a determining module, configured to determine a second port in the fiber line terminal OLT corresponding to the first port, where the second port is a logical port;
    处理模块,设置为根据所述第一端口的信息对所述第二端口的配置信息进行处理。The processing module is configured to process the configuration information of the second port according to the information of the first port.
  19. 根据权利要求18所述的装置,其中,所述第一端口的信息包括所述第一端口的连接状态、所述第一端口的报文处理速率和所述第一端口的缓存能力,其中,所述处理模块包括:The apparatus according to claim 18, wherein the information of the first port comprises a connection state of the first port, a packet processing rate of the first port, and a buffering capability of the first port, where The processing module includes:
    调整单元,设置为在确定所述第一端口的连接状态为正常连接时,根据所述第一端口的报文处理速率以及所述第一端口的缓存能力对所述第二端口的配置信息进行调整;和/或,The adjusting unit is configured to: when determining that the connection state of the first port is a normal connection, perform configuration information on the second port according to a packet processing rate of the first port and a buffering capability of the first port Adjustment; and/or,
    删除单元,设置为在确定所述第一端口的连接状态为断开连接时,删除所述第二端口的配置信息。And deleting the unit, configured to delete the configuration information of the second port when determining that the connection state of the first port is disconnected.
  20. 一种OLT端口的配置信息的处理装置,包括:A device for processing configuration information of an OLT port, comprising:
    发送模块,设置为将ONU中的第一端口的信息发送给OLT,其中,所述第一端口的信息用于指示所述OLT确定所述OLT中与所述第一端口对应的第二端口,并根据所述第一端口的信息对所述第二端口的配置信息进行处理,所述第二端口为逻辑端口。a sending module, configured to send information of the first port in the ONU to the OLT, where the information of the first port is used to instruct the OLT to determine a second port in the OLT that corresponds to the first port, And processing the configuration information of the second port according to the information of the first port, where the second port is a logical port.
  21. 根据权利要求20所述的装置,其中,所述装置还包括:The device of claim 20, wherein the device further comprises:
    检测模块,设置为在将ONU中的第一端口的信息发送给OLT之前,检测到所述第一端口的连接状态发生变化。The detecting module is configured to detect that the connection state of the first port changes before sending the information of the first port in the ONU to the OLT.
  22. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至12任一项中所述的方法,或者,执行所述权利要求13至17任一项中所述的方法。A storage medium having stored therein a computer program, wherein the computer program is configured to execute the method of any one of claims 1 to 12 when executed, or to execute the claim The method described in any one of 13 to 17.
  23. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至12任一项中所述的方法,或者,执行所述权利要求13至17任一项中所述的方法。An electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor being arranged to execute the computer program to perform the method of any one of claims 1 to 12, Alternatively, the method described in any one of claims 13 to 17 is carried out.
PCT/CN2019/077211 2018-04-17 2019-03-06 Method and apparatus for processing configuration information of olt port, and storage medium WO2019201025A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810343657.6 2018-04-17
CN201810343657.6A CN110391921B (en) 2018-04-17 2018-04-17 Method and device for processing configuration information of OLT (optical line terminal) port and storage medium

Publications (1)

Publication Number Publication Date
WO2019201025A1 true WO2019201025A1 (en) 2019-10-24

Family

ID=68239245

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077211 WO2019201025A1 (en) 2018-04-17 2019-03-06 Method and apparatus for processing configuration information of olt port, and storage medium

Country Status (2)

Country Link
CN (1) CN110391921B (en)
WO (1) WO2019201025A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114079623B (en) * 2020-08-04 2023-07-21 中国移动通信集团河北有限公司 Method and device for identifying transmission capacity of user side router
CN114189768A (en) * 2020-09-14 2022-03-15 中兴通讯股份有限公司 Service management method and device for passive optical network, optical line terminal and medium
CN112637079B (en) * 2020-12-16 2022-08-23 中国电子科技集团公司第三十研究所 Multi-line flow impact control method and device
CN113259791B (en) * 2021-07-02 2021-09-14 武汉长光科技有限公司 Information configuration method, electronic device and computer-readable storage medium
CN116801137A (en) * 2022-04-02 2023-09-22 中兴通讯股份有限公司 Data message forwarding method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040120326A1 (en) * 2002-12-24 2004-06-24 Hyeon-Sik Yoon System and method for VLAN configuration of E-PON, and recording medium with stored program thereof
CN101079809A (en) * 2007-06-12 2007-11-28 中兴通讯股份有限公司 An Ethernet service processing method in Gbit passive optical network
CN102143412A (en) * 2011-01-26 2011-08-03 华为技术有限公司 Connection admission control (CAC) method and device as well as passive optical network (PON) system
CN103281600A (en) * 2013-06-03 2013-09-04 上海斐讯数据通信技术有限公司 Method for identifying ONU types

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385995B2 (en) * 2003-01-13 2008-06-10 Brooktree Broadband Holding, Inc. System and method for dynamic bandwidth allocation on PONs
CN1777334B (en) * 2005-12-09 2010-09-29 真宽通信技术(苏州)有限公司 Ethernet passive optical network multi-service dynamic bandwide authorizing method
CN101035389A (en) * 2006-03-08 2007-09-12 上海交通大学 System and method for bandwidth allocation in the remote device of the passive optical network
CN101060523B (en) * 2006-04-26 2010-09-08 华为技术有限公司 Optical network terminal, its port transmission rate limitation attribute configuration method and message processing method
CN101068145B (en) * 2007-07-05 2010-06-02 杭州华三通信技术有限公司 EPON network element configuration method and EPON
CN102739426B (en) * 2011-04-13 2017-05-24 中兴通讯股份有限公司 DPOE system and service auto-configuration method and network based on DPOE system
CN104604182B (en) * 2013-08-13 2018-01-19 华为技术有限公司 Service channel collocation method and optical line terminal and EPON
CN106162383B (en) * 2015-03-26 2019-12-03 中兴通讯股份有限公司 A kind of distribution method, device and the optical line terminal of optical network unit business information
CN106656562B (en) * 2016-11-11 2019-10-15 成都广达新网科技股份有限公司 A kind of OLT batch issues the detection method and device of ONU configuration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040120326A1 (en) * 2002-12-24 2004-06-24 Hyeon-Sik Yoon System and method for VLAN configuration of E-PON, and recording medium with stored program thereof
CN101079809A (en) * 2007-06-12 2007-11-28 中兴通讯股份有限公司 An Ethernet service processing method in Gbit passive optical network
CN102143412A (en) * 2011-01-26 2011-08-03 华为技术有限公司 Connection admission control (CAC) method and device as well as passive optical network (PON) system
CN103281600A (en) * 2013-06-03 2013-09-04 上海斐讯数据通信技术有限公司 Method for identifying ONU types

Also Published As

Publication number Publication date
CN110391921A (en) 2019-10-29
CN110391921B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
WO2019201025A1 (en) Method and apparatus for processing configuration information of olt port, and storage medium
EP1779590B1 (en) Port aggregation for fibre channel interfaces
CN108616402B (en) Management method and system of remote equipment
WO2019019906A1 (en) Communication method and device, and storage medium
US20180295029A1 (en) Managing groups of servers
US20070263649A1 (en) Network diagnostic systems and methods for capturing network messages
US9973427B2 (en) Method for determining management domain, network device, and virtual cluster
WO2020063991A1 (en) Pon network, method and apparatus for pon network and robot system
WO2021169687A1 (en) Data transmission method, data transmission apparatus, and electronic device
US20080253769A1 (en) Management method of optical fiber network system
CA2774281C (en) User access method, system, access server, and access device
CN112449751B (en) Data transmission method, switch and station
US20210352385A1 (en) System and method for enabling dynamic bandwidth control in passive optical network infrastructure
CN115913937B (en) Container multi-network card network configuration method, device, equipment and storage medium
US10873500B2 (en) Computing device and method for generating a link IPV6 address
US10122586B2 (en) Physical adjacency detection systems and methods
WO2021098425A1 (en) Qos policy method, device, and computing device for service configuration
US10764330B2 (en) LAN/SAN network security management
US7809806B1 (en) Neighbor discovery using address registration protocol over ELMI
WO2022116767A1 (en) Data transmission method, user equipment, and storage medium
US9538398B2 (en) Method, apparatus and system for establishing neighbor relation
US7529821B1 (en) Network element management
US8542701B2 (en) Method and device for determining timeslot configuration in TDM transmission
WO2012088908A1 (en) Management method, system and access node for user line
CN109981315B (en) Information processing method, equipment and system of ANIMA network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19787685

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.02.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19787685

Country of ref document: EP

Kind code of ref document: A1