CN111083581A - ONU service transmission configuration adjustment method, device and equipment - Google Patents

ONU service transmission configuration adjustment method, device and equipment Download PDF

Info

Publication number
CN111083581A
CN111083581A CN201911379273.0A CN201911379273A CN111083581A CN 111083581 A CN111083581 A CN 111083581A CN 201911379273 A CN201911379273 A CN 201911379273A CN 111083581 A CN111083581 A CN 111083581A
Authority
CN
China
Prior art keywords
port
service
service type
message
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911379273.0A
Other languages
Chinese (zh)
Other versions
CN111083581B (en
Inventor
莫怡欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201911379273.0A priority Critical patent/CN111083581B/en
Publication of CN111083581A publication Critical patent/CN111083581A/en
Application granted granted Critical
Publication of CN111083581B publication Critical patent/CN111083581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a method, a device and equipment for adjusting ONU service transmission configuration, which comprises the following steps: determining at least one service type borne by the ONU according to the service type of the message transmitted by each port in the exchange chip; detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types; and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type. The invention can determine whether to carry out transmission configuration adjustment according to the adjustment mode corresponding to the service type by determining different types of services borne by the ONU and according to different detection mechanisms corresponding to different types, thereby solving the problems of small action range and limited action effect existing in the traditional PON system because only a method for carrying out dynamic bandwidth allocation on the uplink service bandwidth is defined.

Description

ONU service transmission configuration adjustment method, device and equipment
Technical Field
The invention relates to the technical field of passive optical networks, in particular to a method, a device and equipment for adjusting ONU service transmission configuration.
Background
A PON (Passive Optical Network) is a point-to-multipoint Passive Optical Network from an Optical Line Terminal (OLT) to a subscriber terminal (ONU).
The OLT is equivalent to a switch or a router in a traditional communication network, provides an optical fiber interface of a passive optical network facing a user terminal, and realizes the main function of connecting an upper layer network to finish the uplink access of the PON; the OLT is connected with the user terminal ONU through an ODN (optical distribution Network) to realize the functions of controlling, managing, ranging and the like of the user terminal ONU, and the ODN consists of an optical fiber and a passive optical splitter; the main functions realized by the ONU include selecting and receiving data sent by the OLT, responding to a management command sent by the OLT, performing corresponding adjustment, buffering Ethernet data of a user, sending the Ethernet data to an upstream direction in a sending window allocated by the OLT, and the like. The local side remotely controls and manages the upgrading and the configuration of the ONU through the OLT, and in actual use, the PON mainly bears three services of data, voice and video.
In the existing PON system, only a Dynamic Bandwidth Allocation (DBA) method for performing dynamic Bandwidth allocation on an uplink service Bandwidth is defined, and the DBA can complete Bandwidth allocation on queue state information reported by each ONU within a microsecond or millisecond time interval, but this method cannot well meet the needs of practical application, and mainly has the following problems:
1) the action range of the DBA is small, as shown in fig. 1, the DBA only acts on the upstream data transmitted between the PON chip of the OLT and the PON chip of the ONU, but in practical applications, it is necessary to optimize and schedule not only the PON chip, for example, for applications with large bursts, it is necessary to optimize the switch chip of the ONU; for an OLT with a large number of lower-hung ONUs, the switching chip of the ONU may also need to be optimized according to the actual situation; aiming at the problems of packet loss of the switching chip, the total bandwidth of uplink transmission services of a plurality of ONUs exceeding the total bandwidth of the PON uplink and the like caused by various reasons such as packet length, insufficient buffer area and the like of the switching chip, the switching chip and messages which cannot be transmitted in a large burst time slot cannot be processed due to the range limitation of the DBA action, the main borne services cannot be optimized autonomously, and the packet loss condition inevitably exists through the DBA uplink transmission.
2) The DBA has a limited effect, and simply allocates bandwidth to the upstream service of the ONU only according to the state of a buffer (buffer) of a PON chip in the ONU, but cannot identify and optimize the type of the data service.
As shown in fig. 2, when the uplink DBA burst is large, the maximum gigabit bandwidth of the PON port is already exceeded, the DBA cannot adjust the above situation, and the DBA cannot optimize the internal function configuration of the chip, so that packet loss is affected, and the direct phenomenon caused by packet loss is video packet loss and blocking.
Disclosure of Invention
The invention provides a method, a device and equipment for adjusting ONU service transmission configuration, which are used for solving the problems of small action range and limited action effect existing in the existing PON system because only a method for dynamically allocating the bandwidth of an uplink service is defined.
In a first aspect, the present application provides a method for adjusting ONU service transmission configuration, where the method includes:
determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types;
and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type.
Optionally, determining at least one service type carried by the ONU according to the service type of the packet transmitted by each port in the switch chip, including:
collecting flow characteristic information of messages transmitted by each port in a switching chip, and determining the service type of the messages transmitted by each port according to the flow characteristic information;
and determining the sum of the service types of the messages transmitted by the ports, and determining the sum as at least one service type borne by the ONU.
Optionally, determining the service type of the packet transmitted by each port according to the traffic characteristic information includes:
determining whether the ONU supports multicast service according to the multicast related configuration parameters of the ONU;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
Optionally, determining whether the port transmits a multicast service type packet includes:
if at least two conditions of the following conditions are met, determining that the port transmits the message of the multicast service type: the average length of the message exceeds the preset byte number, the ratio of the packet number of the multicast stream to the packet number of the unicast stream exceeds a first preset proportion, and the existence of the interaction of the IGMP protocol message is determined.
Optionally, determining the service type of the packet transmitted by each port according to the traffic characteristic information includes:
if at least 2 of the following conditions are met, determining that the port transmits the message of the video service type: the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow determined according to the flow characteristic information of the port exceeds a second preset proportion, and the maximum value of the uplink flow is greater than a preset upper limit value;
determining that the proportion of UDP messages and/or TCP messages in the uplink flow exceeds a third preset proportion according to the flow characteristic information of the port;
the average length of the message determined according to the flow characteristic information of the port exceeds the preset byte number;
and determining that the reduction speed of the corresponding forwarding cache occupation amount exceeds a preset threshold value according to the flow characteristic information of the port.
Optionally, determining the service type of the packet transmitted by each port according to the traffic characteristic information includes:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the appointed port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when judging that the transmission queue contains the voice message.
Optionally, detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types includes:
when the current port bearing the multicast service type is determined, if any one of the following conditions is met, the transmission configuration adjustment of the service under the multicast service type is triggered:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow bearing the current port has a packet loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range.
Optionally, detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types includes:
when the type of the video service carried by the current port is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the video service type is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
Optionally, detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types includes:
when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
Optionally, adjusting the transmission configuration of the service under the service type according to the adjustment mode corresponding to the service type includes:
when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, starting port flow control, and adjusting size of the port buffer area; or
When determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of a port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting Ethernet frame length in a message; or
When determining to trigger the adjustment of the transmission configuration of the service under the voice service type, performing any one or more of the following adjustments of the transmission configuration: adjusting the QOS priority queue, adjusting the size of the buffer area of the receiving/transmitting port and changing the length of the message Ethernet frame.
Optionally, adjusting MTU or port capability of the port comprises:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
Optionally, the open port flow control includes: when the residual size of the port buffer area is judged to be smaller than a preset cache threshold value, pause frame interaction is suspended through flow control, and the flow of a message at a sending end is reduced; or
The adjusting QOS priority queue includes: improving the priority of a queue for storing IP-based voice transmission type messages in a QOS priority message queue; or
The adjusting the size of the port buffer comprises: and the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
Optionally, adjusting the length of the ethernet frame in the packet includes:
and when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
Optionally, shortening the length of the ethernet frame byte of the small byte message header includes:
in a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
Optionally, the method further comprises:
and pre-loading at least one service feature library, wherein each service feature library is a set of a group of functions, each service feature library is used for identifying a corresponding service type borne by the ONU, and performing corresponding transmission configuration adjustment when detecting that the transmission configuration adjustment of the service type is triggered.
Optionally, the at least one service feature library is stored in a form of a linked list, and each linked list node corresponds to one service feature library.
Optionally, the method further comprises:
receiving a service feature library upgrading command sent by an OLT through a remote management interface, and receiving a new service feature library from the OLT;
and upgrading the local service characteristic library by using the new service characteristic library.
In a second aspect, the present application provides an apparatus for adjusting ONU service transmission configuration, where the apparatus includes:
a determining module, configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip;
the detection module is used for detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to the detection mechanisms corresponding to different service types;
and the adjusting module is used for adjusting the transmission configuration of the service under any service type according to the adjusting mode corresponding to the service type when the transmission configuration adjustment of the service under any service type is determined to be triggered.
Optionally, the determining module is configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip, and specifically configured to:
collecting flow characteristic information of messages transmitted by each port in a switching chip, and determining the service type of the messages transmitted by each port according to the flow characteristic information;
and determining the sum of the service types of the messages transmitted by the ports, and determining the sum as at least one service type borne by the ONU.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
determining whether the ONU supports multicast service according to the multicast related configuration parameters of the ONU;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
Optionally, the determining module is configured to determine whether the port transmits a packet of a multicast service type, and specifically configured to:
if at least two conditions of the following conditions are met, determining that the port transmits the message of the multicast service type: the average length of the message exceeds the preset byte number, the ratio of the packet number of the multicast stream to the packet number of the unicast stream exceeds a first preset proportion, and the existence of the interaction of the IGMP protocol message is determined.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
if at least 2 of the following conditions are met, determining that the port transmits the message of the video service type: the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow determined according to the flow characteristic information of the port exceeds a second preset proportion, and the maximum value of the uplink flow is greater than a preset upper limit value;
determining that the proportion of UDP messages and/or TCP messages in the uplink flow exceeds a third preset proportion according to the flow characteristic information of the port;
the average length of the message determined according to the flow characteristic information of the port exceeds the preset byte number;
and determining that the reduction speed of the corresponding forwarding cache occupation amount exceeds a preset threshold value according to the flow characteristic information of the port.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the appointed port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when judging that the transmission queue contains the voice message.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the current port bearing the multicast service type is determined, if any one of the following conditions is met, the transmission configuration adjustment of the service under the multicast service type is triggered:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow bearing the current port has a packet loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the type of the video service carried by the current port is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the video service type is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
Optionally, the adjusting module is configured to perform transmission configuration adjustment on the service under the service type according to an adjusting manner corresponding to the service type, and specifically configured to:
when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, starting port flow control, and adjusting size of the port buffer area; or
When determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of a port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting Ethernet frame length in a message; or
When determining to trigger the adjustment of the transmission configuration of the service under the voice service type, performing any one or more of the following adjustments of the transmission configuration: adjusting the QOS priority queue, adjusting the size of the buffer area of the receiving/transmitting port and changing the length of the message Ethernet frame.
Optionally, the adjusting module is configured to adjust an MTU or a port capability of a port, and specifically configured to:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
Optionally, the adjusting module is configured to open port flow control, and includes: when the residual size of the port buffer area is judged to be smaller than a preset cache threshold value, pause frame interaction is suspended through flow control, and the flow of a message at a sending end is reduced; or
The adjusting QOS priority queue includes: improving the priority of a queue for storing IP-based voice transmission type messages in a QOS priority message queue; or
The adjusting the size of the port buffer comprises: and the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
Optionally, the adjusting module is configured to adjust a length of an ethernet frame in the packet, and specifically configured to:
and when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
Optionally, the adjusting module is configured to shorten an ethernet frame byte length of the small byte packet header, and specifically configured to:
in a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
Optionally, the method further comprises:
and the preloading module is used for preloading at least one service feature library, wherein each service feature library is a set of functions, each service feature library is used for identifying a corresponding service type borne by the ONU, and corresponding transmission configuration adjustment is carried out when the condition that the transmission configuration adjustment of the service type is triggered is detected.
Optionally, the at least one service feature library in the loading module is stored in a linked list, and each linked list node corresponds to one service feature library.
Optionally, the method further comprises:
the system comprises an upgrading module, a service characteristic library updating module and a service characteristic library updating module, wherein the upgrading module is used for receiving a service characteristic library upgrading command sent by an OLT through a remote management interface and receiving a new service characteristic library from the OLT;
and upgrading the local service characteristic library by using the new service characteristic library.
In a third aspect, the present application provides an ONU service transmission configuration adjusting apparatus, including: a storage unit and a processing unit;
wherein the storage unit is used for storing programs;
the processing unit is used for executing the program in the storage unit and comprises the following steps:
determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types;
and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type.
In a fourth aspect, the present disclosure also provides a computer storage medium having stored thereon a computer program which, when executed by a processing unit, performs the steps of the method of the first aspect.
In a fifth aspect, the present application further provides a computer program product, including a computer program, where the computer program includes program instructions, and when the program instructions are executed by an electronic device, the electronic device is caused to execute the audio/video preloading method of any one of the above items.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fifth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
The method, the device and the equipment for adjusting the ONU service transmission configuration have the following beneficial effects that:
according to the ONU service transmission configuration adjusting method, the ONU service transmission configuration adjusting device and the ONU service transmission configuration adjusting equipment, different detection mechanisms and adjusting modes can be configured for different service types by automatically identifying the service type of each port transmission message in the OUN, the problems of small action range and limited action effect of DBA can be avoided in a limited way, and the transmission delay and the packet loss rate in the ONU working process are reduced in a limited way.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a topology and an effective range of a DBA commonly used in a PON system according to an embodiment of the present invention;
fig. 2 is a schematic view illustrating a PON port flow monitoring of an ONU when a camera is hung in a PON system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a PON system according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating an ONU service transmission configuration adjustment method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data model of a service feature library in software according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a method for adjusting MTU and transmission rate of a port according to an embodiment of the present invention;
fig. 7 is a diagram of a basic model for QOS priority queue and rule creation according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a method for adjusting the length of an ethernet frame in a packet according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a method for adjusting the length of an ethernet frame in a packet according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating a conventional data processing and flow diagram according to an embodiment of the present invention;
FIG. 11 is a schematic diagram illustrating an improved data processing and flow according to an embodiment of the present invention;
fig. 12 is a schematic diagram illustrating a method for performing ONU service transmission configuration adjustment through at least one preloaded service feature library according to an embodiment of the present invention;
fig. 13 is a schematic diagram illustrating an updating method of a service feature library according to an embodiment of the present invention;
fig. 14 is a schematic diagram of an apparatus for adjusting ONU service transmission configuration according to an embodiment of the present invention;
fig. 15 is a schematic diagram of an apparatus for adjusting ONU service transmission configuration according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
In practical applications, the PON carries three types of services, namely, main data, voice, and video, each of which has its own characteristics, as shown in table 1:
table 1: different service types and corresponding service features
Figure BDA0002341846020000131
As shown in fig. 3, the PON system includes a local side device optical line terminal and at least one user terminal device optical network unit, the OLT provides various services such as voice, data, and video to users connected to the ONUs, and the OLT is connected to a network management through an IP network. Specifically, the ONU includes a PON chip and an exchange chip, the PON chip is connected to the OLT, an upstream port of the exchange chip is connected to the PON chip, a plurality of UNI (User Network Interface, User side Network port) are connected to the User terminal device, and similarly, the OLT includes the PON chip and the exchange chip, where one side of the PON chip is connected to the ONU via the PON port and the other side is connected to the exchange chip.
In view of the fact that the existing method for dynamically allocating the upstream service bandwidth defined by the PON system only acts on upstream data transmitted between the PON chip of the OLT and the PON chip of the ONU, but cannot dynamically adjust the processing behavior of the switch chip, and the DBA can only simply allocate the bandwidth for the upstream service of the ONU according to the state of the PON chip buffer of the ONU, cannot identify the type of the upstream service, and cannot dynamically adjust the ONU for different types of upstream services. In view of the foregoing problems, an embodiment of the present application provides an ONU service transmission configuration adjusting method, which is applied to an ONU device, and as shown in fig. 4:
step S401, determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
in the embodiment of the present application, the service type forwarded by the switching chip on the ONU device may be used as the service type borne by the ONU device. Specifically, the traffic characteristic information of the message transmitted by each port in the switching chip is collected, the service type of the message transmitted by each port is determined according to the traffic characteristic information of the message transmitted by each port, and optionally, the sum of the types of the service types transmitted by all the ports of the switching chip is used as at least one service type borne by the ONU device, where the service types include a multicast service type, a video service type, a voice service type, and the like.
The collected traffic characteristic information of the packet transmitted by each port in the switch chip is shown in table 2, and may include:
TABLE 2
Figure BDA0002341846020000141
Figure BDA0002341846020000151
As an optional implementation manner, the traffic characteristic information of the packet transmitted by each port in the switch chip is obtained, specifically, the register information of each port of the switch chip (for example, an RTL9603C chip, the corresponding register address is 0xBB032600/0xBB032000) can be periodically (default 100ms) read, and the content of the corresponding bit is analyzed according to the preset rule of the switch chip to obtain the traffic characteristic information, where the analysis is the prior art and is not described herein again.
In the process of transmitting service data, the switching chips can forward various service types, such as multicast service, video monitoring service, voice service, and the like, wherein one switching chip can forward only one type of service, and can also forward two or more types of services simultaneously, at this time, some ports on the switching chip forward the video monitoring service, and some ports forward the voice service.
In the following, three service types, i.e., a multicast service, a video monitoring service, and a voice service, are taken as examples to describe in detail how to determine the service type transmitted by each port.
1) Multicast service
In the actual use process of the existing network, when user equipment connected with the ONU in the PON system is a household television live broadcast set top box, terminal equipment installed with live broadcast software and the like, the transmission of multicast services is often involved, and the transmission characteristics of the services are that large-flow multicast service flow exists in the downlink direction. According to the implementation standard required by China telecom EPON equipment, the service implementation needs to follow the interaction of protocol messages, the ONU performs capture analysis on the protocol messages to determine the forwarding of multicast service flow, and by the implementation principle, the number of receiving/sending data frames, the number of receiving/sending multicast frames, the number of receiving/sending packets with different lengths, the multicast local static MAC statistics and the protocol message statistics of receiving/sending in flow characteristic information collected by a port of an exchange chip can be extracted, the multicast configuration mode on the ONU is obtained, and the acquisition of the related configuration parameters of the ONU multicast comprises the following steps: the method comprises the steps of multicasting VLAN, multicasting management mode, multicasting forwarding MAC table, UNI side port service operation type and the like, and judging whether the service transmitted by a port is the multicasting service or not by analyzing the obtained information, and further determining whether the ONU carries the multicasting service or not. Wherein, the concrete judging process comprises the following steps:
determining whether the current ONU supports multicast service according to the multicast related configuration parameters of the ONU;
if the ONU is determined not to support the multicast service, determining that all ports of the ONU do not bear the multicast service;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
if the current port does not support the multicast service, determining that the port does not bear the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
The specific process is as follows, when at least 2 of the following 3 conditions are satisfied, determining that the port transmits the multicast service type message:
a. the average length of the message exceeds the preset byte number (for example 1024);
b. the ratio of the number of the multicast streams to the number of the unicast streams exceeds a first preset proportion;
c. determining that there is interaction of IGMP protocol message;
wherein, whether the ONU and the current port support the multicast service is determined according to the ONU multicast related configuration parameter, which is the prior art and is not described herein again. The average length of the messages, the number of packets of the multicast stream, the number of packets of the unicast stream, and the interaction of the IGMP protocol messages can all be obtained by analyzing the traffic characteristic information of the ports, and the specific analysis process is the prior art. The predetermined number of bytes and the first predetermined ratio may be determined empirically by those skilled in the art.
2) Video monitoring service
When the PON system is applied to a video monitoring scene, video service information is acquired by a camera mounted on User equipment connected to an ONU, and then transmitted to an upper device or a server through the PON system, where the service is mainly characterized in that a TCP (Transmission Control Protocol) message or a UDP (User Datagram Protocol) message with high bandwidth, large flow, large burst, and large packet length exists in an uplink direction. Therefore, the identification of the video monitoring service mainly obtains whether the video monitoring service exists in the port by analyzing the TCP and UDP flows of each port of the switching chip, buffer (buffer area) cache of the switching chip, message length characteristics and the like.
By analyzing the flow characteristic information acquired by the port of the switching chip in real time, when determining that at least 2 of the following 4 conditions are met, determining that the port transmits a message of a video service type, and the specific process is as follows:
a. the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow exceeds a second preset proportion (for example, 70%), and the maximum value of the uplink flow is greater than a preset upper limit value;
b. the proportion of the UDP messages and/or the TCP messages in the uplink flow exceeds a third preset proportion;
c. the average length of the message exceeds the preset byte number (for example 1024);
d. the reduction speed of the occupation amount of the forwarding cache corresponding to the port on the switching chip exceeds a preset threshold value.
The second preset ratio, the preset upper limit value, the preset number of bytes, and the preset threshold value may be determined by those skilled in the art according to empirical values. The third preset proportion is a settable threshold, and specifically, the third preset proportion can be set for the purpose of increasing the proportion of UDP messages and/or TCP messages in the uplink traffic, where the calculation of uplink and downlink traffic, the maximum value of uplink traffic, the type of messages mainly in the uplink direction, the average length of the messages, the increase and decrease speed of the occupancy of forwarding cache, and the like, can all be obtained by analyzing traffic characteristic information of the port, and the specific analysis process is the prior art.
Of course, any other known video monitoring service determination algorithm may also be used, and this embodiment does not specifically limit this.
3) Voice service
With the popularization of networks, the use of network telephones and voice services is increasing, and the development of 'light entering and exiting' is gradually achieved in various places. The conversion equipment digitally encodes and compresses the analog signal to package the analog signal into an IP data packet, and transmits the IP data packet in a PON system network. The current protocols followed by voice services in PON systems include h.248 and SIP (Session initiation protocol). In the embodiment of the present application, according to the PON system network voice service and the corresponding characteristics, the specific process includes:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the designated port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when the transmission queue contains the voice message, wherein optionally, the designated port number comprises an SIP: 5060. h.248:2944, finding out the transmission queue corresponding to the message under the appointed port number by the function of chip ACL or Classification.
Step S402, detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to the detection mechanism corresponding to different service types;
according to the detection mechanisms corresponding to different service types, it is specifically determined whether the transmission configuration of the service in the ONU meets the transmission capability of the current corresponding service type, for example, when the transmission of the current service reaches the transmission configuration of the service in the ONU or a packet loss condition exists, the service type of the current service is automatically determined, and the transmission configuration adjustment of the service under the loaded service type is triggered.
Step S403, when determining to trigger the adjustment of the transmission configuration of the service under any service type, performing the adjustment of the transmission configuration of the service under the service type according to the adjustment mode corresponding to the service type.
In the embodiment of the application, after the service type of the port of the switching chip is determined, the thread can be independently started to perform optimization (including detection and adjustment) of the transmission behavior of the service of the corresponding type, wherein the adjustment range includes a transmission adjustment range for the switching chip except for the DBA, so that the problem that the video, voice and other information of a user are blocked due to the occurrence of packet loss, congestion and the like in the transmission process of the ONU is reduced or avoided as much as possible, and the purposes of automatic processing and coordinated updating are achieved.
Each service type is corresponding to a respective detection mechanism and adjustment mode to determine whether service transmission configuration adjustment is needed and specifically perform transmission configuration adjustment of the service under the service type, so as to timely prevent and correct service transmission performance deterioration. The detection mechanism and the adjustment mode of different service types are as follows:
1) detection mechanism and adjustment mode corresponding to multicast service
The corresponding detection mechanism and adjustment mode are carried out on the multicast service, so as to more effectively maintain the stability of the on-demand process, the on-demand number performance and the like. After determining that a certain port carries multicast service traffic, if any one of the following conditions is satisfied, triggering adjustment of transmission configuration of a service under a multicast service type:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow carrying the current port has a message loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range. :
the first preset range, the second preset range and the third preset range are configurable parameters, and when the number N of multicast groups requested by a user at a current port approaches the maximum number M of multicast groups supported by the current port, the adjustment of transmission configuration of a service under a multicast service type is triggered, optionally, the first preset range may be set to a range less than 20% of M; when the downlink flow of the current port is close to the service bearing capacity of the port, triggering the adjustment of the transmission configuration of the service under the multicast service type, and when the flow in the forwarding buffer zone corresponding to the current port is close to the maximum flow capable of being borne by the forwarding buffer zone, triggering the adjustment of the transmission configuration of the service under the multicast service type.
The purpose of the detection mechanism further includes determining whether packet loss is possible or has occurred at the bearer port in forwarding of the current service.
Correspondingly, when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capability of the port, starting port flow control, and adjusting size of the port buffer area.
2) Detection mechanism and adjustment mode corresponding to video service
The detection mechanism and the adjustment mode are carried out on the video service, the purpose is to ensure the stability of the flow of the uplink service, when the type of the current port bearing the video service is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the type of the video service is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
The preset threshold and the preset ratio are configurable parameters, when the uplink transmission rate of the current port is close to the uplink transmission rate, the adjustment of the transmission configuration of the service under the video service type is triggered, and when the ratio of the forward buffer area corresponding to the current port is close to the preset maximum ratio, the adjustment of the transmission configuration of the service under the video service type is triggered, optionally, the preset ratio may be set to 10%.
Correspondingly, when determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting message Ethernet frame length.
3) Detection mechanism and adjustment mode corresponding to voice service
According to the technical requirements of China telecommunication EPON equipment, when a voice service needs to meet the performance requirements of packet loss rate, jitter and time delay under a specific condition, when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the transmission configuration adjustment of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
The preset ratio is a configurable parameter.
Correspondingly, when determining that the transmission configuration adjustment of the service under the voice service type is triggered, performing any one or any more of the following transmission configuration adjustments: adding and adjusting a QOS priority queue, adjusting the size of a buffer area of a receiving/sending port, and changing the length of a message Ethernet frame.
Optionally, in this embodiment of the present application, at least one service feature library is further preloaded, where each service feature library is a set of functions, where each service feature library is used to identify a corresponding service type carried by the ONU, and detect that a transmission configuration adjustment of the service type is triggered, and perform a corresponding transmission configuration adjustment, where the corresponding transmission configuration adjustment includes at least one adjustment method corresponding to each type, the determination method of the service type is determined only by a characteristic of the service itself and is not related to hardware of the device, and the detection mechanism and the adjustment method corresponding to each type include performing pre-adjustment, optimizing a switch chip, a PON chip, and performing service transmission function configuration on the service of the type, so as to enrich a control range of data transmission and ensure that service traffic can be transmitted more efficiently. The detection mechanism and the adjustment method relate to the configuration of registers of the PON chip and the exchange chip, and the part is related to hardware, and corresponding configuration work needs to be realized by calling a specific hardware interface corresponding to a specific chip type.
The at least one service feature library is stored in a linked list, and each linked list node corresponds to one service feature library, as shown in fig. 5.
The following specifically introduces each adjustment method corresponding to each type of service in the embodiment of the present application:
1) adjusting MTU or port capability of a port
The adjustment process includes: checking the reason of the packet loss of the port; if the reason of the packet loss is caused by the self-configured MTU (maximum transmission unit) value of the port or the port rate (transmission rate of data), the following steps are executed:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
The detection of the reason for packet loss and the configuration update of the hardware layer belong to the prior art, and are not described herein again.
Example (c): a packet with 129 bytes of packet length can not pass the discard generated because the port MTU value is small when passing the port, the CPU will analyze the packet, and compare the value of 129 with the current port MTU value to obtain that the current port MTU value is less than 129, since the pre-divided packet length intervals are 0-64, 65-127, 128-255, 256-511, 512-1023, 1024-1518, etc., it can be seen that 129 belongs to the 128-255 interval, the system will configure the MTU value to be 255.
The above adjustment method is described below with reference to a specific embodiment, as shown in fig. 6:
step S601, obtaining the actual transmission rate of the current port transmission message and the message packet length of the packet loss;
step S602, acquiring port transmission rate and MTU value currently configured by a port;
step S603, determining whether the transmission rate configured by the port is less than the transmission rate of the actual transmission packet of the current port, if so, executing step S604, otherwise, executing step S606;
step S604, configuring the transmission rate of the port to be not less than the actual transmission rate of the current port;
step S605, configuring corresponding parameters of a hardware layer by calling a system interface according to the reconfigured transmission rate;
step S606, judging whether the MTU value configured by the port is smaller than the packet length of the current port transmission message, if so, executing step S607;
step S607, configuring the MTU of the port to be not less than the maximum packet length of the packet loss of the current port;
step S608, configuring corresponding parameters of the hardware layer by calling the system interface according to the reconfigured MTU.
2) Open port flow control
And when the residual size of the port buffer area is judged to be smaller than the preset cache threshold value, suspending the interaction of pause frames through flow control, and reducing the flow of the message at the sending end.
When the service message bursts and the flow is large, and the common port burst in a short time is larger than the port configuration transmission rate and the packet loss can not be solved by adjusting the port transmission rate, the transmission configuration adjustment and optimization can be continued, and the flow of the service message at the sending end is restrained by controlling the interaction (network flow control) of pause frames. Specifically, by judging whether the remaining size of the port buffer is smaller than a preset cache threshold, if it is determined that the remaining size of the port buffer is smaller than the preset cache threshold, a flow control pause frame is generated, configuration related parameters (port, flow control enable, access direction) are generated, a system software interface is called, the hardware flow control function is started, and correct forwarding during service burst is ensured.
The MTU or port capability of the port is adjusted, the flow control of the port is started, the problem of packet loss possibly existing in the PON system is solved or prevented by automatically identifying the service type, adjusting equipment configuration, equipment service capability and the like, the self-checking and correcting measures when the packet loss exists in a switching chip under the condition that the DBA is normally used can be solved, the limitation of the effective range of the DBA is made up, and the normal forwarding of the service is ensured as much as possible.
3) Adjusting QOS priority queues
And improving the priority of the queue for storing the IP-based voice transmission type message in the QOS priority message queue.
When the PON system carries high priority services such as VOIP (Voice over Internet Protocol, Voice over IP) Voice, in order to ensure transmission of the high priority services as much as possible, a QOS priority packet queue may be set, and by increasing the priority of the queue for storing VOIP Voice type service flows, the processing and forwarding speeds of packets in the queue are increased, so as to prevent the problem of congestion and packet loss that may exist in transmission of packets with priority. A QOS priority queue and rule are created, a compliance basic model is shown IN fig. 7, wherein when a message enters a port, classification is performed first, the classification process mainly checks a packet and configures a low-cost QOS tag according to an ACL (access control list) or a configuration policy, and then determines whether the packet is an IN profile (IN identifier) or an OUT profile (OUT identifier) according to a Rate of a policy comparison flow. Determining and marking the processing action of the packet according to whether the packet is an IN profile or an OUT profile, specifically comprising passing, modifying or discarding, then determining an IN-queue for the packet to enter according to the QoS label of the generated packet, and processing the packet according to the weight set by the priority of the packet, and when the packet is OUT-port, determining an OUT-queue for the packet to enter according to the QoS label of the generated packet, and processing the packet according to the weight set by the priority of the packet.
4) Adjusting buffer size of a port
And the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
The adjusting action can configure and update packet loss conditions of an outgoing direction and an incoming direction of a message transmitted by a port, taking an RTL960X series chip as an example, parameters such as Page Count, Drop-Threshold and the like of the configured port can be adjusted, and a reasonable numerical value can be allocated to a specific adjusted value through statistics and packet loss comparison, so that hardware resource allocation of each port under the current service is comprehensively adjusted to provide more buffer areas as much as possible to prevent data loss under the conditions of packet loss, burst and extreme value of the port service, the part of loss is loss of switching to a PON, and a port flow control comparison method is used for realizing the purpose of improving the switching forwarding performance of equipment when a flow control function is not started. It also presents the limitations of DBA in use: the packet loss behavior of other parts outside the PON system cannot be guaranteed.
5) Adjusting the Ethernet frame length in the message
And when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
In a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
The current type service refers to a service type corresponding to transmission traffic of a current port, and specifically may include a multicast service type, a video service type, a voice service type, and the like, and the trunk mode may be to mark a preset VLAN tag on a message without the VLAN tag.
The adjustment action for reducing the message length mainly aims at the situation that the flow is large when the small byte packet length exists, and through the action operation, the occupation of the uplink bandwidth is reduced, and more resources are provided for a PON system in transmission.
Specifically, the length of the transmitted message is reduced by shortening the byte length of the header ethernet frame of the message, and the VLAN of 802.1q in the header ethernet frame of the message is mainly removed, so that the length of the message can be transmitted in the same time slot with the byte number of a smaller flow, and the occupied bandwidth is small. Therefore, data with a certain information amount can be realized by a short packet length, and performance optimization is improved.
The implementation of the process mainly uses the basic characteristics of the network protocol IEEE802.1 q. In network transmission, the packet format of data encapsulation is composed of ethernet frame, IP, data, and check code, as shown in table 3:
TABLE 3
ETHERNET frame header IP header TCP head Data of FCS
For the two-layer transmission of the PON system, the vlan of ieee802.1q is most used in the large-scale use of the existing network, so the ETHERNET header can be modified according to the actual PON system configuration. The adjusting method is to reduce the length of the header of the packet by using the principle of removing the vlan of 802.1q, and the header of ETHERNET mainly contains information as shown in table 4:
TABLE 4
DMAC SMAC 802.1Q tag Type data
The 802.1Q Tag includes 4 bytes of Information including a 2-byte TPID (Tag Protocol Identifier) and a 2-byte TCI (Tag Control Information), and according to the actual configuration of the PON system, the portion may actually occupy 4 bytes or 8 bytes (double Tag), and for a minimum 64-byte message that can be transmitted, the length of 4 bytes may be reduced by deleting the 802.1 Tag. In the process, VLAN configuration needs to be coordinated, namely VLAN configuration of the ONU and the OLT is changed, and upper network configuration is agreed.
The method for adjusting the length of the ethernet frame in the message is described in detail below with reference to a specific embodiment, where port VLAN configurations consistent with the current ONU exist in all port VLAN configurations of all other ONUs of the OLT connected to the current time, and at this time, VLAN configurations of the current ONU, the corresponding OLT, and all other ONUs connected to the OLT need to be changed, as shown in fig. 8:
step S801, initiating a query request for system VLAN configuration information to an OLT, and receiving a response fed back by the OLT aiming at the query request;
wherein the response includes the following information: the VLAN mode of the PON port of the PON chip on the OLT, the VLAN configuration of the PON port of the PON chip on the OLT, and the VLAN configuration of all ports of each ONU under the PON port of the PON chip on the OLT.
Step S802, determining that port VLAN configurations consistent with the ONU exist in all the port VLAN configurations of all other ONUs connected with the OLT in the received response;
step S803, obtain the goal VLAN of UNI port of the business of transmission current type on the exchange chip;
step S804, removing the acquired target VLAN in the VLAN configuration of the upper connection port of the exchange chip;
step S805, determining that the configuration modification result is obtained by modifying the VLAN mode of the PON port of the PON chip on the OLT and the VLAN configuration of the PON port of the PON chip on the OLT;
wherein the modifying operation comprises: updating the VLAN mode configuration of a PON port of a PON chip on the OLT into a trunk mode, and setting the VLAN configuration in the trunk mode as follows: PVID is a target VLAN, and the trunk mode marks a preset PVID label on a permitted message without the label; the VLAN allowed to pass through is deleted from the same VLAN as the target VLAN, and the rest remains.
Step S806, sending the configuration modification result to the OLT to instruct the OLT to update the VLAN configuration of the PON port of the OLT and correspondingly modify the VLAN configuration of other ONUs;
and correspondingly modifying the VLAN configuration of other ONUs, specifically informing the port VLAN configuration under the PON port of the PON chip that the VLAN configuration related to the target VLAN is adaptively modified by the other ONUs of the target VLAN, namely removing the target VLAN in the VLAN configuration of the uplink port on the switching chip by the other ONUs.
Step S807, the exchange chip forwards the message internally according to the configuration and reduces the message length, and the message is sent to the OLT through the PON chip;
after a UNI port transmitting the current type service on an exchange chip of the ONU receives a message sent to upper-layer equipment of the PON system, a target VLAN label is marked on the message, and the message is forwarded to an uplink port of the exchange chip through the target VLAN; after the target VLAN tag is stripped at the upper connector, the target VLAN tag is sent to a PON chip of the ONU and sent to the OLT through a DBA mechanism.
In this way, after the PON port of the PON chip on the OLT receives the message, and detects that the VLAN tag does not exist in the message, a target VLAN tag is added to the message according to the PVID, and subsequent processing is performed.
As an optional implementation method, the method for adjusting the length of the ethernet frame in the message, where there is no port VLAN configuration that is consistent with the current ONU in all port VLAN configurations of all other ONUs including the OLT currently connected to the current ONU, and at this time, only the VLAN configurations of the current ONU and the corresponding OLT need to be changed, as shown in fig. 9, includes:
step S901, obtaining a target VLAN of a UNI port for transmitting the current type service on a switching chip;
step S902, removing the obtained target VLAN in the VLAN configuration of the uplink port of the exchange chip;
step S903, determining that the configuration modification result is obtained by modifying the VLAN mode of the PON port of the PON chip on the OLT and the VLAN configuration of the PON port of the PON chip on the OLT;
wherein the modifying operation comprises: updating the VLAN mode configuration of a PON port of a PON chip on the OLT into a trunk mode; the VLAN configuration in this mode is set to: PVID is a target VLAN; the VLAN which is the same as the target VLAN in the allowed VLAN is deleted, and the rest is still reserved;
step S904, sending the configuration modification result to the OLT, so as to instruct the OLT to update the VLAN configuration of the PON port of the OLT, and synchronously update the VLAN configuration under the PON port of the local PON chip;
step S905, the exchange chip forwards the message internally according to the configuration and reduces the message length, and the message is sent to the OLT through the PON chip;
after a UNI port transmitting the current type service on an exchange chip of the ONU receives a message sent to upper-layer equipment of the PON system, a target VLAN label is marked on the message, and the message is forwarded to an uplink port of the exchange chip through the target VLAN; after the target VLAN tag is stripped at the upper connector, the target VLAN tag is sent to a PON chip of the ONU and sent to the OLT through a DBA mechanism.
The specific process described above is illustrated in fig. 10 and 11.
6) Adjusting message frame spacing
Aiming at the realization of the inter-frame interval of the message, the adjustment of the interval between the message frames can be completed by calling the specific register instructions of different chips, and the message transmission rate is improved by shortening the IFG (Interframe Gap) time so as to send more data in the specific time slot of the ONU. The following provides a practical operation in which the slot interval can be adjusted. As shown in Table 5, for a chip, the adjustable value of the frame gap is:
TABLE 5
Figure BDA0002341846020000281
The method for triggering the adjustment of the transmission configuration of the services under different service types covers the limitation of DBA sending processing, can realize the joint processing between the exchange chip and the PON chip, and can be flexibly applied to various scenes.
As an optional manner, the method for adjusting ONU service transmission configuration provided by the present application is executed by using at least one service feature library preloaded in the present application, as shown in fig. 12, including:
step S1201, traversing each service feature library, calling the identification behavior of the current service feature library, and determining whether the service type transmitted by the port of the switching chip is the service type corresponding to the current service feature library;
step S1202, if yes, invoke the detection mechanism and the adjustment method of the current service feature library, and execute corresponding adjustment processing when detecting that the transmission configuration of the service of the type needs to be adjusted.
In this embodiment of the present application, at least one preloaded service feature library has a feature of dynamic extensibility, the identification and optimization behavior of a single service feature library and each service feature library can be implemented in the form of compiling a C file into a dynamic library in ONU software, and an OLT can update the dynamic library of an ONU through a remote management interface, as shown in fig. 13, including:
step S1301, receiving a service feature library upgrading command sent by an OLT through a remote management interface, and receiving a new service feature library from the OLT;
step S1302, determining whether a local service feature library exists in the service feature library received from the OLT, and if yes, executing step S1303;
and step S1303, upgrading the local service feature library by using the new service feature library.
Optionally, the method provided in the embodiment of the present invention further includes: the OLT issues a flow analysis optimization command to the ONU through the remote management interface; after receiving the command, the ONU executes steps S1302 and S1303, and then feeds back the service type identification result and the optimization adjustment result to the OLT, so that the OLT synchronizes the locally stored configuration of the ONU. The EPON ONU issues a traffic analysis optimization command through the extended OAM interface, and the GPON ONU issues a traffic analysis optimization command through the OMCI interface, where the message format is shown in table 6:
TABLE 6
Figure BDA0002341846020000291
Taking VOIP service as an example, the adjustment result includes: the QOS priority queue adjusting result, the buffer area size adjusting result and the reduced packet header length value can be used for constructing and reporting the contents to the OLT, so that the synchronization of the local configuration of the ONU and the OLT side is ensured.
The method for adjusting the ONU service transmission configuration in the present invention is explained above, and an apparatus for performing the ONU service transmission configuration adjustment is explained below.
Please refer to fig. 14, which illustrates an apparatus for adjusting ONU service transmission configuration according to an embodiment of the present invention, including:
a determining module 1401, configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip;
a detection module 1402, configured to detect whether to trigger adjustment of transmission configuration of a service under a loaded service type according to detection mechanisms corresponding to different service types;
an adjusting module 1403, configured to, when it is determined that transmission configuration adjustment of a service in any service type of a bearer is triggered, perform transmission configuration adjustment of the service in the service type according to an adjusting manner corresponding to the service type.
Optionally, the determining module is configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip, and specifically configured to:
collecting flow characteristic information of messages transmitted by each port in a switching chip, and determining the service type of the messages transmitted by each port according to the flow characteristic information;
and determining the sum of the service types of the messages transmitted by the ports, and determining the sum as at least one service type borne by the ONU.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
determining whether the ONU supports multicast service according to the multicast related configuration parameters of the ONU;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
Optionally, the determining module is configured to determine whether the port transmits a packet of a multicast service type, and specifically configured to:
if at least two conditions of the following conditions are met, determining that the port transmits the message of the multicast service type: the average length of the message exceeds the preset byte number, the ratio of the packet number of the multicast stream to the packet number of the unicast stream exceeds a first preset proportion, and the existence of the interaction of the IGMP protocol message is determined.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
if at least 2 of the following conditions are met, determining that the port transmits the message of the video service type: the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow determined according to the flow characteristic information of the port exceeds a second preset proportion, and the maximum value of the uplink flow is greater than a preset upper limit value;
determining that the proportion of UDP messages and/or TCP messages in the uplink flow exceeds a third preset proportion according to the flow characteristic information of the port;
the average length of the message determined according to the flow characteristic information of the port exceeds the preset byte number;
and determining that the reduction speed of the corresponding forwarding cache occupation amount exceeds a preset threshold value according to the flow characteristic information of the port.
Optionally, the determining module is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and is specifically configured to:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the appointed port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when judging that the transmission queue contains the voice message.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the current port bearing the multicast service type is determined, if any one of the following conditions is met, the transmission configuration adjustment of the service under the multicast service type is triggered:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow bearing the current port has a packet loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the type of the video service carried by the current port is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the video service type is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
Optionally, the detection module is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and specifically configured to:
when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
Optionally, the adjusting module is configured to perform transmission configuration adjustment on the service under the service type according to an adjusting manner corresponding to the service type, and specifically configured to:
when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, starting port flow control, and adjusting size of the port buffer area; or
When determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of a port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting Ethernet frame length in a message; or
When determining to trigger the adjustment of the transmission configuration of the service under the voice service type, performing any one or more of the following adjustments of the transmission configuration: adjusting the QOS priority queue, adjusting the size of the buffer area of the receiving/transmitting port and changing the length of the message Ethernet frame.
Optionally, the adjusting module is configured to adjust an MTU or a port capability of a port, and specifically configured to:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
Optionally, the adjusting module is configured to open port flow control, and includes: when the residual size of the port buffer area is judged to be smaller than a preset cache threshold value, pause frame interaction is suspended through flow control, and the flow of a message at a sending end is reduced; or
The adjusting QOS priority queue includes: improving the priority of a queue for storing IP-based voice transmission type messages in a QOS priority message queue; or
The adjusting the size of the port buffer comprises: and the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
Optionally, the adjusting module is configured to adjust a length of an ethernet frame in the packet, and specifically configured to:
and when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
Optionally, the adjusting module is configured to shorten an ethernet frame byte length of the small byte packet header, and specifically configured to:
in a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
Optionally, the method further comprises:
a preloading module 1404, configured to preload at least one service feature library, where each service feature library is a set of functions, and each service feature library is configured to identify a corresponding service type carried by the ONU, and perform corresponding transmission configuration adjustment when detecting that transmission configuration adjustment of the service type is triggered.
Optionally, the at least one service feature library in the loading module is stored in a linked list, and each linked list node corresponds to one service feature library.
Optionally, the method further comprises:
an upgrade module 1405, configured to receive a service feature library upgrade command sent by an OLT through a remote management interface, and receive a new service feature library from the OLT;
and upgrading the local service characteristic library by using the new service characteristic library.
The above describes an apparatus for adjusting ONU service transmission configuration in the embodiment of the present application from the perspective of a modular functional entity, and the following describes an apparatus for adjusting ONU service transmission configuration in the embodiment of the present application from the perspective of hardware processing.
Referring to fig. 15, in an embodiment of the present application, an apparatus for adjusting ONU service transmission configuration includes:
at least one processing unit 1501 and at least one storage unit 1502, and a bus system 1509;
wherein the storage unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types;
and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type.
Fig. 15 is a schematic diagram of a device for adjusting ONU service transmission configuration according to an embodiment of the present disclosure, where the device 1500 may generate relatively large differences due to different configurations or performances, and may include one or more processing units (CPU) 1501 (e.g., one or more processing units) and a storage unit 1502, and one or more storage media 1503 (e.g., one or more mass storage devices) storing applications 1504 or data 1505. The storage unit 1502 and the storage medium 1503 may be transient storage or persistent storage, among others. The program stored in the storage medium 1503 may include one or more modules (not shown), and each module may include a series of instruction operations in the information processing apparatus. Further, the processing unit 1501 may be arranged to communicate with the storage medium 1503, and execute a series of instruction operations in the storage medium 1503 on the device 1500.
The device 1500 may also include one or more wired or wireless network interfaces 1507, one or more input-output interfaces 1508, and/or one or more operating systems 1506, such as Windows Server, Mac OSX, Unix, Linux, FreeBSD, etc.
Optionally, the processing unit is configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip, and includes:
collecting flow characteristic information of messages transmitted by each port in a switching chip, and determining the service type of the messages transmitted by each port according to the flow characteristic information;
and determining the sum of the service types of the messages transmitted by the ports, and determining the sum as at least one service type borne by the ONU.
Optionally, the processing unit is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and includes:
determining whether the ONU supports multicast service according to the multicast related configuration parameters of the ONU;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
Optionally, the processing unit is configured to determine whether the port transmits a packet of a multicast service type, and includes:
if at least two conditions of the following conditions are met, determining that the port transmits the message of the multicast service type: the average length of the message exceeds the preset byte number, the ratio of the packet number of the multicast stream to the packet number of the unicast stream exceeds a first preset proportion, and the existence of the interaction of the IGMP protocol message is determined.
Optionally, the processing unit is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and includes:
if at least 2 of the following conditions are met, determining that the port transmits the message of the video service type: the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow determined according to the flow characteristic information of the port exceeds a second preset proportion, and the maximum value of the uplink flow is greater than a preset upper limit value;
determining that the proportion of UDP messages and/or TCP messages in the uplink flow exceeds a third preset proportion according to the flow characteristic information of the port;
the average length of the message determined according to the flow characteristic information of the port exceeds the preset byte number;
and determining that the reduction speed of the corresponding forwarding cache occupation amount exceeds a preset threshold value according to the flow characteristic information of the port.
Optionally, the processing unit is configured to determine a service type of a packet transmitted by each port according to the traffic characteristic information, and includes:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the appointed port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when judging that the transmission queue contains the voice message.
Optionally, the processing unit is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and includes:
when the current port bearing the multicast service type is determined, if any one of the following conditions is met, the transmission configuration adjustment of the service under the multicast service type is triggered:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow bearing the current port has a packet loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range.
Optionally, the processing unit is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and includes:
when the type of the video service carried by the current port is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the video service type is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
Optionally, the processing unit is configured to detect whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types, and includes:
when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
Optionally, the processing unit is configured to perform transmission configuration adjustment on the service under the service type according to an adjustment manner corresponding to the service type, and includes:
when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, starting port flow control, and adjusting size of the port buffer area; or
When determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of a port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting Ethernet frame length in a message; or
When determining to trigger the adjustment of the transmission configuration of the service under the voice service type, performing any one or more of the following adjustments of the transmission configuration: adjusting the QOS priority queue, adjusting the size of the buffer area of the receiving/transmitting port and changing the length of the message Ethernet frame.
Optionally, the processing unit is configured to adjust MTU or port capability of a port, and includes:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
Optionally, the processing unit is configured to open port flow control, and includes: when the residual size of the port buffer area is judged to be smaller than a preset cache threshold value, pause frame interaction is suspended through flow control, and the flow of a message at a sending end is reduced; or
The adjusting QOS priority queue includes: improving the priority of a queue for storing IP-based voice transmission type messages in a QOS priority message queue; or
The adjusting the size of the port buffer comprises: and the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
Optionally, the processing unit is configured to adjust an ethernet frame length in the packet, and includes:
and when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
Optionally, the processing unit is configured to shorten an ethernet frame byte length of the small byte packet header, and includes:
in a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
Optionally, the method further comprises:
and pre-loading at least one service feature library, wherein each service feature library is a set of a group of functions, each service feature library is used for identifying a corresponding service type borne by the ONU, and performing corresponding transmission configuration adjustment when detecting that the transmission configuration adjustment of the service type is triggered.
Optionally, the at least one service feature library is stored in a form of a linked list, and each linked list node corresponds to one service feature library.
Optionally, the method further comprises:
receiving a service feature library upgrading command sent by an OLT through a remote management interface, and receiving a new service feature library from the OLT;
and upgrading the local service characteristic library by using the new service characteristic library.
An embodiment of the present invention further provides a computer-readable storage medium, which includes instructions, and when the computer-readable storage medium runs on a computer, the computer is enabled to execute the method for adjusting ONU service transmission configuration provided in the foregoing embodiment.
The embodiment of the present disclosure further provides a computer program product, which includes a computer program, where the computer program includes program instructions, and when the program instructions are executed by an electronic device, the electronic device is enabled to execute the method for adjusting the ONU service transmission configuration provided in the foregoing embodiment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The technical solutions provided by the present application are introduced in detail, and the present application applies specific examples to explain the principles and embodiments of the present application, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (20)

