CN107547448B - Flow statistical method and system - Google Patents

Flow statistical method and system Download PDF

Info

Publication number
CN107547448B
CN107547448B CN201710358150.3A CN201710358150A CN107547448B CN 107547448 B CN107547448 B CN 107547448B CN 201710358150 A CN201710358150 A CN 201710358150A CN 107547448 B CN107547448 B CN 107547448B
Authority
CN
China
Prior art keywords
pon
mirror image
mirror
message
onu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710358150.3A
Other languages
Chinese (zh)
Other versions
CN107547448A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710358150.3A priority Critical patent/CN107547448B/en
Publication of CN107547448A publication Critical patent/CN107547448A/en
Application granted granted Critical
Publication of CN107547448B publication Critical patent/CN107547448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a flow statistical method and a system, wherein O L T distributes corresponding mirror images V L AN for ONU required to be detected, mirrors the message of each ONU required to be detected to different mirror images V L AN, and a message statistical device identifies the mirror image message from different ONUs according to the mirror images V L AN and performs flow statistics.

Description

Flow statistical method and system
Technical Field
The present invention relates to the field of network technologies, and in particular, to a traffic statistical method and system.
Background
Ethernet Passive Optical Network (EPON) is an Ethernet-based Passive Optical Network (PON) technology, EPON has the advantages of both Ethernet and PON and is becoming a popular technology in the field of Optical access networks, EPON includes an Optical line terminal (Optical L INeTerminal, O L T) at the Network end and an Optical Network Unit (ONU) at the client end.
The PON chip in O L T is used for forwarding messages between Ethernet and PON, the PON chip is provided with two ports of a PON port and a Network Node Interface (NNI), wherein the PON port is connected with the ONU, and the NNI is connected with an external user panel port.
The message mirroring technology is a technology of copying a message to a port connected to a data monitoring device, so that a user can analyze the copied message by using the data monitoring device, thereby monitoring and troubleshooting a network. The message mirroring technology can be applied to monitoring and counting the traffic in the EPON.
The traditional message mirroring technology is realized on a single PON chip, and only a message corresponding to one PON port can be copied to another PON port on one PON chip, and the copied mirrored message is acquired on an ONU connected with the other PON port. However, the distribution positions of the ONUs are scattered and uncertain, and the message mirroring technology is not suitable for network maintenance and management personnel to perform centralized traffic statistics on the network.
However, in the PON system, when a message sent by an ONU goes upward from the PON chip to the switch chip, the LL ID attribute in the message is lost, and then the mirror message obtained on the user panel port can only distinguish which PON chip the message is copied from, and cannot accurately distinguish which ONU the message corresponds to.
In summary, the current packet mirroring technology in the PON system is not suitable for performing traffic statistics on the PON.
Disclosure of Invention
Embodiments of the present invention provide a flow statistics method and system, which can accurately mirror a PON packet, and can forward the mirrored PON packet to an assigned port, so as to facilitate monitoring of the PON packet.
The specific technical scheme of the embodiment is as follows:
a first aspect provides a PON message mirroring method, which is characterized by comprising:
the method comprises the steps of allocating a first mirror image V LL 1AN corresponding to a first LL ID of a first ONU by O L T, allocating a second mirror image V LL 5AN corresponding to a second LL 0ID of a second ONU by O LL 2T, acquiring a first mirror image PON message with a first LL 3ID and a first mirror image V LL 7AN by O LL 6T, acquiring a second mirror image PON message with a second LL 4ID and a second mirror image V LL 9AN by O LL 8T, removing a first L L ID of the first mirror image PON message and a second LL ID of the second mirror image PON message by O L T, broadcasting the first mirror image message with the first mirror image V L AN by O L T, broadcasting the second mirror image message with the second mirror image V L by O35T, and sending the first mirror image V LL AN and the second mirror image VLAN which are connected to a traffic flow statistic device and allow the first mirror image and the second mirror image VLAN to forward;
the flow counting device counts the messages sent by the first ONU according to the number of the received first mirror image messages with the first mirror image V L AN, counts the messages sent by the second ONU according to the number of the received second mirror image messages with the second mirror image V L AN, and counts the flow of the first ONU and the flow of the second ONU in a preset time.
A second aspect provides a traffic statistic system, which includes a plurality of ONUs, O L T and a traffic statistic device,
the CPU of O L T allocates a first image V L AN corresponding to the first LL ID of the first ONU, a second image V L AN corresponding to the second LL ID of the second ONU;
the method comprises the steps that a PON chip of O L T acquires a first mirror image PON message with a first LL ID and a first mirror image V L AN, acquires a second mirror image PON message with a second LL ID and a second mirror image V L AN, removes a first LL ID of the first mirror image PON message and removes a second LL ID of the second mirror image PON message, broadcasts the first mirror image message with the first mirror image V L AN, and broadcasts the second mirror image message with the second mirror image V L AN;
the switching chip of O L T sends a first mirror image message with a first mirror image V L AN and a second mirror image message with a second mirror image V L AN through AN Ethernet port which is connected with a flow statistic device and allows the first mirror image V L AN and the second mirror image V L AN to forward;
the flow counting device counts the messages sent by the first ONU according to the number of the received first mirror image messages with the first mirror image V L AN, counts the messages sent by the second ONU according to the number of the received second mirror image messages with the second mirror image V L AN, and counts the flow of the first ONU and the flow of the second ONU in a preset time.
According to the traffic statistic method and system provided by the embodiments of the present invention, by allocating, by O L T, a first mirror V LL AN corresponding to a first LL ID of a first ONU and a second mirror V LL AN corresponding to a second LL ID of a second ONU, after O LL T obtains a first mirror PON message with a first LL ID and a first mirror V LL AN and a second mirror PON message with a second LL LL ID and a second mirror V LL AN, removing the first LL L ID of the first mirror PON message and removing the second LL ID of the second mirror PON message, and then broadcasting the first mirror PON message with the first mirror V L AN and the second mirror PON message with the second mirror V L AN, a traffic statistic device connected to O L T can accurately collect traffic corresponding VLAN traffic and traffic of all ONUs, and it is certainly not necessary to accurately collect traffic corresponding VLAN traffic of all the mirror ONUs.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic structural diagram of O L T;
fig. 2 is a flowchart of a first embodiment of a traffic statistic method according to the present invention;
fig. 3 is a schematic diagram illustrating forwarding of a mirror PON message in the traffic statistics method according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an optical line terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a first embodiment of a traffic statistic system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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.
In an EPON system, O L T, which is a device located on the network side, needs to provide optical network connections for a plurality of ONU devices, because the number of ports of one PON chip is limited, a plurality of PON chips are generally configured in O L T, and the plurality of PON chips are connected together by an exchange chip, fig. 1 is a schematic structural diagram of O L T, as shown in fig. 1, O L T includes an exchange chip 11 and a plurality of PON chips 12, each PON chip 12 includes a plurality of PON ports and a plurality of NNIs, wherein the NNIs are connected to the exchange chip 11, and the PON ports are used to provide connection to the ONU devices.
The message mirroring technology is a common technology in the process of managing and maintaining a PON network, and when the message mirroring technology is applied to perform traffic statistics on the network, a maintenance and management person of the network connects a traffic statistics device to the PON system and copies a PON message whose traffic needs to be counted to a port connected to the traffic statistics device, so that the traffic of each ONU can be determined by the attribute of the received PON message. However, when the existing message mirroring technology is applied to traffic statistics, centralized monitoring or accurate monitoring cannot be realized. Based on the problems existing in the current traffic statistical method, embodiments of the present invention provide a traffic statistical method, which is used to solve the problem of statistics on the traffic of PON messages in a PON system, and simultaneously implement accurate statistics and centralized statistics on traffic statistics.
Fig. 2 is a flowchart of a first embodiment of a traffic statistical method according to an embodiment of the present invention, and as shown in fig. 2, the method according to this embodiment includes:
at step S201, O L T allocates a first image V L AN corresponding to the first LL ID of the first ONU.
The purpose of the flow statistics in the PON is to count the flow of PON messages received and sent by each ONU, and judge whether the ONU is in a normal working state according to the flow condition of each ONU.
The flow statistics device is connected to an O L T arranged on a network side, but as the O L T is structured as shown in FIG. 1, a plurality of Ethernet ports are arranged on an exchange chip of O L T, and the Ethernet ports are connected with the PON chip and are used as user panel ports.
After analyzing the existing traffic statistical method, it can be found that, in the existing traffic statistical method, when mirroring the PON message, copying of the message can only be completed inside the PON chip or the switch chip, which results in some attribute loss of the message or limited forwarding of the message, therefore, in this embodiment, a Virtual L oral area network (V L AN) manner is considered to be used for mirroring and forwarding the PON message, thereby avoiding the problem of attribute loss and limited forwarding in the message.
First, O L T assigns a first image V LL 0 AN. corresponding to a first LL ID of a first ONU, where the first ONU has a unique first LL 2 LL 3 ID., and when O L T needs to perform traffic statistics on the first ONU, the first ONU is assigned AN independent V L AN, that is, the first image V L AN. and the first image V L AN are dedicated to transmit a first image packet corresponding to the first ONU, so O L T needs to add network paths from the first ONU to ports connected to the traffic statistics apparatus to the first image V L AN, where O L T adds at least a PON port of the first ONU connected to a PON chip of the OLT to the first image VLAN.
At step S202, O L T allocates a second image V L AN corresponding to the second LL ID of the second ONU.
O L T assigns AN independent V L AN to each ONU requiring traffic statistics, where each V L0 AN is associated with the L1L 2ID of the ONU requiring traffic statistics, O L3T may also assign a second mirror V L6 AN. corresponding to the second L4L 5ID of the second ONU-the second ONU is any ONU other than the first ONU connected to O L7T-the second ONU has a unique second L L ID. -when the O L T needs to traffic-count the second ONU-AN independent V L AN is assigned to the second ONU, i.e. a second mirror V L AN. VLAN L AN. is dedicated to transmit the second mirror message corresponding to the second ONU, then the OLT needs to add the network paths from the second ONU to the port connecting the traffic statistics apparatus to the second mirror VLAN, where the OLT adds at least the port connecting the second ONU with the PON chip to the second mirror VLAN.
In step S203, O L T obtains a first mirror PON packet with a first LL ID and a first mirror V L AN.
In step S204, O L T obtains a second mirror PON packet with a second LL ID and a second mirror V L AN.
After the configuration of the first V L AN and the second V L AN is completed, the O L T may perform statistics on the traffic of the first ONU and the second ONU, where the O L T needs to perform statistics on PON messages received or transmitted by the first ONU from a PON port connected to a PON chip of the O L T, the PON messages having the first LL ID corresponding to the first ONU, and PON messages received or transmitted by the second ONU from a PON port connected to a PON chip of the O L T, the PON messages having the second LL ID corresponding to the second ONU.
In step S201 and step S202, a first LL ID of the first ONU and a second LL ID of the second ONU are respectively allocated with a corresponding first mirror image V LL AN and a second mirror image V LL AN, and the first mirror image V L AN and the second mirror image V L AN serve to transmit a mirror image message corresponding to the first ONU and a mirror image message corresponding to the second ONU, so that when performing traffic statistics on a PON message received or transmitted by the first ONU, the PON message corresponding to the first ONU is mirrored first, then AN identifier of the first mirror image V L AN is added to the mirrored message to generate a first mirror image PON message, and similarly, a PON message corresponding to the second ONU is mirrored, then a PON identifier of the second mirror image V L AN is added to the mirrored message to generate a first mirror image PON message, and a second mirror image message is added with a first PON message ID 639 AN, a PON message with a second mirror image ID 9AN and a second PON message with a second mirror image ID L, a second mirror image V462 AN ID and a second mirror image V L AN ID.
In step S205, O L T removes the first LL ID of the first mirrored PON message and removes the second LL ID of the second mirrored PON message.
The first mirror PON message simultaneously has a first LL ID and a first mirror V L AN, and both the first L0 ID and the first mirror V L AN uniquely correspond to the first ONU, and the O L T has already established a first mirror V L AN dedicated for transmitting the first mirror PON message, so that the O L T can remove the first L1 ID. in the first mirror PON message after acquiring the first mirror PON message, and similarly, the O L T can also remove the second LL ID. in the second mirror PON message and remove the first mirror PON message with the first LL ID, which is referred to as a first mirror message, and the second mirror PON message with the second LL ID removed is referred to as a second mirror message.
In step S206, the O L T broadcasts the first mirror image packet with the first mirror image V L AN, broadcasts the second mirror image packet with the second mirror image V L AN, and sends the first mirror image packet with the first mirror image V L AN and the second mirror image packet with the second mirror image V L AN through the ethernet port connected to the traffic statistic device.
The first mirror V L AN is dedicated to transmitting the first mirror message, and the network path from the first ONU to the port connected to the traffic statistic apparatus all adds the first mirror V L AN., so the O L T can broadcast the first mirror message with the first mirror V L AN, and thus the first mirror message will be transmitted to the traffic statistic apparatus along the port from the first ONU to the port connected to the traffic statistic apparatus through the ports added to the first mirror V L AN.
Similarly, the second mirror V L AN is dedicated to transmitting the second mirror message, and the network path from the second ONU to the port connected to the traffic statistic apparatus is added with the second mirror V L AN., so the O L T can broadcast the second mirror message with the second mirror V L AN, and thus the second mirror message will be transmitted to the traffic statistic apparatus along the port from the second ONU to the port connected to the traffic statistic apparatus through the ports already added with the second mirror V L AN.
Step S207, the flow counting device counts the messages sent by the first ONU according to the number of the received first mirror image messages with the first mirror image V L AN, counts the messages sent by the second ONU according to the number of the received second mirror image messages with the second mirror image V L AN, and counts the flow of the first ONU and the flow of the second ONU in a preset time.
The method comprises the steps that after a flow counting device receives a first mirror image message with a first mirror image V L AN, the first V L AN corresponds to a first ONU, and the flow counting device is equivalent to receiving PON messages sent or received by the first ONU.
The method comprises the steps that after a flow counting device receives a second mirror image message with a second mirror image V L AN, the second V L AN corresponds to a second ONU, and the flow counting device is equivalent to receiving PON messages sent or received by the second ONU.
To facilitate centralized traffic statistics, the traffic statistics device may be connected to the switch chip of O L T, and specifically, may be connected to the user panel port of O L T.
Because each ONU with the flow to be counted is allocated with the corresponding mirror image V L AN, the flow counting device can identify the mirror image messages of different ONUs according to different mirror images V L AN, thereby realizing the flow counting of different ONUs, realizing the centralized flow counting, and accurately determining the ONU with the flow to be counted according to the mirror image V L AN.
In the traffic statistical method provided by this embodiment, by allocating, by O L T, a first mirror V LL AN corresponding to a first LL ID of a first ONU and a second mirror V LL AN corresponding to a second LL ID of a second ONU to the first ONU, after O LL T obtains a first mirror PON message with a first LL ID and a first mirror V LL AN and a second mirror PON message with a second LL PON 6 LL ID and a second mirror V968 AN, removing the first LL ID of the first mirror PON message and removing the second LL ID of the second mirror PON message, and then broadcasting the first mirror PON message with the first mirror V L AN and the second mirror PON message with the second mirror V L AN, a traffic statistical device connected to the O L T can collect traffic accurately corresponding to the ONUs in a predetermined time, and the respective flows of the first mirror PON message and the second mirror PON message are collected accurately.
In the traffic statistical method shown in fig. 2, after the corresponding mirror image V L AN is allocated to each ONU, when the PON message corresponding to each ONU is mirrored, there are two different message mirror image manners, which are described below separately.
For the first ONU, in step S203, the O L T obtains a first mirror PON message with a first LL ID and a first mirror V L AN, and includes receiving the first PON message with the first LL ID through a PON port connected to the first ONU, determining that the first LL ID and message feature information of the first PON message match a first mirror entry of the PON port connected to the first ONU, copying the first PON message with the first LL ID according to the first mirror entry, adding the first mirror V L AN, and generating the first mirror PON message with the first LL ID and the first mirror V L AN.
In the message mirroring mode, a rule for mirroring a message corresponding to a first ONU is issued to a PON port connected to O L T and the first ONU, each time the first ONU receives and transmits the PON message, the PON port connected to O L T and the first ONU receives the first PON message with the first L ID, the message mirroring rule stored in the PON port comprises a first mirroring table item, the first mirroring table item comprises the first L1L ID and the first V L AN, therefore, when the PON port connected to the first ONU receives the first PON message with the first LL ID, the message mirroring rule is inquired, the first LL ID in the first PON message corresponds to the first mirroring table item, at this time, the PON port connected to the first ONU in O L T copies the first PON message with the first mirroring LL ID, and adds the first VLAN 4ID and the first PON message to finally generate the first PON message with the first VLAN LL ID and the first PON message.
The first mirror image table entry may further include a corresponding relationship between the first LL ID, the first V L AN, and the message characteristic information of the first PON message, when a PON port connected to the first ONU receives the first PON message with the first LL ID, the first PON message is matched with the first LL ID in the first PON message, and the message characteristic information of the first PON message with the first LL ID is matched with the message characteristic information in the first mirror image table entry, and the first PON message with the first LL ID is copied only when the message characteristic information of the first PON message with the first LL ID is consistent with the message characteristic information in the first mirror image table entry.
For the second ONU, in step S204, the obtaining, by the O L T, the second mirror PON message with the second LL ID and the second mirror V L AN includes receiving, through a PON port connected to the second ONU, the second mirror PON message with the second LL ID and the second mirror V L AN.
In this message mirroring manner, a rule for mirroring a message corresponding to a second ONU is issued to the second ONU, that is, the second ONU completes mirroring of the PON message, each time the second ONU receives and transmits the PON message, the second ONU completes mirroring of the PON message according to the message mirroring rule issued by O L T, the message mirroring rule in the second ONU includes a second mirroring table entry including a correspondence relationship between a second LL ID and a second V LL AN, when the second ONU receives or transmits a second PON message with a second LL ID, the message mirroring rule is queried, it is determined that a second LL 2ID in the second PON message corresponds to a second mirroring table entry, at this time, the second ONU copies the second PON message with a second V LL ID, and adds a second mirroring V4 to the second PON message to finally generate a second PON message with a second LL ID and a second V L AN, and after the second PON message is generated, the PON message is connected to a second ONU with a second mirroring V8296 via a second VLAN port.
The second mirror image table entry may further include a corresponding relationship between the second LL ID, the second V L AN, and the message characteristic information of the second PON message, when the second ONU receives or transmits the second PON message with the second LL ID, the second PON message is matched with the second LL ID in the second PON message, and when the message characteristic of the second PON message with the second LL ID is consistent with the message characteristic information in the second mirror image table entry, the second PON message with the second LL ID is copied.
In the above two different mirroring modes for the PON messages corresponding to the first ONU and the second ONU, mirroring of the PON messages corresponding to the ONUs can be achieved, and in practical applications, different message mirroring modes can be adopted for different ONUs according to the capabilities and configurations of different ONUs and PON ports.
Further, in the embodiment shown in fig. 2, after O L T allocates the first mirror image V LL AN corresponding to the first LL ID of the first ONU, and before O LL T obtains the first mirror image PON packet with the first L L ID and the first mirror image V L AN, O L T may further set a first mirror image path, where the first mirror image path is a network path from the first ONU to the traffic statistic apparatus, and the first mirror image packet needs to be transmitted to the traffic statistic apparatus through the first mirror image path.
After the first mirror image path is set, O L T generates a first mirror image table entry, and configures the first mirror image table entry to the PON port connected to the first ONU, that is, to the PON chip connected to the first ONU.
Similarly, in the embodiment shown in fig. 2, after O L T allocates the second mirror image V LL AN corresponding to the second LL ID of the second ONU, and before O LL T obtains the second mirror image PON message with the second L L ID and the second mirror image V L AN, O L T may further set a second mirror image path, where the second mirror image path is a network path of the second ONU to the traffic statistic device, and the second mirror image message needs to be transmitted to the traffic statistic device through the second mirror image path.
And after a second mirror image path is set, O L T generates a second mirror image table item, a matching item of the second mirror image table item comprises a second LL ID and preset message characteristic information, and actions of the second mirror image table item comprise copying and adding a second mirror image V L AN., and then O L T sends the second mirror image table item to a second ONU through a PON port connected with the second ONU.
Fig. 3 is a schematic diagram illustrating forwarding of a mirror PON message in a traffic statistics method according to an embodiment of the present invention, as shown in fig. 3, each ethernet port of an exchange chip 31 of an O L T device is connected to one NNI of a PON chip, each PON chip of the exchange chip 31 has multiple PON ports, each PON port can be connected to multiple ONUs, fig. 3 illustrates an implementation of the present application by taking a PON port 321 of one PON chip 32 as an example, and the PON port 321 in fig. 3 is connected to an ONU 33 and an ONU 34.
The CPU (not shown in the figure) of the O L T device sets the mirror path of the mirror packet of the ONU 33 to be PON port 321- > NNI 323- > ethernet port 312- > ethernet port 314, where the ethernet port 314 is used to connect to a traffic statistics device (not shown), and the CPU of the O L T device adds the PON port 321, NNI 323, ethernet port 312, and ethernet port 314 to the mirror V L AN 10.
The CPU of the O L T device generates a mirror image table entry of a mirror image V L AN10, wherein the matching entry comprises LL ID 330 of the ONU 33 and message characteristic information of PON messages of the ONU, and the action comprises copying the PON messages with LL ID 330, adding a mirror image V L AN10, and configuring the mirror image table entry of a mirror image V L AN10 in the PON port 321 by the CPU of the O L T device.
The CPU of the O L T device sets the mirror path of the mirror image message of the ONU 34 to be PON port 321- > NNI324- > Ethernet port 313- > Ethernet port 314. the CPU of the O L T device adds the PON port 321, the NNI324, the Ethernet port 314 and the Ethernet port 314 into the mirror image V L AN 20. the CPU of the O L T device generates the mirror image table item of the mirror image V L AN 20, wherein the matching item comprises LL ID 340 of the ONU 34 and the message characteristic information of the PON message of the ONU 34. the action comprises copying and adding the mirror image V L AN 20. the CPU of the O L device sends the mirror image table item of the mirror image V L AN 20 to the PON chip 32. the PON chip 32 sends the mirror image table item of the mirror image V L AN 20 to the ONU 34 through the PON port 321.
ONU 33 sends PON message 331. PON port 321 of PON chip 32 of O L T equipment receives PON message 331. PON chip 32 finds LL ID 330 and message characteristic information of PON message 331 to match matching items of mirror image table entries of mirror image V LL 0AN 10 according to table entry priority, then PON message 331 is copied according to actions like mirror image table entries of V LL 1AN 10, mirror image V LL 2AN10 is added, mirror image PON message 332 with L L ID 330 and mirror image V L AN10 is generated, PON chip 32 removes LL ID 330 of the mirror image PON message 332, MAC table entries matching destination MAC addresses with mirror image V L AN 20 are not found, and broadcast in mirror image V L AN 10. since PON port 321 is AN ingress port, mirror image message with mirror image V L AN10 is only sent to Ethernet port of exchange chip 31 through NNI 323 of PON chip 32. exchange chip 31 receives VLAN message with 312, and sends Ethernet message with VLAN traffic statistics to VLAN device through port 314 except ingress port, thereby sending mirror image message with VLAN 10 to the Ethernet traffic statistics device.
The PON chip 32 finds that LL ID 330 and message characteristic information of the PON message 331 match a matching entry of a mirror entry of the mirror V L AN10 according to the entry priority, copies the PON message 331 according to AN action of the mirror entry like V L AN10, adds the mirror V L AN10, generates a mirror PON message 332 with L ID 330 and mirror V L AN10, removes L ID 330 of the mirror PON message 332 by the PON chip 32, does not find a MAC entry matching the mirror V L AN 20 and a destination MAC address, broadcasts in the mirror V L AN10, because the PON port 321 is AN ingress port, the mirror message with the mirror V L AN10 sends a PON message 341 only through AN NNI 323 of the PON chip 32, finds that LL ID 340 and message characteristic information of the message 341 match a matching entry of the mirror V L AN 20, copies the PON message 341 according to AN action like V L AN 20, adds the mirror V8945, and generates a PON message 89342 with mirror V4632.
The PON port 321 of the PON chip 32 receives the PON message 341 and the mirror PON message 342, the PON chip 32 finds a matched MAC entry according to a destination MAC address of the PON message 341, finds that the destination MAC address of the PON message 341 corresponds to the NNI322, strips off the LL ID 340 of the PON message 341, and sends the ethernet message to the ethernet port 311 of the switch chip through the NNI322, which is a conventional PON message forwarding process.
The flow counting device counts and monitors the messages sent by the ONU 33 according to the number of the mirror image messages with the mirror image V L AN10, counts and monitors the messages sent by the ONU 34 according to the number of the received mirror image messages with the mirror image V L AN 20, and counts the flow of the ONU 33 and the flow of the ONU 34 in a preset time.
Fig. 4 is a schematic structural diagram of an optical line terminal according to an embodiment of the present invention, where the optical line terminal 41 includes a CPU, a switch chip, and a PON chip of the optical line terminal in fig. 3. As shown in fig. 4, the optical line terminal 41 includes a CPU 411, a PON chip 412, and a switch chip 413.
The CPU 411 allocates a first image V L AN corresponding to the first LL ID of the first ONU and a second image V L AN corresponding to the second LL ID of the second ONU.
The PON chip 412 obtains a first mirror PON message with a first LL ID and a first mirror V L AN, obtains a second mirror PON message with a second LL ID and a second mirror V L AN, removes the first LL ID of the first mirror PON message and removes the second LL ID of the second mirror PON message, broadcasts the first mirror PON message with a first mirror V L AN, and broadcasts the second mirror PON message with a second mirror V L AN.
The switch chip 413 sends the first mirror image packet with the first mirror image V L AN and sends the second mirror image packet with the second mirror image V L AN through AN ethernet port connected to the traffic statistic device and allowing the first mirror image V L AN and the second mirror image V L AN to forward.
The PON chip 412 can receive a first PON message with a first LL ID through the PON port connected to the first ONU, and determine that the first LL ID and the message characteristic information of the first PON message match a first mirror table entry of the PON port connected to the first ONU.
The PON chip 412 may copy the first PON message with the first LL ID according to the first mirror image table entry, and add the first mirror image V L AN, to generate the first mirror image PON message with the first LL ID and the first mirror image V L AN.
The PON chip 412 may receive a second image PON message with a second LL ID and a second image V L AN through a PON port connected to a second ONU.
The CPU 411 sets a first mirror image path, connects the PON chip 412 to the PON port of the first ONU, connects the PON chip 412 to the network node interface NNI on the first mirror image path, connects the PON chip 412 to the ethernet port of the switch chip 413 connected to the NNI on the first mirror image path, and adds the ethernet port of the switch chip 413 connected to the traffic statistic apparatus to the first mirror image V L AN, generates a first mirror image entry, and configures the first mirror image entry in the PON chip 412 to connect to the PON port of the first ONU.
The CPU 411 sets a second mirror image path, a PON port of a second ONU is connected to the PON chip 412, AN NNI of the PON chip 412 on the second mirror image path, AN Ethernet port of a switching chip 413 connected with the PON chip 412 on the second mirror image path through the NNI, and the Ethernet port of the switching chip 413 connected with a flow statistic device are added into a second mirror image V L AN;
the PON chip 412 is further configured to send the second mirror table entry to the second ONU through a PON port connected to the second ONU.
The O L T provided in this embodiment is used to implement the technical scheme of O L T in the traffic statistic method shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a first embodiment of a traffic statistic system according to an embodiment of the present invention, and as shown in fig. 5, the traffic statistic system according to this embodiment includes:
o L T51, a traffic statistic device 52, and a first ONU 53 and a second ONU 54, wherein the number of ONUs is not limited in fig. 5.
As shown in fig. 4, the specific structure of the O L T51 is that the traffic counting device 52 counts the number of the messages sent by the first ONU 53 according to the number of the received first mirrored PON messages with the first mirrored V L AN, and counts the number of the messages sent by the second ONU 54 according to the number of the received second mirrored PON messages with the second mirrored V L AN, and counts the traffic of the first ONU 43 and the traffic of the second ONU 44 within a predetermined time.
The traffic statistic system provided in this embodiment is used to implement the technical solution of the traffic statistic method shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of traffic statistics, the method comprising:
the optical line terminal O L T allocates a first mirrored virtual local area network V L AN corresponding to a first logical link identification LL ID of the first optical network unit ONU;
the O L T assigning a second image V L AN corresponding to a second LL ID of a second ONU;
the O L T acquires a first mirror image Passive Optical Network (PON) message with the first LL ID and the first mirror image V L AN;
the O L T acquires a second mirror PON message with the second LL ID and the second mirror V L AN;
the O L T removes a first LL ID of the first mirrored PON message and removes a second LL ID of the second mirrored PON message;
the O L T broadcasts the first mirror image message with the first mirror image V L AN, broadcasts the second mirror image message with the second mirror image V L AN, and sends the first mirror image message with the first mirror image V L AN and the second mirror image V L AN through AN Ethernet port which is connected with a flow statistic device and allows forwarding of the first mirror image V L AN and the second mirror image V L AN;
the flow counting device counts the messages sent by the first ONU according to the number of the received first mirror image messages with the first mirror image V L AN, counts the messages sent by the second ONU according to the number of the received second mirror image messages with the second mirror image V L AN, and counts the flow of the first ONU and the flow of the second ONU in a preset time.
2. The method of claim 1, wherein the O L T obtaining the first mirror PON message with the first LL ID and the first mirror V L AN comprises:
receiving a first PON message with the first LL ID through a PON port connected with the first ONU;
determining that the first LL ID and the message feature information of the first PON message are matched with a first mirror image table entry of a PON port connected with the first ONU;
copying the first PON message with the first LL ID according to the first mirror image table entry, adding the first mirror image V L AN, and generating the first mirror image PON message with the first LL ID and the first mirror image V L AN.
3. The method of claim 1, wherein the O L T obtaining the second mirror PON message with the second LL ID and the second mirror V L AN comprises:
and receiving a second mirror image PON message with the second LL ID and the second mirror image V L AN through a PON port connected with the second ONU.
4. The method of claim 2, wherein before the O L T obtains the first mirror PON packet with the first LL ID and the first mirror V L AN, the method further comprises:
the O L T sets a first mirror image path, a PON port connected to the first ONU, a network node interface NNI of a PON chip connected to the PON port of the first ONU on the first mirror image path, AN ethernet port of a switching chip connected to the NNI of the PON chip on the first mirror image path, and AN ethernet port connected to the traffic statistics apparatus are added to the first mirror image V L AN;
generating the first mirror image table entry; and configuring the first mirror image table item to a PON port connected with the first ONU.
5. The method of claim 3, wherein before the O L T obtains a second mirror PON message with the second LL ID and the second mirror V L AN, the method further comprises:
the O L T sets a second mirror image path, and adds a PON port connected to the second ONU, AN NNI of a PON chip connected to the PON port of the second ONU on the second mirror image path, AN ethernet port of AN exchange chip connected to the NNI of the PON chip on the second mirror image path, and AN ethernet port connected to the traffic statistics apparatus into the second mirror image V L AN;
generating a second mirror image table item, wherein a matching item of the second mirror image table item comprises the second LL ID and the preset message characteristic information, and the action of the second mirror image table item comprises copying and adding the second mirror image V L AN;
and sending the second mirror image table item to the second ONU through a PON port connected with the second ONU.
6. A traffic statistic system, which comprises a plurality of optical network units ONU, an optical line terminal O L T and a traffic statistic device,
the CPU of the O L T allocates a first mirror image virtual local area network V L AN corresponding to a first logical link identification LL ID of a first ONU, allocates a second mirror image V L AN corresponding to a second LL ID of a second ONU;
the PON chip of the O L T acquires a first mirror Passive Optical Network (PON) message with the first LL ID and the first mirror V L AN, acquires a second mirror PON message with the second LL ID and the second mirror V L AN, removes the first LL ID of the first mirror PON message and removes the second LL ID of the second mirror PON message, broadcasts the first mirror PON message with the first mirror V L AN, and broadcasts the second mirror PON message with the second mirror V L AN;
the switching chip of the O L T sends a first mirror image message with a first mirror image V L AN and sends a second mirror image message with a second mirror image V L AN through AN ethernet port which is connected to the traffic statistic device and allows the forwarding of the first mirror image V L AN and the second mirror image V L AN;
the flow counting device counts the messages sent by the first ONU according to the number of the received first mirror image messages with the first mirror image V L AN, counts the messages sent by the second ONU according to the number of the received second mirror image messages with the second mirror image V L AN, and counts the flow of the first ONU and the flow of the second ONU in a preset time.
7. The system of claim 6, wherein the obtaining of the first mirror PON message with the first LL ID and the first mirror V L AN by the O L T PON chip comprises:
the PON chip receives a first PON message with the first LL ID through a PON port connected with the first ONU;
the PON chip determines that the first LL ID and the message characteristic information of the first PON message are matched with a first mirror image table entry of a PON port connected with the first ONU;
the PON chip copies the first PON message with the first LL ID according to the first mirror image table entry, adds the first mirror image V L AN, and generates the first mirror image PON message with the first LL ID and the first mirror image V L AN.
8. The system of claim 6, wherein the obtaining of the second mirror PON message with the second LL ID and the second mirror V L AN by the O L T PON chip comprises:
and the PON chip receives a second mirror PON message with the second LL ID and the second mirror V L AN through a PON port connected with the second ONU.
9. The system of claim 7,
the CPU is further configured to set a first mirror image path, connect the PON port of the first ONU to the PON chip, connect the network node interface NNI of the PON chip on the first mirror image path, connect the Ethernet port of the switching chip to the NNI of the PON chip on the first mirror image path, add the Ethernet port connected to the traffic statistic apparatus to the switching chip to the first mirror image V L AN, generate the first mirror image table entry, and configure the first mirror image table entry on the PON chip to connect the PON port of the first ONU.
10. The system of claim 8,
the CPU is also used for setting a second mirror image path, connecting a PON port of the second ONU on the PON chip, adding the NNI of the PON chip on the second mirror image path, the Ethernet port of the exchange chip connected with the NNI of the PON chip on the second mirror image path, and the Ethernet port connected with the flow statistic device on the exchange chip into the second mirror image V L AN;
the PON chip is further configured to send the second mirror image table entry to the second ONU through a PON port connected to the second ONU.
CN201710358150.3A 2017-05-19 2017-05-19 Flow statistical method and system Active CN107547448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710358150.3A CN107547448B (en) 2017-05-19 2017-05-19 Flow statistical method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710358150.3A CN107547448B (en) 2017-05-19 2017-05-19 Flow statistical method and system

