Background
A passive Optical network (Passive Optical Network, PON) system typically includes an Optical line terminal (Optical LINE TERMINAL, OLT), an Optical distribution network (Optical DistributionNetwork, ODN), an Optical network unit (Optical NetworkUnit, ONU), or an Optical network terminal (Optical network terminal, ONT).
The VLAN ID (Virtual Local Area Network Identifier), i.e., virtual local area network identifier, is a digital identification that is used to uniquely identify a VLAN. Through VLAN ID, isolation of broadcast domain can be realized, network security is improved, network management is simplified, and network flexibility is increased.
Currently, OLT mainly adopts a card-plug architecture system, which includes a main control disk and a service disk (also referred to as an interface disk or a line card), where the main control disk is responsible for main switching, that is, switching between line cards inside a device and switching to a convergence layer network device, and the service disk mainly provides a PON interface. The PON network topology is generally a multi-stage tree or star structure, and includes three major core components, namely an OLT, an ONU, and an ODN providing an optical transmission channel.
In general, data sent to the network side by the user is accessed through the terminal ONU device and then forwarded to the PON port of the service disc to enter the service disc, and then forwarded from the OLT upstream port, whereas data sent to the user by the network side is forwarded from the OLT upstream port to the PON port of the service disc and finally arrives at the terminal ONU device. The multicast server is usually arranged at the core switch of the upstream port side of the OLT, so that the master control disc or the core switch of the OLT is required to participate in the processing and forwarding of the multicast protocol message.
In the context of PON access large-scale applications, network communication operators put more demands on networking modes, aggregation switches in conventional LANs in the communication network networking are replaced by OLTs, horizontal copper cables are replaced by optical fibers, and access switches are replaced by passive splitters. For convenience of maintenance and management, the multicast server providing the service and the terminal ONU device may be disposed in the same physical area. Therefore, some operators put forward the requirement that the multicast server is located at the ONU side under the same service disc, which is hereinafter referred to as the reverse multicast function.
However, in the conventional PON system, the PON network lateral resource sharing is difficult to achieve, because two-layer isolation of ports is generally configured between ONUs, and terminals under the same service disc crossing the ONUs cannot be directly connected. If the multicast protocol message at the ONU side is forwarded to the OLT service disc in a unidirectional way according to the uplink direction of the original mode, and then forwarded to the master control disc by the service disc, the master control disc forwards an uplink port, and at the moment, the master control disc of the OLT or a core switch at the uplink port side is required to participate in the processing and forwarding of the multicast protocol message, which occupies the CPU resource and the bandwidth of the master control disc of the PON system. In addition, in the downlink direction, the multicast protocol message forwarded to the multicast server on the ONU side usually adopts broadcast or flood Fan Fangshi, and the reverse multicast protocol message can cause other ONU devices on the same PON port under the service disc to receive repeated messages.
Disclosure of Invention
In view of the above, the present invention provides a method and apparatus for processing a multicast protocol message of a passive optical network.
Specifically, the invention is realized by the following technical scheme:
According to a first aspect of the present invention, there is provided a method for processing a multicast protocol packet of a passive optical network, the method comprising the steps of:
configuring a multicast protocol message two-layer forwarding switch;
acquiring the state of a two-layer forwarding switch of the multicast protocol message;
receiving a multicast protocol message;
Judging whether the state is an enabling state or not;
if yes, forwarding the multicast protocol message;
if not, not forwarding the multicast protocol message.
Optionally, the configuring the multicast protocol message two-layer forwarding switch includes the steps of:
configuring a PON port number in a service disk;
configuring a forwarding switch enabling option;
And configuring a target PON port bitmap in the service disk.
Optionally, the configuring the target PON port bitmap in a service disc includes the steps of:
When the PON port is enabled, adding the PON port into a target PON port bitmap;
When inter-PON-port is enabled, other PON ports are added to the target PON port bitmap.
Optionally, the step of obtaining the state of the two-layer forwarding switch of the multicast protocol packet includes the steps of:
acquiring the state of a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch;
and acquiring the state of a switch between PON ports of the service disk in the multicast protocol message two-layer forwarding switch.
Optionally, the step of determining whether the state is an enabled state includes the steps of:
Judging whether a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
Judging whether the switch between the PON ports of the service disk in the multicast protocol message two-layer forwarding switch is in an enabling state or not.
Optionally, the forwarding the multicast protocol packet includes the steps of:
Judging whether a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
If yes, forwarding the multicast protocol message to a service flow channel of the same virtual local area network identifier except for a source service flow number in a PON port of the service disc, and learning two-layer information of the multicast protocol message and associating the two-layer information to a corresponding service flow number;
if not, not forwarding the multicast protocol message.
Optionally, the forwarding the multicast protocol packet includes the steps of:
judging whether a switch between PON ports of a service disk in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
If yes, forwarding the multicast protocol message to a channel corresponding to the service flow of the same virtual local area network identifier of other PON ports;
if not, not forwarding the multicast protocol message.
According to a second aspect of the present invention, there is provided a passive optical network multicast protocol message processing apparatus, comprising:
The configuration module is used for configuring a multicast protocol message two-layer forwarding switch;
The state acquisition module is used for acquiring the state of the multicast protocol message two-layer forwarding switch;
the message receiving module is used for receiving the multicast protocol message;
The judging module is used for judging whether the state is an enabling state or not;
the execution module is used for executing preset operation according to the result of the judging module;
when the result of the judging module is yes, the executing module forwards the multicast protocol message; and when the result of the judging module is negative, the executing module does not forward the multicast protocol message.
According to a third aspect of the present invention there is provided a service disc for a passive optical network system, the service disc storing a computer program, the service disc implementing the steps of any of the methods described above when the program is executed.
The technical scheme provided by the invention has at least the following beneficial effects:
The method and the device for processing the multicast protocol message of the passive optical network solve the problems that a multicast server in the conventional passive optical network system is required to be arranged on the uplink side of the OLT, and the corresponding configuration and processing limitation are required to be carried out on the switching equipment on the uplink side, so that the flexible networking of the passive optical network system can be realized, the multicast server can be arranged on the terminal ONU side, the utilization of the terminal equipment is improved, the bandwidth occupation of a main control disc of the OLT is reduced, the forwarding performance of the whole passive optical network system is improved, and the maintenance and management cost of operators can be reduced. By introducing the two-layer forwarding switch, the application provides an innovative multicast protocol message processing method, which not only improves the flexibility and the performance of the passive optical network system, but also reduces the maintenance and management cost of operators. This innovation is of great importance for the development and popularity of PON technology, especially in modern communication networks where efficient and flexible networking is required.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 schematically shows a flow chart of a method for processing a multicast protocol message of a passive optical network, which is suitable for use in an embodiment of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for processing a multicast protocol packet of a passive optical network, where the method may include the following steps:
S1, configuring a multicast protocol message two-layer forwarding switch;
Illustratively, the configuring the multicast protocol message two-layer forwarding switch includes the steps of:
configuring a PON port number in a service disk;
configuring a forwarding switch enabling option;
And configuring a target PON port bitmap in the service disk.
In the embodiment of the application, the multicast protocol message two-layer forwarding switch is configured through the service disk, namely, the enabling state or the disabling state of the multicast protocol message two-layer forwarding switch in the PON port of the service disk or among PON ports is configured, and the table items of the configuration table comprise PON port numbers, forwarding switch enabling options and target PON port bitmaps. The configuration table is shown in table 1 below:
TABLE 1
Illustratively, the configuring the target PON port bitmap comprises the steps of:
When the PON port is enabled, adding the PON port into a target PON port bitmap;
When inter-PON-port is enabled, other PON ports are added to the target PON port bitmap.
In the embodiment of the present application, the target PON port bitmap includes the present PON port and other PON ports, so the present PON port and other PON ports need to be configured, and the configuration table is shown in table 1.
S2, acquiring the state of a two-layer forwarding switch of the multicast protocol message;
illustratively, the obtaining the state of the multicast protocol message two-layer forwarding switch includes the steps of:
acquiring the state of a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch;
and acquiring the state of a switch between PON ports of the service disk in the multicast protocol message two-layer forwarding switch.
In the embodiment of the application, the states of the switch in the PON port of the service disk and the switch between PON ports of the service disk are required to be obtained, the state reading instructions can be respectively sent to the switch in the PON port of the service disk and the switch between PON ports of the service disk, and the states of the switch in the PON port of the service disk and the switch between PON ports of the service disk are obtained through the difference of the state reading feedback instructions.
S3, receiving a multicast protocol message;
S4, judging whether the state is an enabling state or not;
illustratively, said determining whether said state is an enabled state comprises the steps of:
Judging whether a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
Judging whether the switch between the PON ports of the service disk in the multicast protocol message two-layer forwarding switch is in an enabling state or not.
In the embodiment of the present application, when judging the enabling state, it is necessary to respectively judge the enabling states of the switch in the PON port and the switch between PON ports.
S5, if yes, forwarding the multicast protocol message;
illustratively, the forwarding the multicast protocol packet includes the steps of:
Judging whether a switch in a PON port of a service disc in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
If yes, forwarding the multicast protocol message to a service flow channel of the same virtual local area network identifier except for a source service flow number in a PON port of the service disc, and learning the multicast protocol message and associating the multicast protocol message to a corresponding service flow number;
if not, not forwarding the multicast protocol message.
In the embodiment of the application, each service flow number is associated with the port service of one ONU, and ONUId, the uni-side port number of the ONU and VLAN ID information of the ONU port service can be mapped into one service flow number. The service flow number is globally unique in the service disk, when the service disk configures ONU port service, channel information of specific port service of the ONU is established, and the channel information is mapped to the service flow number for recording. When the switch in the PON port of the service disc is in an enabling state, forwarding the multicast protocol message to a service flow channel of the same virtual local area network identifier except for a source service flow number in the PON port of the service disc, and learning the multicast protocol message and associating the multicast protocol message to the corresponding service flow number. And learning the two-layer information of the multicast protocol message as a source address and an outer VLAN ID (virtual local area network identifier) of the multicast protocol message.
Illustratively, the forwarding the multicast protocol packet includes the steps of:
judging whether a switch between PON ports of a service disk in the multicast protocol message two-layer forwarding switch is in an enabling state or not;
if yes, forwarding the multicast protocol message to the service flow channels of other PON ports with the same virtual local area network identifiers;
if not, not forwarding the multicast protocol message.
In the embodiment of the present application, when the switch between PON ports of a service tray is in an enabled state, forwarding the multicast protocol packet to a service flow channel of the same virtual local area network identifier of other PON ports of the service tray.
And S6, if not, not forwarding the multicast protocol message.
In the embodiment of the application, the application utilizes the two-layer forwarding function of the service disc, and on the basis, the multicast protocol message can be reversely forwarded based on the granularity of the service flow and only forwarded to the service flow channels with the same virtual local area network identifier. The multicast protocol two-layer forwarding module of the service disk can accurately send the multicast protocol message to the port service of the corresponding ONU. The reverse multicast function in the same PON port, among different PON ports and in the same ONU under the same service disk is realized. The multicast protocol two-layer forwarding module of the service disk does not change the rule of forwarding the original multicast protocol message to the CPU of the service disk, so that the original multicast proxy service function is not affected, and the multicast proxy function of the service disk can be supported simultaneously. The multicast protocol two-layer forwarding module of the service disk does not change the rule of forwarding the original multicast protocol message upwards to the master control disk, so that the original forward multicast function is not affected.
The invention relates to a method and a device for processing a multicast protocol message of a passive optical network (Passive Optical Network, PON), which are particularly focused on improving the flexibility and the system performance of multicast service.
The core of the invention is to provide an innovative multicast protocol message processing method, which allows multicast services to be more flexibly configured and managed in a passive optical network system. The method mainly comprises the following steps:
and configuring a two-layer forwarding switch of the multicast protocol message, namely setting a control switch on related equipment (such as an Optical Line Terminal (OLT) or an Optical Network Unit (ONU)) of the PON system, and determining whether to allow the multicast protocol message to be forwarded in two layers (data link layers).
The acquisition switch state is that the system periodically checks or acquires the current state of the two-layer forwarding switch in real time, namely whether the two-layer forwarding switch is in an enabled (enabled) state.
And receiving the multicast protocol message, namely triggering the following processing flow when equipment (such as an OLT or an ONU) in the PON network receives the multicast protocol message.
Judging the switch state, namely determining whether forwarding processing is required to be carried out on the received multicast protocol message according to the state of the two-layer forwarding switch acquired before. If the state is enabled, the system will execute the forwarding process, i.e. send the multicast protocol message to the designated target device or network segment. If not, the system will not forward the multicast protocol message, i.e. the message will be discarded or ignored.
The invention breaks the limit that the multicast server is required to be arranged on the uplink side of the OLT and the switching equipment on the uplink side is specially configured, and allows the multicast server to be arranged on the terminal ONU side, thereby greatly improving the flexibility of the networking. The utilization rate of the terminal equipment is improved, namely, the multicast server is placed on the ONU side closer to the user side, so that the resources and functions of the terminal equipment can be utilized more effectively, and the service capacity and efficiency of the whole system are improved. The bandwidth occupation of the OLT is reduced, and because the multicast protocol message can be flexibly forwarded or discarded in two layers, unnecessary message flow is reduced, thereby reducing the occupation of the bandwidth of the OLT main control disc and improving the forwarding performance of the whole PON system. The maintenance and management cost is reduced, and because the networking is more flexible, the dependence on the uplink side switching equipment and the configuration complexity are reduced, the cost of operators in equipment maintenance, network management and fault detection can be reduced.
As shown in fig. 2, the present application provides a passive optical network multicast protocol message processing device, which includes:
The configuration module 10 is used for configuring a multicast protocol message two-layer forwarding switch;
The state acquisition module 20 is configured to acquire a state of the two-layer forwarding switch of the multicast protocol packet;
a message receiving module 30, configured to receive a multicast protocol message;
a judging module 40, configured to judge whether the state is an enabled state;
An execution module 50, configured to execute a preset operation according to a result of the determination module;
when the result of the judging module is yes, the executing module forwards the multicast protocol message; and when the result of the judging module is negative, the executing module does not forward the multicast protocol message.
The passive optical network multicast protocol message processing device provided by the application can execute the passive optical network multicast protocol message processing method provided by the steps.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explanation of the principles of the present invention and are in no way limiting of the invention. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.
The application also provides a service disk of the passive optical network system, the service disk stores a computer program, and the service disk realizes the steps of any one of the methods when executing the program.
The method and the device for processing the multicast protocol message of the passive optical network solve the problems that a multicast server in the conventional passive optical network system is required to be arranged on the uplink side of the OLT, and the corresponding configuration and processing limitation are required to be carried out on the switching equipment on the uplink side, so that the flexible networking of the passive optical network system can be realized, the multicast server can be arranged on the terminal ONU side, the utilization of the terminal equipment is improved, the bandwidth occupation of a main control disc of the OLT is reduced, the forwarding performance of the whole passive optical network system is improved, and the maintenance and management cost of operators can be reduced.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.