1. A method for adjusting service transmission configuration of an Optical Network Unit (ONU), comprising:
determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types;
and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type.
2. The method according to claim 1, wherein determining at least one service type carried by the ONU according to the service type of the packet transmitted by each port in the switch chip comprises:
collecting flow characteristic information of messages transmitted by each port in a switching chip, and determining the service type of the messages transmitted by each port according to the flow characteristic information;
and determining the sum of the service types of the messages transmitted by the ports, and determining the sum as at least one service type borne by the ONU.
3. The method according to claim 2, wherein determining the service type of the packet transmitted by each port according to the traffic characteristic information comprises:
determining whether the ONU supports multicast service according to the multicast related configuration parameters of the ONU;
when the ONU is determined to support the multicast service, determining whether each port supports the multicast service;
and for the port supporting the multicast service, determining whether the port transmits the multicast service type message or not according to at least two of the average message length, the packet number of the multicast stream, the packet number of the unicast stream and the interactive information of the IGMP protocol message determined by the flow characteristic information of the port.
4. The method of claim 3, wherein determining whether the port is transmitting multicast traffic type messages comprises:
if at least two conditions of the following conditions are met, determining that the port transmits the message of the multicast service type: the average length of the message exceeds the preset byte number, the ratio of the packet number of the multicast stream to the packet number of the unicast stream exceeds a first preset proportion, and the existence of the interaction of the IGMP protocol message is determined.
5. The method according to claim 2, wherein determining the service type of the packet transmitted by each port according to the traffic characteristic information comprises:
if at least 2 of the following conditions are met, determining that the port transmits the message of the video service type:
the proportion of the sum of the uplink flow and the downlink flow occupied by the uplink flow determined according to the flow characteristic information of the port exceeds a second preset proportion, and the maximum value of the uplink flow is greater than a preset upper limit value;
determining that the proportion of UDP messages and/or TCP messages in the uplink flow exceeds a third preset proportion according to the flow characteristic information of the port;
the average length of the message determined according to the flow characteristic information of the port exceeds the preset byte number;
and determining that the reduction speed of the corresponding forwarding cache occupation amount exceeds a preset threshold value according to the flow characteristic information of the port.
6. The method according to claim 2, wherein determining the service type of the packet transmitted by each port according to the traffic characteristic information comprises:
according to the flow characteristic information of each port, obtaining port information statistics carried by the message of each port and protocol message statistics of receiving/sending;
determining whether the current port transmits a voice service type message or not according to the statistics of received/transmitted protocol messages;
if yes, obtaining a transmission queue corresponding to the message in the appointed port number according to port information statistics carried by the voice service type message, and determining that the current port transmits the message of the voice service type when judging that the transmission queue contains the voice message.
7. The method of claim 1, wherein detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types comprises:
when the current port bearing the multicast service type is determined, if any one of the following conditions is met, the transmission configuration adjustment of the service under the multicast service type is triggered:
determining that the difference value between the number N of multicast groups requested by a user under the current port and the maximum number M of multicast groups supported by the current port configuration is smaller than a first preset range;
determining that the downlink flow bearing the current port has a packet loss behavior;
determining that the difference value of the downlink flow for bearing the current port and the service bearing capacity of the port is smaller than a second preset range;
and determining that the difference value between the flow in the forwarding buffer corresponding to the current port and the maximum flow which can be borne by the forwarding buffer is smaller than a third preset range.
8. The method of claim 1, wherein detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types comprises:
when the type of the video service carried by the current port is determined, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the video service type is triggered:
the difference value between the uplink transmission rate of the current port and the configured uplink transmission rate is smaller than a preset threshold value;
the length of the message with packet loss at the current port is not less than the configured MTU;
the difference value between the ratio of the forwarding buffer area corresponding to the current port and the preset maximum ratio is smaller than the preset ratio.
9. The method of claim 1, wherein detecting whether to trigger adjustment of transmission configuration of a service under a service type of a bearer according to a detection mechanism corresponding to different service types comprises:
when the ONU is determined to bear the voice service type, if any one of the following conditions is met, the adjustment of the transmission configuration of the service under the voice service type is triggered:
when the current port bearing voice service type is determined, determining that the voice call type in the voice service flow borne by the current port belongs to a preset emergency voice service type;
the flow ratio of a forwarding queue of the voice service message in the current port exceeds a preset ratio;
the priority of the voice service message in the current port is higher than the priority of other non-voice service messages.
10. The method according to any one of claims 1 to 9, wherein the adjusting the transmission configuration of the service under the service type according to the adjustment mode corresponding to the service type includes:
when determining to trigger the transmission configuration adjustment of the service under the multicast service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of the port, starting port flow control, and adjusting size of the port buffer area; or
When determining to trigger the transmission configuration adjustment of the service under the video service type, performing any one or any more of the following transmission configuration adjustments: adjusting MTU or port capacity of a port, opening port flow control, adjusting size of a port buffer area, adjusting message frame interval and adjusting Ethernet frame length in a message; or
When determining to trigger the adjustment of the transmission configuration of the service under the voice service type, performing any one or more of the following adjustments of the transmission configuration: adjusting the QOS priority queue, adjusting the size of the buffer area of the receiving/transmitting port and changing the length of the message Ethernet frame.
11. The method of claim 10, wherein adjusting the MTU or port capability of a port comprises:
judging whether the transmission rate configured by the port is smaller than the actual transmission rate of the current port, if so, reconfiguring the transmission rate of the port to be not smaller than the actual transmission rate of the current port;
judging whether the MTU configured by the port is smaller than the maximum packet length of the packet loss of the current port or not, if so, reconfiguring the MTU of the port to be not smaller than the maximum packet length of the packet loss of the current port;
and adjusting corresponding parameters of a hardware layer according to the reconfigured transmission rate and/or the MTU.
12. The method of claim 10,
the open port flow control comprises: when the residual size of the port buffer area is judged to be smaller than a preset cache threshold value, pause frame interaction is suspended through flow control, and the flow of a message at a sending end is reduced; or
The adjusting QOS priority queue includes: improving the priority of a queue for storing IP-based voice transmission type messages in a QOS priority message queue; or
The adjusting the size of the port buffer comprises: and the size of the buffer area is adjusted by configuring and updating packet loss conditions of the outgoing direction and the incoming direction of the message transmitted by the port.
13. The method of claim 10, wherein adjusting the ethernet frame length in the message comprises:
and when the flow of the small byte message of which the message length transmitted by the port is smaller than the preset value is determined to exceed the preset flow, shortening the Ethernet frame byte length of the head of the small byte message.
14. The method of claim 13, wherein shortening the ethernet frame byte length of the small-byte message header comprises:
in a small byte message transmitted by an uplink port of the switch chip, a target VLAN label of a UNI port corresponding to the current type service in VLAN configuration information in a small byte message header is removed and notified to the OLT, so that the OLT updates the VLAN mode of a PON port in the PON chip into a trunk mode according to the removed target VLAN label.
15. The method of claim 1, further comprising:
and pre-loading at least one service feature library, wherein each service feature library is a set of a group of functions, each service feature library is used for identifying a corresponding service type borne by the ONU, and performing corresponding transmission configuration adjustment when detecting that the transmission configuration adjustment of the service type is triggered.
16. The method of claim 15, wherein the at least one service feature repository is stored in a linked list, and wherein each linked list node corresponds to one service feature repository.
17. The method of claim 15, further comprising:
receiving a service feature library upgrading command sent by an OLT through a remote management interface, and receiving a new service feature library from the OLT;
and upgrading the local service characteristic library by using the new service characteristic library.
18. An apparatus for ONU traffic transmission configuration adjustment, comprising:
a determining module, configured to determine at least one service type carried by the ONU according to a service type of a packet transmitted by each port in an exchange chip;
the detection module is used for detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to the detection mechanisms corresponding to different service types;
and the adjusting module is used for adjusting the transmission configuration of the service under any service type according to the adjusting mode corresponding to the service type when the transmission configuration adjustment of the service under any service type is determined to be triggered.
19. An apparatus for ONU traffic transmission configuration adjustment, comprising: a storage unit and a processing unit;
wherein the storage unit is used for storing programs;
the processing unit is used for executing the program in the storage unit and comprises the following steps:
determining at least one service type carried by the ONU according to the service type of the message transmitted by each port in the exchange chip;
detecting whether to trigger the transmission configuration adjustment of the service under the loaded service type according to detection mechanisms corresponding to different service types;
and when determining to trigger the transmission configuration adjustment of the service under any carried service type, carrying out the transmission configuration adjustment of the service under the service type according to the adjustment mode corresponding to the service type.
20. A computer-readable storage medium comprising computer program instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 17.
CN201911379273.0A 2019-12-27 2019-12-27 ONU service transmission configuration adjustment method, device and equipment Active CN111083581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911379273.0A CN111083581B (en) 2019-12-27 2019-12-27 ONU service transmission configuration adjustment method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911379273.0A CN111083581B (en) 2019-12-27 2019-12-27 ONU service transmission configuration adjustment method, device and equipment