Publications (2)

Publication Number Publication Date
CN107547448A CN107547448A (en) 2018-01-05
CN107547448B true CN107547448B (en) 2020-07-28

Family

ID=60966256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710358150.3A Active CN107547448B (en) 2017-05-19 2017-05-19 Flow statistical method and system

Country Status (1)

Country Link
CN (1) CN107547448B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822128B (en) * 2020-12-30 2023-04-07 瑞斯康达科技发展股份有限公司 PON system message mirroring method and PON system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101516046B (en) * 2009-03-18 2012-12-19 讯达康通讯设备(惠州)有限公司 Transmission method of Ethernet passive optical network
CN102064955B (en) * 2009-11-17 2014-01-01 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit
US9246703B2 (en) * 2010-06-08 2016-01-26 Brocade Communications Systems, Inc. Remote port mirroring
CN102131133A (en) * 2011-03-04 2011-07-20 讯达康通讯设备(惠州)有限公司 Ethernet passive optical network (EPON) web network management method and system
CN103152291B (en) * 2013-02-21 2016-03-02 杭州华三通信技术有限公司 A kind of Remote Switched Port Analyzer implementation method based on TRILL network and equipment
CN103744717A (en) * 2013-12-02 2014-04-23 上海斐讯数据通信技术有限公司 ONU configuration management method based on message queue in EPON system
JP6461747B2 (en) * 2015-08-20 2019-01-30 日本電信電話株式会社 Communication method and communication system
CN105591956B (en) * 2015-11-04 2019-03-15 新华三技术有限公司 Flow control methods and equipment based on User-Network Interface UNI

