CN108966055B - Method and system for realizing port attribute switching according to multicast service in PON - Google Patents

Method and system for realizing port attribute switching according to multicast service in PON Download PDF

Info

Publication number
CN108966055B
CN108966055B CN201810717764.0A CN201810717764A CN108966055B CN 108966055 B CN108966055 B CN 108966055B CN 201810717764 A CN201810717764 A CN 201810717764A CN 108966055 B CN108966055 B CN 108966055B
Authority
CN
China
Prior art keywords
port
multicast
uplink
ports
mstp
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
CN201810717764.0A
Other languages
Chinese (zh)
Other versions
CN108966055A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810717764.0A priority Critical patent/CN108966055B/en
Publication of CN108966055A publication Critical patent/CN108966055A/en
Application granted granted Critical
Publication of CN108966055B publication Critical patent/CN108966055B/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation

Landscapes

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

Abstract

The invention discloses a method and a system for realizing port attribute switching according to multicast service in a PON, relating to the technical field of network transmission, wherein the invention sets a multicast uplink port mode as a default mode, initializes all uplink disk ports on OLT equipment as multicast uplink ports and adds the multicast uplink ports to an IGMP host side; when an upper connection disc port is required to be appointed as a multicast uplink port according to a multicast service scene, manually configuring the appointed upper connection disc port as the multicast uplink port, and adding the multicast uplink port to an IGMP host side; when the upper connection disk port needs to be changed into a cascade port, the designated upper connection disk port is manually configured as a multicast downlink port, and is added to the router side of the IGMP; when the multicast attribute of a certain uplink port needs to be set according to the MSTP protocol, the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP protocol, so that the uplink and downlink port attribute switching under various multicast scenes is realized.

Description