Publications (2)

Publication Number Publication Date
CN111083581A true CN111083581A (en) 2020-04-28
CN111083581B CN111083581B (en) 2021-11-19

Family

ID=70318732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911379273.0A Active CN111083581B (en) 2019-12-27 2019-12-27 ONU service transmission configuration adjustment method, device and equipment

Country Status (1)

Country Link
CN (1) CN111083581B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399284A (en) * 2020-10-22 2021-02-23 成都中讯创新科技股份有限公司 Service configuration method of optical network unit
CN114007242A (en) * 2021-09-24 2022-02-01 中盈优创资讯科技有限公司 Method for positioning obstructed fault of 5G special line service
CN114900240A (en) * 2022-06-13 2022-08-12 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium
CN117278889A (en) * 2023-11-14 2023-12-22 武汉长光科技有限公司 ONU service scheduling method, ONU service scheduling device, OLT and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060523A (en) * 2006-04-26 2007-10-24 华为技术有限公司 Optical network terminal, its port transmission rate limitation attribute configuration method and message processing method
US20140255027A1 (en) * 2013-03-06 2014-09-11 Telefonaktiebolaget L M Ericsson (Publ) Energy conservation by means of traffic shaping
CN106685529A (en) * 2015-11-06 2017-05-17 中国电信股份有限公司 Method used for adjusting line rate, apparatus and system thereof
CN108173699A (en) * 2018-01-26 2018-06-15 武汉光迅科技股份有限公司 One kind is based on Marvell exchange chips CPU high-efficient treatment methods when obtaining message source port
CN109428830A (en) * 2017-08-31 2019-03-05 深圳市中兴微电子技术有限公司 A kind of device and method of dynamic adjustment ONU equipment port speed constraint threshold values

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060523A (en) * 2006-04-26 2007-10-24 华为技术有限公司 Optical network terminal, its port transmission rate limitation attribute configuration method and message processing method
US20140255027A1 (en) * 2013-03-06 2014-09-11 Telefonaktiebolaget L M Ericsson (Publ) Energy conservation by means of traffic shaping
CN106685529A (en) * 2015-11-06 2017-05-17 中国电信股份有限公司 Method used for adjusting line rate, apparatus and system thereof
CN109428830A (en) * 2017-08-31 2019-03-05 深圳市中兴微电子技术有限公司 A kind of device and method of dynamic adjustment ONU equipment port speed constraint threshold values
CN108173699A (en) * 2018-01-26 2018-06-15 武汉光迅科技股份有限公司 One kind is based on Marvell exchange chips CPU high-efficient treatment methods when obtaining message source port

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112399284A (en) * 2020-10-22 2021-02-23 成都中讯创新科技股份有限公司 Service configuration method of optical network unit
CN114007242A (en) * 2021-09-24 2022-02-01 中盈优创资讯科技有限公司 Method for positioning obstructed fault of 5G special line service
CN114007242B (en) * 2021-09-24 2023-09-29 中盈优创资讯科技有限公司 Method for locating failure of 5G private line service
CN114900240A (en) * 2022-06-13 2022-08-12 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium
CN114900240B (en) * 2022-06-13 2023-10-20 中国联合网络通信集团有限公司 Data processing method, device, equipment and storage medium
CN117278889A (en) * 2023-11-14 2023-12-22 武汉长光科技有限公司 ONU service scheduling method, ONU service scheduling device, OLT and storage medium
CN117278889B (en) * 2023-11-14 2024-02-27 武汉长光科技有限公司 ONU service scheduling method, ONU service scheduling device, OLT and storage medium