Also Published As

Publication number Publication date
CN107547448A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
KR100563657B1 (en) Vlan aware shared lan emulation method and device with manageable llid in epon
CN108566451B (en) Message processing method, access controller and network node
JP2005039825A (en) Multicast transfer method in gem mode of gigabit passive optical subscriber network, and frame processing method therefor
EP1773008A1 (en) Method and system for implementing virtual router redundancy protocol on a resilient packet ring
CN100407704C (en) Method of dynamically learning address on MAC layer
US20220060344A1 (en) Method for indicating multicast forwarding entry and device
CN110855809B (en) Message processing method and device
US9270480B1 (en) Systems and methods for Ethernet-based management of optical networks using OMCI
US20060198408A1 (en) Method of restoring setting values by managing pon network topology table in device accommodating plurality of EPON ports
US9906380B2 (en) Virtualization method for an access network system and its management architecture
CN110753010B (en) Message forwarding method and device
US20110110372A1 (en) Systems and methods to perform hybrid switching and routing functions
WO2016188196A1 (en) Method and device for detecting abnormal pon terminal
CN107547448B (en) Flow statistical method and system
US7774480B1 (en) Routing instances for network system management and control
JP2023527932A (en) BIER Multicast Traffic Statistics Collection Method, Apparatus, and System
CN105337860A (en) Method and system for determining transmission path of data packet, and apparatuses
US20120224488A1 (en) Method of connectivity monitoring by subscriber line terminating apparatus
CN105591956B (en) Flow control methods and equipment based on User-Network Interface UNI
JP5294529B2 (en) Data stream filtering apparatus and method
KR20080050262A (en) Method of protection switching for link aggregation group and apparatus thereof
CN109150566B (en) Service path restoration method and device
KR101802037B1 (en) Method and system of transmitting oam message for service function chaining in software defined network environment
WO2021259113A1 (en) Onu registration method and apparatus, and network device and storage medium
CN103916278A (en) Method and device for unified management based on LAN and SAN

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