Method and system for realizing port attribute switching according to multicast service in PON
Technical Field
The invention relates to the technical field of network transmission, in particular to a method and a system for realizing port attribute switching according to multicast service in a PON (passive optical network).
Background
Passive Optical Network (PON) technology is an emerging technology that includes an Optical Line Terminal (OLT), an Optical Distribution Network (ODN), and an Optical Network Terminal (ONU). An OLT may have a plurality of PON ports, and one PON port may be connected to a plurality of ONUs via an optical splitter to form a communication network in which a central office is interconnected with a plurality of remote terminals.
The PON technology has the advantages of large system capacity, low cost, good support for data service, mature technology, simple maintenance and the like. At present, a PON system starts to be used in a commercial scale, and with the rapid development of video services such as IPTV, the multicast scene applications of the PON system are also different, and a device OLT is connected to a multicast source in a conventional network; in some scenarios, multiple OLTs are cascaded to form a ring, and only one OLT needs to be connected to a multicast source, and then the OLT forwards a multicast protocol message and multicast data in the ring. The correct forwarding of the multicast message depends on the multicast uplink port and downlink port, the multicast uplink port serves as the host side of IGMP (Internet Group Management protocol), and the multicast downlink port serves as the router side of IGMP. Therefore, the multicast service scene with variable multicast needs to be satisfied by the multicast uplink and downlink port attributes of the switching device, and once the multicast uplink and downlink port attributes are determined, the multicast message and the multicast data can be forwarded according to the setting.
Therefore, a multicast port switching method compatible with various scenarios is needed to ensure the correctness and operability of the port multicast attribute setting.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method and a system for realizing port attribute switching according to multicast services in a PON (passive optical network), so as to realize uplink and downlink port attribute switching under various multicast scenes.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: a method for realizing port attribute switching according to multicast service in PON comprises the following steps:
setting a multicast uplink port mode as a default mode, initializing all uplink disk ports on OLT equipment as multicast uplink ports, and adding the multicast uplink ports into an Internet Group Management Protocol (IGMP) host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports, manually configuring the appointed one or more upper connection disc ports as multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more upper connection disk ports are required to be changed into cascade ports, manually configuring one or more specified upper connection disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP;
when the multicast attribute of a certain uplink port needs to be set according to the MSTP protocol, the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP protocol.
On the basis of the above technical solution, the setting of the multicast attribute of the port according to the port role of the MSTP protocol specifically includes the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
On the basis of the technical scheme, the method further comprises the following steps: when the multicast uplink port mode is set as a default mode and a certain cascade interface needs to be deleted, the multicast port attribute of the deleted cascade interface needs to be set as an invalid port.
On the basis of the technical scheme, the switching of the multicast uplink port mode into the mstp mode specifically comprises the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
On the basis of the technical scheme, the equipment in non-MSTP networking or the root bridge equipment in MSTP networking adopts a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
The invention also discloses a system for realizing port attribute switching according to the multicast service in the PON, which comprises the following steps:
a default mode setting module, configured to set a multicast uplink port mode as a default mode during initialization, initialize all uplink ports on the OLT device as multicast uplink ports, and join the multicast uplink ports to the IGMP host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports, manually configuring the appointed one or more upper connection disc ports as multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more upper connection disk ports are required to be changed into cascade ports, manually configuring one or more specified upper connection disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP;
and the MSTP mode setting module is used for setting the multicast attribute of a certain uplink port according to the MSTP protocol, firstly setting the multicast uplink port mode as the MSTP mode, and then setting the multicast attribute of the port according to the port role of the MSTP protocol.
On the basis of the above technical solution, the setting of the multicast attribute of the port according to the port role of the MSTP protocol specifically includes the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
On the basis of the above technical solution, the default mode setting module is further configured to: when the multicast uplink port mode is a default mode and a certain cascade port needs to be deleted, the multicast port attribute of the deleted cascade port needs to be set as an invalid port.
On the basis of the above technical solution, the mstp mode setting module switches the multicast uplink port mode to the mstp mode, and specifically includes the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
On the basis of the technical scheme, the equipment in non-MSTP networking or the root bridge equipment in MSTP networking adopts a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
Compared with the prior art, the invention has the advantages that:
the method comprises the steps of setting a multicast uplink port mode as a default mode during initialization, initializing all uplink disk ports on OLT equipment as multicast uplink ports, and adding the multicast uplink ports into an Internet Group Management Protocol (IGMP) host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports according to a multicast service scene, manually configuring the appointed one or more upper connection disc ports as the multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more upper connection disk ports are required to be changed into cascade ports, manually configuring one or more specified upper connection disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP; when the multicast attribute of a certain uplink port needs to be set according to the MSTP, the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP, so that the switching of the uplink and downlink port attributes under various multicast scenes is realized.
The attribute state switching of the multicast port can meet various multicast service scenes, can manually switch the uplink and downlink attributes of the multicast port at any time, and can also support the dynamic determination of the multicast uplink and downlink port attributes according to the MSTP protocol.
Drawings
Fig. 1 is a typical scenario diagram of ring network multicast in the embodiment of the present invention;
fig. 2 is a scene diagram of correct forwarding of MSTP data packets in the embodiment of the present invention;
fig. 3 is a typical scenario diagram of multicast requiring multiple uplink ports in the embodiment of the present invention;
FIG. 4 is a state transition diagram of IGMP port attribute in the embodiment of the present invention;
fig. 5 is a flowchart of setting a multicast uplink port mode in the embodiment of the present invention;
fig. 6 is a flowchart of adding a multicast upstream port according to an embodiment of the present invention;
fig. 7 is a flowchart of deleting a multicast upstream port according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Example 1:
the embodiment of the invention provides a method for realizing port attribute switching according to multicast service in a PON, which comprises the following steps:
setting a multicast uplink port mode as a default mode, initializing all uplink disk ports on OLT equipment as multicast uplink ports, and adding the multicast uplink ports into an Internet Group Management Protocol (IGMP) host side;
when one or more upper connection disc ports are required to be appointed as multicast uplink ports according to a multicast service scene, manually configuring the appointed one or more upper connection disc ports as the multicast uplink ports, and adding the multicast uplink ports to an IGMP host side;
when one or more uplink disk ports are required to be changed into cascade ports according to a multicast service scene, manually configuring one or more specified uplink disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP (Internet group management protocol);
when the multicast attribute of a certain uplink port is set according to the multiple Spanning tree protocol MSTP (multiple Spanning tree protocol) according to the multicast service scene, the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP protocol.
The method for setting the multicast attribute of the port according to the port role of the MSTP protocol specifically comprises the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
As a preferred implementation, the embodiment of the present invention further includes the following steps: when the multicast uplink port mode is set as a default mode and a certain cascade interface needs to be deleted, the multicast port attribute of the deleted cascade interface needs to be set as an invalid port.
Switching a multicast uplink port mode into an mstp mode, specifically comprising the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
The equipment in the non-MSTP networking or the root bridge equipment in the MSTP networking adopts a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
The multicast port attribute state switching of the embodiment of the invention can meet various multicast service scenes, can manually switch the uplink and downlink attributes of the multicast port at any time, and can also support the dynamic determination of the multicast uplink and downlink port attributes according to the MSTP protocol.
Example 2:
on the basis of embodiment 1, the method for implementing port attribute switching according to multicast service in a PON according to embodiment 2 of the present invention specifically shows how to confirm and transition multicast attributes of each port, and includes the following steps:
1: all the uplink disk ports, namely the uplink ports, on the OLT equipment are all initialized to multicast uplink ports (uplink-ports) and added to an IGMP host side;
2: confirming a multicast service scene, if all the uplink ports need to be multicast uplink ports (uplink-ports), the attribute does not need to be modified, because step 1 describes that all the uplink ports are initialized to the multicast uplink ports (uplink-ports); if one or more uplink ports are specified as multicast uplink-ports according to the multicast service scene, executing step 3; if a certain uplink port is dynamically determined to be a multicast uplink port (uplink-port) by the MSTP protocol according to the requirement of a multicast service scene, executing step 6;
3: confirming whether the multicast uplink port mode (uplink-port-mode) is default or not, wherein the multicast uplink port (uplink-port) can be manually configured only in the default mode;
4: adding one or a plurality of appointed multicast uplink ports (uplink-ports), and adding the ports to the IGMP host side;
5: confirming whether one or more upper connection disk ports need to be changed into a cascade port, wherein the cascade port is a multicast downlink port (downlink-port), and adding the multicast downlink ports into a router side of the IGMP;
6: if the multicast scene is confirmed to be ring topology, the MSTP function of each device on the ring needs to be started;
7: setting an uplink-port-mode (uplink-port-mode) of the multicast to be an MSTP mode, wherein the MSTP mode determines the attributes of the multicast uplink and downlink ports according to an MSTP protocol;
8: when the MSTP protocol is stable, the MSTP protocol informs the role of an IGMP port, and the IGMP determines the multicast uplink and downlink port attribute of the port according to the port role;
when the role of the MSTP port is changed into a root port, informing the IGMP to change the port into an uplink-port; when the role of the MSTP port is changed into a designated port, informing the IGMP to change the port into a downlink port (MSTP-downlink-port); when the MSTP port role changes to other ports (neither root nor designated), IGMP is notified to change the port to an invalid port (invalid-port).
Because the application of the multicast scene is various, in order to be compatible with the flexible change of various scenes, in the invention, the multicast uplink port mode (uplink-port-mode) is designed to be switched at any time, namely the default mode is switched to the mstp mode, or the mstp mode is switched to the default mode.
The mode switching may cause the multicast attribute of the port to change, and the change of the port attribute needs to follow the following principle:
A. all the uplink disk ports are initialized to be uplink ports (uplink-port), but the number of multicast uplink ports (uplink-port num) is not counted, and the number of multicast uplink ports (uplink-port num) only counts the multicast uplink ports which are manually configured and added;
B. the multicast uplink mode comprises a default mode and an mstp mode, and the addition and deletion of a multicast uplink port (uplink-port) can be operated only in the default mode; inoperable in mstp mode;
C. the multicast uplink mode can be switched, but the mode default can be switched to the mstp only when the number of the uplink-port num is zero (0); when the mstp mode is switched to default, other ports (i.e., the ports that are not called mstp-downlink-ports) except the cascade port should be initialized as uplink-ports.
Example 3:
on the basis of embodiment 1, a ring networking is taken as an example in conjunction with fig. 1 and 2, and a switching function of a multicast uplink port is introduced:
1. fig. 1 shows a typical scenario of ring multicast application, where OLT1, OLT2, OLT3, and OLT4 are connected into a ring, and OLT1 is connected to a multicast server via an uplink-port 19: 1.
2. The limitation of the networking application of the multicast ring network is that the multicast data injection point must be at the MSTP root bridge, for example, the OLT1 in fig. 1 is the MSTP root bridge.
3. Configuring the mode of the OLT1 multicast uplink port as default, the initialized default mode is default, all uplink ports multicast the uplink ports, or assigning the multicast uplink ports by configuring the multicast uplink ports, and other unconfigured uplink ports are in multicast closing role.
4. The OLT1 is configured to multicast upstream ports 19:1 for designating multicast upstream ports only if the multicast upstream port mode is default.
5. The OLT1 is configured with multicast tandem ports 19:2, 19:3 for specifying downstream ports for multicast.
6. Configuring OLT2, OLT3 and OLT4 multicast uplink port mode as MSTP, at this time, multicast uplink port cannot be configured, the multicast uplink port is designated by MSTP protocol port role, the root port is multicast uplink port, and the designated port is multicast downlink port.
7. As shown in fig. 2, the ports 19:2 on OLT3 are MSTP loop blocking ports, and the multicast data stream will reach OLT3 through OLT 2.
8. If ring networking is no longer used, and the networking mode as shown in fig. 3 is adopted, only the multicast upstream mode of OLT2, OLT3, and OLT4 needs to be switched to default, and all non-cascaded ports can be recovered as multicast upstream ports at this time, if only 19 of OLT1 needs to be further specified: 1 and 19:3 are multicast upstream ports, and then the upstream ports 19:1 and 19:3 of the OLT1 are added as multicast upstream ports.
The embodiment of the invention discloses that when the multicast attribute of a certain uplink port needs to be set according to a MSTP (multiple spanning Tree protocol), the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP protocol, so that the attribute switching of the uplink port and the downlink port under various multicast scenes is realized.
Example 4:
on the basis of embodiment 1, the IGMP port attribute state transition is as shown in fig. 4,
1. an initialization state:
a) when the default multicast uplink port mode is default, that is, when uplink-port-mode is default in fig. 4;
b) the default number of the uplink ports is 0, that is, when uplink-port num is 0 in fig. 4;
c) as shown in fig. 4, when the uplink port mode is default mode, all the uplink disk ports are initialized to uplink-port, and all the service slot ports are initialized to downlink-port;
2. state with uplink-port-mode being default and uplink-port num being 0:
when the mode of the uplink port is default and the number of the uplink ports is 0, the uplink port can be configured as a cascade port, namely the port is changed from an uplink-port to a downlink-port; when the cascade port is cancelled, the port is recovered as an uplink port;
3. an uplink-port-mode is default, and an uplink-port num is greater than 0:
a) when the first uplink port is added, namely the uplink-port num is changed from being equal to 0 to be larger than 0, all the ports which are previously uplink-ports become invalid ports (invalid-ports), and only the added uplink port becomes uplink-port;
b) when a second uplink port is added, the port is directly changed into an uplink-port;
c) deleting an upstream port, firstly changing the port into an invalid port (invalid-port), if the port is the last upstream port, namely making the uplink-port num equal to 0, for example, note 2, when the uplink-port num is changed from non-0 to 0, all the previous invalid ports (invaid-ports) become upstream ports (uplink-ports), namely, restoring to the initialized state.
4. When uplink-port-mode is MSTP, the MSTP module provides an interface for notifying the IGMP port role change. After receiving the notification, the IGMP searches whether the multicast vlan is in the notified MSTP instance through an interface provided by the MSTP module, and if so, the following processing flow is required:
a) the role switches to the root-port and is set to the uplink-port.
b) And the role is switched to a designated port (designated-port) and is set as an MSTP downlink-port (MSTP-downlink-port).
c) The role is switched to other ports (non-root-port/designated), and the port is set as invalid port.
5. When the mode of the uplink port is switched from default to MSTP, all the uplink ports become invalid ports (invalid-ports), and then the attributes of the multicast ports are rapidly determined by acquiring the roles of the MSTP ports.
6. When the mode of the uplink port is switched from MSTP to default, all the non-cascaded ports become uplink ports (uplink-ports), wherein the MSTP-downlink-ports determined by the MSTP protocol are also restored to the uplink ports (uplink-ports).
Example 5:
on the basis of embodiment 1, the procedure for setting the default mode, the mstp mode, is as follows:
1. and setting a multicast uplink port mode, wherein the default value is default, when the multicast uplink port actually used by the equipment needs to be decided according to the MSTP protocol, the MSTP mode is used, and the default mode is used under other conditions.
defaults: the multicast upstream port mode is a default mode. When a networking mode other than MSTP is adopted, or a root bridge device in MSTP networking uses a default mode, for example, both the root bridge OLT1 in fig. 1 and the OLT in fig. 3 need to use the default mode. The multicast uplink port is configured and designated by a 'set multicast uplink port', or all uplink ports are used as the multicast uplink ports by default.
mstp: the multicast uplink port mode is the mstp mode. When MSTP networking is adopted and a non-root bridge device is adopted, an MSTP mode is selected, for example, in fig. 1, OLT2, OLT3, and OLT4 all need to adopt the MSTP mode, and a multicast uplink port is determined by a port role running an MSTP protocol:
the root port of the device will be the multicast upstream port.
The designated port of the device will be the downstream port of the multicast.
2. Setting a multicast uplink port, wherein all uplink ports are defaulted to be multicast uplink ports, and the setting of the multicast uplink port is effective only when a multicast uplink port mode (uplink-port-mode) is default, and is used for configuring and designating the multicast uplink port when non-MSTP networking is performed, for example, an uplink port 19:1 of an OLT1 in fig. 1 should be added as a multicast uplink port, and uplink ports 19:2 and 19:3 are added as multicast downlink ports; such as 19:1 and 19:3 of OLT1 in fig. 3, should add multicast upstream ports.
Referring to fig. 5, an embodiment of the present invention further discloses a multicast uplink-port-mode (uplink-port-mode) configuration processing flow:
step S101, judging which switching mode is needed, and entering step S102 from default mode- > mstp mode; entering step S115 from default mode- > mstp mode;
step S102, judging whether the number of multicast uplink ports is 0, if yes, entering step S104; if not, the step S103 is executed;
step S103, setting the multicast uplink port as an invalid port, and entering step S104;
step S104, setting the mode to mstp; setting all non-cascade ports as invalid ports; registering a notification letter of role change to the mstp protocol stack; the flow advances to step S105;
step S105, acquiring a port and a port role; the port role is a root port, and the step S106 is entered; the port role is other ports, and the step S110 is entered; the port role is the designated port, and the process goes to step S113;
step S106, judging whether the MSTP downlink interface (MSTP-downlink) is available; if yes, go to step S107; if not, go to step S108;
step S107, deleting the user port from the multicast protocol stack; entering step S108;
step S108, setting the port as an uplink port, calling an IGMP protocol stack interface, and sending a multicast join message to the port; the flow advances to step S109;
step S109, judging whether all uplink ports are traversed or not, if so, ending; if not, returning to the step S105;
step S110, judging whether the mstp-downlink is present; if yes, go to step S111; if not, go to step S112;
step S111, deleting the user port from the multicast protocol stack; the flow advances to step S112;
step S112, setting the port as an invalid port; step S109 is executed;
step S113, setting the port to mstp-downlink; proceeding to step S114;
step S114, calling a multicast protocol stack interface, setting the port as a user port, and adding the port into the multicast vlan; step S109 is executed;
step S115, registering a role change notification function to the mstp protocol stack; setting the mode to default; setting all the non-cascade ports as uplink ports; step S116 is executed;
step S116, judging whether the mstp-downlink is present; if yes, go to step S117; if not, go to step S118;
step S117, deleting the user port from the multicast protocol stack; step S118 is entered;
step S118, setting the port as an uplink port; and (6) ending.
When switching between multicast uplink-port modes (uplink-port-mode), the switching can only be performed when the number of uplink-port is zero (uplink-port num is 0).
When the multicast uplink mode is switched from default to MSTP, initializing a previous multicast uplink port (uplink-port) as an invalid port (invalid-port), then registering a notification function of port role change to an MSTP protocol stack, and calling an interface provided by an MSTP protocol module, wherein the function of the interface is to acquire the role of a port in an MSTP instance where a multicast VLAN of the port is located, if the port is a root-port, the port is set as an uplink port (uplink-port), and if the port is a designated port (signed-port), the port is set as an MSTP downlink port (MSTP-downlink).
When the multicast uplink mode is switched from the mstp to the default, all physical ports that are not downlink-ports (downlink-ports) before need to be initialized to uplink.
Referring to fig. 6 and fig. 7, the embodiment of the present invention further discloses that the uplink-port configuration processing flow includes adding a multicast uplink port and deleting an anchor uplink port.
The processing flow of the multicast upstream port is shown in fig. 6:
step S201, judging whether the current mode is default; if yes, go to step S202; if not, ending;
step S202, judging whether the port is a cascade port; if not, go to step S203; if yes, ending;
step S203, judging whether the number of the uplink ports is 0; if yes, go to step S204; if not, go to step S205;
step S204, setting all non-cascade ports as invalid ports (invalid-ports);
step S205, the port is set as a multicast uplink port;
and step S206, adding 1 to the number of the multicast uplink ports, and ending.
The process flow for deleting the anchor upstream port is shown in fig. 7:
step S301, judging whether the current mode is default; if yes, go to step S302; if not, ending;
step S302, setting the port as an invalid port (invalid-port); entering step S303;
step S303, judging whether the number of multicast uplink ports is more than 0; if yes, go to step S304; if not, go to step S305;
step S304, the number of multicast uplink ports is reduced by 1; the flow advances to step S305;
step S305, judging whether the number of multicast uplink ports is 0; if yes, go to step S306; if not, ending;
step S306, all the non-cascade ports are set as multicast uplink ports, and the process is finished.
The uplink-port is used to specify a multicast upstream port, and is only used when the multicast upstream mode (uplink-port-mode) is default.
An uplink port (uplink) and a cascade port (downlink) are configured mutually exclusive, and a port configured as the uplink port cannot be configured as the cascade port at the same time; conversely, a port configured as a cascade port cannot be configured as an add-on port at the same time.
In default mode, if an uplink-port is configured manually, then a certain tandem port is deleted, and the multicast port attribute of the deleted tandem port is set as an invalid port (invalid-port) instead of the uplink-port.
Example 6:
the embodiment of the invention discloses a system for realizing port attribute switching according to multicast service in a PON, which comprises:
a default mode setting module, configured to set a multicast uplink port mode as a default mode during initialization, initialize all uplink ports on the OLT device as multicast uplink ports, and join the multicast uplink ports to the IGMP host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports according to a multicast service scene, manually configuring the appointed one or more upper connection disc ports as the multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more uplink disk ports are required to be changed into cascade ports according to a multicast service scene, manually configuring one or more specified uplink disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP (Internet group management protocol);
and the MSTP mode setting module is used for setting the multicast attribute of a certain uplink port according to the MSTP protocol when the multicast service scene needs to set the multicast attribute of the certain uplink port according to the MSTP protocol, and then setting the multicast attribute of the certain uplink port according to the port role of the MSTP protocol.
The method for setting the multicast attribute of the port according to the port role of the MSTP protocol specifically comprises the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
The default mode setting module is further configured to: when the multicast uplink port mode is a default mode and a certain cascade port needs to be deleted, the multicast port attribute of the deleted cascade port needs to be set as an invalid port.
The method for switching the multicast uplink port mode into the mstp mode comprises the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
The equipment in the non-MSTP networking or the root bridge equipment in the MSTP networking adopts a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
The attribute state switching of the multicast port can meet various multicast service scenes, can manually switch the uplink and downlink attributes of the multicast port at any time, and can also support the dynamic determination of the multicast uplink and downlink port attributes according to the MSTP protocol.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A method for realizing port attribute switching according to multicast service in PON is characterized by comprising the following steps:
setting a multicast uplink port mode as a default mode, initializing all uplink disk ports on OLT equipment as multicast uplink ports, and adding the multicast uplink ports into an Internet Group Management Protocol (IGMP) host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports, manually configuring the appointed one or more upper connection disc ports as multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more upper connection disk ports are required to be changed into cascade ports, manually configuring one or more specified upper connection disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP;
when the multicast attribute of a certain uplink port needs to be set according to the MSTP protocol, the multicast uplink port mode is firstly switched to the MSTP mode, and then the multicast attribute of the port is set according to the port role of the MSTP protocol.
2. The method according to claim 1, wherein the method for implementing port attribute switching according to multicast service in PON comprises: the setting of the multicast attribute of the port according to the port role of the MSTP protocol specifically includes the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
3. The method according to claim 1, wherein the method for implementing port attribute switching according to multicast service in PON comprises: further comprising the steps of: when the multicast uplink port mode is set as a default mode and a certain cascade interface needs to be deleted, the multicast port attribute of the deleted cascade interface needs to be set as an invalid port.
4. The method according to claim 1, wherein the method for implementing port attribute switching according to multicast service in PON comprises: the method for switching the multicast uplink port mode into the mstp mode specifically comprises the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
5. The method according to claim 1, wherein the method for implementing port attribute switching according to multicast service in PON comprises: devices in a non-MSTP networking network or root bridge devices in the MSTP networking network adopt a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
6. A system for implementing port attribute switching according to multicast service in PON is characterized in that the system comprises:
a default mode setting module, configured to set a multicast uplink port mode as a default mode during initialization, initialize all uplink ports on the OLT device as multicast uplink ports, and join the multicast uplink ports to the IGMP host side; when one or more upper connection disc ports are required to be appointed as multicast uplink ports, manually configuring the appointed one or more upper connection disc ports as multicast uplink ports, and adding the multicast uplink ports to an IGMP host side; when one or more upper connection disk ports are required to be changed into cascade ports, manually configuring one or more specified upper connection disk ports as multicast downlink ports, and adding the multicast downlink ports into a router side of an IGMP;
and the MSTP mode setting module is used for setting the multicast attribute of a certain uplink port according to the MSTP protocol, firstly setting the multicast uplink port mode as the MSTP mode, and then setting the multicast attribute of the port according to the port role of the MSTP protocol.
7. The system according to claim 6, wherein the system for implementing port attribute switching according to multicast service in PON comprises: the setting of the multicast attribute of the port according to the port role of the MSTP protocol specifically includes the following steps:
when the MSTP protocol port of the upper connection disk port is the root port of the equipment, the upper connection disk port is set as a multicast uplink port;
when the port role of the MSTP protocol of the upper connection disk port is the appointed port of the equipment, the upper connection disk port is set as an MSTP multicast downlink port;
and when the port role of the MSTP protocol of the upper connection disk port is other ports, setting the upper connection disk port as an invalid port.
8. The system according to claim 6, wherein the system for implementing port attribute switching according to multicast service in PON comprises: the default mode setting module is further configured to: when the multicast uplink port mode is a default mode and a certain cascade port needs to be deleted, the multicast port attribute of the deleted cascade port needs to be set as an invalid port.
9. The system according to claim 6, wherein the system for implementing port attribute switching according to multicast service in PON comprises: the mstp mode setting module switches the multicast uplink port mode into the mstp mode, and specifically comprises the following steps: all multicast uplink ports are initialized to be invalid ports, and then mode switching is carried out.
10. The system according to claim 6, wherein the system for implementing port attribute switching according to multicast service in PON comprises: devices in a non-MSTP networking network or root bridge devices in the MSTP networking network adopt a default mode; non-root bridge equipment in the MSTP networking adopts an MSTP mode.
CN201810717764.0A 2018-06-29 2018-06-29 Method and system for realizing port attribute switching according to multicast service in PON Active CN108966055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810717764.0A CN108966055B (en) 2018-06-29 2018-06-29 Method and system for realizing port attribute switching according to multicast service in PON

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810717764.0A CN108966055B (en) 2018-06-29 2018-06-29 Method and system for realizing port attribute switching according to multicast service in PON