Also Published As

Publication number Publication date
CN111083581B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN111083581B (en) ONU service transmission configuration adjustment method, device and equipment
CN108293009B (en) Software defined data center and scheduling method of service cluster in software defined data center
EP3175582B1 (en) Automated flow devolvement in an aggregate flow environment
CN110519119B (en) Bandwidth management method and device based on video network and storage medium
US20060013139A1 (en) Traffic management for a passive optical network terminal
US20030177215A1 (en) Discovery technique for networks
CN111565323B (en) Flow control method and device, electronic equipment and storage medium
JP2004260832A (en) Method for providing service with guaranteed quality of service in ip access network
CN101102210A (en) A distributed controllable multicast system of passive optical network and its implementation method
JP2007274694A (en) Method and system for controlling service quality of ip packet in passive optical network system
US8335217B2 (en) Method and apparatus for filtering multicast port identifier in gigabit-capable passive optical network (GPON) system
KR101786620B1 (en) Method, apparatus and computer program for subnetting of software defined network
CN111211936B (en) Data processing method and device based on network state
US8923330B2 (en) Using dynamic burst size metric to mark data
CN110035297B (en) Video processing method and device
CN114363739A (en) Service application method and device based on optical service unit
CN111614480A (en) Service detection method, device and storage medium
WO2023274165A1 (en) Parameter configuration method and apparatus, controller, communication device, and communication system
KR100829507B1 (en) Method and system for providing qos on vlan interface
CN100512186C (en) Device and method for realizing IPV6 multicast filtering in EPON network via hardware loop mode
CN108574609A (en) A kind of transmitting, monitoring method and apparatus
CN2912126Y (en) Device for realizing IPV6 cluster broadcast filtration in EPON network by means of hardware loop
CN107465742B (en) Distribution equipment and method for realizing asymmetric service by UDP tunnel technology
CN101098287B (en) Apparatus and method for implementing IPV6 multicast filtering on EPON using hardware extended mode
CN110139061B (en) Video stream screen display method and device

Legal Events

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