Publications (2)

Publication Number Publication Date
CN108966055A CN108966055A (en) 2018-12-07
CN108966055B true CN108966055B (en) 2020-11-06

Family

ID=64485090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810717764.0A Active CN108966055B (en) 2018-06-29 2018-06-29 Method and system for realizing port attribute switching according to multicast service in PON

Country Status (1)

Country Link
CN (1) CN108966055B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
US8045487B2 (en) * 2005-04-04 2011-10-25 Huawei Technologies Co., Ltd. Method for implementing multicast in rapid spanning tree protocol ring network
EP2773070A4 (en) * 2011-10-29 2014-09-03 Huawei Tech Co Ltd Multicast processing method and apparatus
CN104539438A (en) * 2015-01-07 2015-04-22 烽火通信科技股份有限公司 System and method used in PON system and achieving multicast service layering
CN106375222A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Multicast line switching method for annular networking and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045487B2 (en) * 2005-04-04 2011-10-25 Huawei Technologies Co., Ltd. Method for implementing multicast in rapid spanning tree protocol ring network
CN101459536A (en) * 2008-12-29 2009-06-17 杭州华三通信技术有限公司 Port configuration method and switching device
EP2773070A4 (en) * 2011-10-29 2014-09-03 Huawei Tech Co Ltd Multicast processing method and apparatus
CN104539438A (en) * 2015-01-07 2015-04-22 烽火通信科技股份有限公司 System and method used in PON system and achieving multicast service layering
CN106375222A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Multicast line switching method for annular networking and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
利用MSTP 网络的组播功能实现中IPTV 业务的承载;乔明亮;《城市建设理论研究》;20140109(第34期);全文 *

Also Published As

Publication number Publication date
CN108966055A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US10374714B2 (en) Method for online switching of operation mode of ONT, ONT and OLT
US10148595B2 (en) Handling dynamic port/LAG changes without breaking communication in an extended bridge
CN102006526B (en) A kind of broadcast packet/multicast controls message processing method and device
US20150288444A1 (en) Service Protection Method, Optical Line Terminal, and System In Passive Optical Network
US11323178B1 (en) Transport control based on layer 1 channel characteristics
US8654769B2 (en) Convergence of multicast traffic in response to a topology change
US20180262355A1 (en) Method for multicast packet transmission in software defined networks
CN108964944B (en) Execution strategy issuing method, processing method and device for remote management operation
EP2728797A1 (en) Message processing method, device and system
EP2320598B1 (en) Multicast processing method and apparatus
US6801497B1 (en) Method to provide a management channel, a line terminator, a first network terminator card and a second network terminator card realizing such a method and an access network
CN108966055B (en) Method and system for realizing port attribute switching according to multicast service in PON
EP2422488B1 (en) Method and apparatus for fault-resilient multicast and unicast in transport networks
US11153214B2 (en) In service flow capability update in guaranteed bandwidth multicast network
CN111615019B (en) Method, apparatus and computer readable storage medium implemented in an optical network
CN110536187B (en) Method for forwarding data and access stratum switching equipment
WO2015127735A1 (en) Method and apparatus for implementing ring network user security
KR20060112713A (en) Method of controlling osi(iso) layer-two loops for telecommunication networks
CN102932186B (en) Trunking system and method of removing loop circuits
CN108900440B (en) Message forwarding method and device
CN110945847B (en) Method, device and system for rapidly recovering service in path switching process
CN112118493A (en) Method and system for realizing multicast protocol in ERPS looped network
KR101767439B1 (en) Method, apparatus and computer program for managing paths for packets of software defined network
EP3873139A1 (en) Method for an improved operation of a broadband access network of a telecommunications network and/or for an improved and/or more energy efficient operation of the broadband access network, broadband access network or telecommunications network, and system, program and computer-readable medium
WO2024002275A1 (en) Trunk optical path protection method and system, optical matrix device, electronic device, and medium

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