METHOD FOR INDICATING MULTICAST FORWARDING ENTRY AND DEVICE
20220060344 · 2022-02-24
Inventors
Cpc classification
H04L12/1854
ELECTRICITY
H04L2101/622
ELECTRICITY
International classification
Abstract
Embodiments of the present disclosure provide a method for indicating a multicast forwarding entry and a device. The method includes: receiving a packet from a first node, wherein the packet comprises a multicast control message and an access loop identifier; obtaining, according to a multicast Internet Protocol (IP) address in the multicast control message, a multicast Media Access Control (MAC) address; obtaining an identifier of a first port according to the access loop identifier, wherein the first port is an egress port, on the multicast path, of the first port; sending a first forwarding entry to the first node, wherein a destination address of the first forwarding entry is the multicast MAC address and egress port information of the first forwarding entry is the identifier of the first port.
Claims
1. A method for indicating a multicast forwarding entry, comprising: receiving a packet from a first node, wherein the packet comprises a multicast control message and an access loop identifier; obtaining, according to a multicast Internet Protocol (IP) address in the multicast control message, a multicast Media Access Control (MAC) address; obtaining an identifier of a first port according to the access loop identifier, wherein the first port is an egress port, on a multicast path corresponding to the access loop identifier, of the first port; generating a first forwarding entry, wherein a destination address of the first forwarding entry is the multicast MAC address, and egress port information of the first forwarding entry is the identifier of the first port; and sending the first forwarding entry to the first node.
2. The method according to claim 1, further comprising: obtaining an identifier of a second port according to the access loop identifier, wherein the second port is an egress port, on the multicast path, of the second port; and sending a second forwarding entry to the second node, wherein a destination address of the second forwarding entry is the multicast MAC address, and egress port information of the second forwarding entry is the identifier of the second port.
3. The method according to claim 1, wherein the access loop identifier is an identifier of the first port.
4. The method according to claim 1, wherein the obtaining an identifier of a first port according to the access loop identifier comprises: obtaining, according to the access loop identifier and a pre-stored mapping relationship between the access loop identifier and port information of each network node, the identifier of the first port; or obtaining, according to the access loop identifier, a pre-stored mapping relationship between the access loop identifier and port information of each network node and a multicast path corresponding to the access loop identifier determined by a pre-stored network topology relationship, the identifier of the first port; or sending the access loop identifier to a server, wherein a network topology relationship and a mapping relationship between the access loop identifier and port information of each network node are pre-stored in the server; and receiving the identifier of the first port fed back by the server.
5. The method according to claim 2, wherein the access loop identifier comprises the identifier of the first port and the identifier of the second port, the obtaining an identifier of a second port according to the access loop identifier comprises: obtaining the identifier of the second port from the access loop identifier.
6. The method according to claim 1, wherein the obtaining, according to a multicast Internet Protocol (IP) address in the multicast control message, a multicast Media Access Control (MAC) address comprises: obtaining, according to the multicast IP address in the multicast control message and a stored mapping relationship between the multicast IP address and the multicast MAC address, the multicast MAC address.
7. The method according to claim 1, wherein the multicast control message is an Internet Group Management Protocol (IGMP) packet or a Multicast Listener Discovery (MLD) protocol packet.
8. The method according to claim 7, further comprising: sending the IGMP packet or the MLD protocol packet to a node other than the first node; or generating a multicast routing protocol packet according to the IGMP packet or the MLD protocol packet and sending the multicast routing protocol packet to a node other than the first node.
9. A device for indicating a multicast forwarding entry, the device comprising a processor and a memory having processor-executable instructions stored thereon, wherein execution of the processor-executable instructions by the processor cause the device to: receive a packet from a first node, wherein the packet comprises a multicast control message and an access loop identifier; obtain, according to a multicast Internet Protocol (IP) address in the multicast control message, a multicast Media Access Control (MAC) address; obtain an identifier of a first port according to the access loop identifier, wherein the first port is an egress port, on a multicast path corresponding to the access loop identifier, of the first port; generate a first forwarding entry, wherein a destination address of the first forwarding entry is the multicast MAC address, and egress port information of the first forwarding entry is the identifier of the first port; and send the first forwarding entry to the first node.
10. The device according to claim 9, wherein execution of the instructions further cause the device to: obtain an identifier of a second port according to the access loop identifier, wherein the second port is an egress port, on a multicast path, of the second port; and send a second forwarding entry to the second node, wherein a destination address of the second forwarding entry is the multicast MAC address and egress port information of the second forwarding entry is the identifier of the second port.
11. The device according to claim 9, wherein the access loop identifier is an access loop identifier of the first port.
12. The device according to claim 9, wherein execution of the instructions cause the device to: obtain, according to the access loop identifier and a pre-stored mapping relationship between the access loop identifier and port information of each network node, the identifier of the first port; or obtain, according to the access loop identifier, a pre-stored mapping relationship between the access loop identifier and port information of each network node and a multicast path corresponding to the access loop identifier determined by a pre-stored network topology relationship, the identifier of the first port; or send the access loop identifier to a server, wherein a network topology relationship and a mapping relationship between the access loop identifier and port information of each network node are pre-stored in the server; and receive the identifier of the first port fed back by the server.
13. The device according to claim 10, wherein the access loop identifier comprises the identifier of the first port and the identifier of the second port, and execution of the instructions cause the device to obtain the identifier of the second port from the access loop identifier.
14. The device according to claim 9, wherein execution of the instructions cause the device to obtain, according to the multicast IP address in the multicast control message and a stored mapping relationship between the multicast IP address and the multicast MAC address, the multicast MAC address.
15. The device according to claim 9, wherein the multicast control message is an Internet Group Management Protocol (IGMP) packet or a Multicast Listener Discovery (MLD) protocol packet.
16. The device according to claim 15, wherein execution of the instructions further cause the device to: send the IGMP packet or the MLD protocol packet to a node other than the first node; or generate a multicast routing protocol packet according to the IGMP packet or the MLD protocol packet and send the multicast routing protocol packet to a node other than the first node.
17. A communication system, comprising a first node and an access controller, wherein the first node is configured to send a packet to the access controller, wherein the packet comprises a multicast control message and an access loop identifier; and wherein the access controller is configured to: obtain, according to a multicast Internet Protocol (IP) address in the multicast control message, a multicast Media Access Control (MAC) address; obtain an identifier of a first port according to the access loop identifier, wherein the first port is an egress port, on a multicast path corresponding to the access loop identifier, of the first port; generate a first forwarding entry, wherein a destination address of the first forwarding entry is the multicast MAC address, and egress port information of the first forwarding entry is the identifier of the first port; and send the first forwarding entry to the first node.
18. The communicating system according to claim 17, wherein the system further comprises a second node, wherein the access controller is further configured to: obtain an identifier of a second port according to the access loop identifier, wherein the second port is an egress port, on the multicast path, of the second port; and send a second forwarding entry to the second node, wherein a destination address of the second forwarding entry is the multicast MAC address and egress port information of the second forwarding entry is the identifier of the second port.
19. The communicating system according to claim 17, wherein the access loop identifier is an access loop identifier of the first port.
20. The communicating system according to claim 17, wherein the access controller is further configured to: obtain, according to the access loop identifier and a pre-stored mapping relationship between the access loop identifier and port information of each network node, the identifier of the first port; or obtain, according to the access loop identifier, a pre-stored mapping relationship between the access loop identifier and port information of each network node and a multicast path corresponding to the access loop identifier determined by a pre-stored network topology relationship, the identifier of the first port; or send the access loop identifier to a server, wherein a network topology relationship and a mapping relationship between the access loop identifier and port information of each network node are pre-stored in the server; and receive the identifier of the first port fed back by the server.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0055] To illustrate the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description are some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings according to these accompanying drawings without creative efforts.
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
DESCRIPTION OF EMBODIMENTS
[0065] To make the objectives, technical solutions, and advantages of embodiments of the present disclosure clearer, the following clearly and completely describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure shall fall within the protection scope of the present disclosure.
[0066] The embodiments of the present disclosure provide a method for indicating a multicast forwarding entry and a device, so as to enable each network node to acquire a multicast forwarding entry without parsing an IGMP packet or an MLD packet.
[0067] Referring to
[0068] Referring to
[0069] S310. A multicast control message and an access loop identifier sent by a first node are received.
[0070] S320. An identifier of a first port of a second node and an identifier of a second port of a third node on a multicast path corresponding to the access loop identifier are determined, where both the first port and the second port are egress ports on the multicast path.
[0071] S330. According to a multicast Internet Protocol IP address in the multicast control message, a multicast Media Access Control (MAC) address corresponding to the multicast path is determined.
[0072] S340. A first forwarding entry is sent to the second node, where a destination address of the first forwarding entry is the multicast MAC address and egress port information of the first forwarding entry is the identifier of the first port.
[0073] S350. A second forwarding entry is sent to the third node, where a destination address of the second forwarding entry is the multicast MAC address and egress port information of the second forwarding entry is the identifier of the second port.
[0074] According to the embodiment of the present disclosure, a separate controller device is used to generate a multicast forwarding entry for a second node and a third node on a multicast path according to a message from a first node, so as to enable the second node and the third node to acquire a multicast forwarding entry of the current node without receiving and parsing an IGMP packet or an MLD packet from a previous hop node of the current node, avoiding a problem of failing to parse an IGMP or MLD message to establish multicast forwarding entry respectively by the second node and the third node when IGMP or MLD protocol versions of the first node, the second node and the third node are different.
[0075] Further, with reference to a flow shown in
[0076] S410. A multicast control message and an access loop identifier sent by an edge node of a network administration domain are received, where the multicast control message is an internet group management protocol (IGMP) packet or a Multicast Listener Discovery protocol (MLD) packet.
[0077] S420. Port information of each network node on a multicast path corresponding to the access loop identifier is determined according to the access loop identifier, respectively, and a multicast media access control (MAC) address corresponding to the multicast path is determined according to a multicast internet protocol IP) address in the IGMP packet or the MLD packet.
[0078] S430. With respect to the each network node on the multicast path, a multicast forwarding entry corresponding to a network node is formed by port information of the network node and the multicast MAC address, and then the multicast forwarding entry is sent to the network node.
[0079] The edge node is an ingress network node or an egress network node in a current network administration domain. With respect to a multicast service, the edge node is generally an ingress network node or an egress network node on a multicast path within a network administration domain. The network node may be a device such as customer premises equipment (CPE), an AN (for example, an ONU/DSLAM/OLT), or an aggregation node, or a router (for example, a BNG/BRAS). The multicast control message includes an IGMP/MLD and an access loop identifier (Line ID).
[0080] Optionally, the access loop identifier is an access loop identifier of the edge node; in step 5420, the port information of each network node on a multicast path corresponding to the access loop identifier is determined according to the access loop identifier respectively includes: [0081] determining, according to the access loop identifier of the edge node, a pre-stored mapping relationship between the access loop identifier and the port information of each network node, and the multicast path corresponding to the access loop identifier of the edge node determined according to a pre-stored network topology relationship, the port information of each network node on the multicast path corresponding to the access loop identifier of the edge node; or [0082] sending the access loop identifier of the edge node to a server, where a mapping relationship between the access loop identifier and the port information of the each network node and a network topology relationship are pre-stored in the server; receiving the port information of the each network node on the multicast path corresponding to the access loop identifier of the edge node fed back by the server.
[0083] That is, a separate server may be set and an access controller may inquire the port information of the each network node on the multicast path corresponding to the access loop identifier from the server; or the access controller may preset the mapping relationship between the access loop identifier and the port of the each network node and the network topology relationship, and the access controller may inquire the mapping relationship and the network topology relationship to obtain the port information of the each network node.
[0084] The access loop identifier is an identifier that is widely used in various network systems, and with respect to a digital subscriber line (DSL) system or an Ethernet (ETH) access system, formats of the access loop identifier are as follows: [0085] when an AN accesses a DSL line based on an asynchronous transfer mode (ATM), the access loop identifier is Access-Node-Identifier atm slot/port:vpi.vci. when the AN accesses a DSL/ETH line base on an ETH, a format of the access loop identifier is Access-Node-Identifier eth slot/port [:vlan-id]. Where the Access-Node-Identifier is an identifier of the AN; the slot/port is one or any combination of information such as a chassis number, a rack number, a frame number, a slot number, a sub-slot number, a port number on the AN, and specific content thereof is related to a layout condition of a device in a field; the vpi.vci is a virtual path identifier and a virtual channel identifier on a DSL line; “[ ]” in the format indicates it is optional.
[0086] With respect to a passive optical network (PON) system, the access loop identifier has two format options as follows:
[0087] Option 1 is that the access loop identifier only includes port information of an ONU and formats are as follows: when the ONU accesses a DSL line based on an ATM, a format is ONUID atm slot2/port2:vpi.vci. When the ONU accesses a DSL line based on an ETH, a format is ONUID eth slot2/port2[:vlan-id]. Normally, with respect to an ONU port, the vlan-id is a C-VLAN ID (Customer VLAN ID, customer virtual local area network identifier), which is used for identifying a user or an access line, and the vlan-id is generally added or removed by the ONU.
[0088] Option 2 is that the access loop identifier not only includes port information of an ONU, but also includes port information of an OLT, and formats are as follows: when the ONU accesses a DSL line based on an ATM, a format is Access-Node-Identifier atm slot1/port1/ONUID/slot2/port2:vpi.vci. When the ONU accesses a DSL/ETH line based on an ETH, a format is Access-Node-Identifier eth slot1/port1/ONUID/slot2/port2[:vlan-id]. Where the Access-Node-Identifier is an identifier of the OLT; the slot1/port1is one or any combination of a chassis number, a rack number, a frame number, a slot number, a sub-slot number and a port number on the OLT, and specific content is related to field layout condition of a device; the slot2/port2 is one or the any combination of a chassis number, a rack number, a frame number, a slot number, a sub-slot number and a port number on the ONU.
[0089] In a word, an access loop identifier reported by a network node includes port information, and each node on a multicast path and port information thereof may be determined according to the access loop identifier reported by the network node.
[0090] Optionally, the access loop identifier is an access loop identifier of each access node on the multicast path; in step S420, the port information of each network node on a multicast path corresponding to the access loop identifier is determined according to the access loop identifier respectively includes: [0091] acquiring, according to the access loop identifier of each access node on the multicast path, the port information included in the access loop identifier of each access node on the multicast path, respectively.
[0092] That is, in a scenario shown in
[0093] Specifically, in the step S420, that a multicast Media Access Control (MAC) address corresponding to the multicast path is determined according to a multicast Internet Protocol IP address in the multicast control message includes: [0094] determining, according to the multicast IP address in the multicast control message and a predetermined mapping relationship between the multicast IP address and the multicast MAC address, the multicast MAC address corresponding to the multicast path.
[0095] Specifically, after the step S410, the method further includes: sending the IGMP packet or the MLD packet to another edge node except the edge node; or [0096] generating a multicast routing protocol packet according to the IGMP packet or the MLD packet and sending the multicast routing protocol packet to another edge node except the edge node.
[0097] When the another edge node (for example, Node n in
[0098] A diagram of message flow in the foregoing embodiment is shown in
[0099] Several specific embodiments of the present disclosure will be given below.
[0100] Referring to
[0101] S610. A user sends an IGMP/MLD packet to a remote access node (Remote AN).
[0102] S620. The Remote AN sends the IGMP/MLD packet and a Line ID to an access controller by extending an openflow message.
[0103] S630. The access controller sends an AAA message to an AAA (an abbreviation of Authentication, Authorisation and Accounting) server, where the Line ID is carried in the AAA message, and the AAA message is used for inquiring port information.
[0104] S640. The AAA server obtains port information corresponding to network nodes at all levels according to the Line ID.
[0105] S650. The AAA server sends an AAA message to the access controller, where the Line ID and the port information corresponding to the network nodes at all levels are carried in the AAA message.
[0106] S660. The access controller acquires a multicast IP address according to the IGMP/MLD packet, forms group membership entries at all levels according to the port information and the multicast IP address and maps the multicast IP address to a multicast MAC address, so as to further form corresponding multicast forwarding entries at all levels.
[0107] S670. Corresponding multicast forwarding entries on the network nodes at all levels are configured through an openflow protocol.
[0108] S680. A corresponding multicast forwarding entry is sent to each network node through an openflow message.
[0109] S690. The each network node implements multicast forwarding entry configuration.
[0110] In the specific embodiment 1, when the Remote AN is an ONU, an AN 1 is an OLT and an AN 2 is a DSLAM, the Line ID carried in the openflow message in the step S620 may be Option 1, and in this case, the access controller inquires the AAA server to obtain port information of the OLT and the DSLAM according to Line ID information; or the Line ID carried in the openflow message in the step S620 is Option 2, the ONU needs to obtain or set port information of the OLT in advance, and in this case, the access controller inquires the AAA server to obtain port information of the DSLAM according to Line ID information.
[0111] Referring to
[0112] S710. A user sends an IGMP/MLD packet to an ONU.
[0113] S720. The ONU sends the IGMP/MLD packet and a Line ID 1 (port information of the ONU) to an OLT by extending an openflow message.
[0114] S730. The OLT sends the IGMP/MLD packet and a Line ID 2 (port information of the ONU and port information of the OLT) to an access controller by extending an openflow message.
[0115] S740. The access controller acquires a multicast IP address according to an IGMP/MLD packet, forms group membership entries at all levels according to the port information and the multicast IP address and maps the multicast IP address to a multicast MAC address, so as to further form corresponding multicast forwarding entries at all levels.
[0116] S750. Corresponding multicast forwarding entries on the network nodes at all levels are configured through an openflow protocol.
[0117] S760. A corresponding multicast forwarding entry is sent to each network node through an openflow message.
[0118] S770. The each network node implements multicast forwarding entry configuration.
[0119] Referring to
[0125] Optionally, the access loop identifier received by the first receiving unit 810 is an access loop identifier of the first node.
[0126] The first determining unit 820 is specifically configured to: [0127] determine, according to the access loop identifier of the first node and a pre-stored mapping relationship between an access loop identifier and port information of each network node and a multicast path corresponding to the access loop identifier of the first node determined according to a pre-stored network topology relationship, the identifier of the first port of the second node and the identifier of the second port of the third node on the multicast path corresponding to the access loop identifier of the first node; or [0128] send the access loop identifier of the first node to a server, where a mapping relationship between the access loop identifier and the port information of each network node and a network topology relationship are pre-stored in the server; receive the identifier of the first port of the second node and the identifier of the second port of the third node on the multicast path corresponding to the access loop identifier of the first node fed back by the server.
[0129] Optionally, the access loop identifier received by the first receiving unit 810 includes an access loop identifier of the first node, an access loop identifier of the second node and an access loop identifier of the third node, and both the second node and the third node are on a multicast path corresponding to the access loop identifier of the first node.
[0130] The first determining unit 820 is specifically configured to: [0131] acquire, according to the access loop identifier of the second node and the access loop identifier of the third node on the multicast path, the identifier of the first port of the second node and the identifier of the second port of the third node on the multicast path, respectively.
[0132] Optionally, the second determining unit 830 is specifically configured to: [0133] determine, according to the multicast IP address in the multicast control message and a predetermined mapping relationship between the multicast IP address and the multicast MAC address, the multicast MAC address corresponding to the multicast path.
[0134] Optionally, the multicast control message received by the first receiving unit 810 is an internet group management protocol (IGMP) packet or a Multicast Listener Discovery protocol (MLD) packet.
[0135] Further, the device 80 also includes: [0136] a third sending unit, configured to send the IGMP packet or the MLD packet to a fourth node; or [0137] generate a multicast routing protocol packet according to the IGMP packet or the MLD packet and send the multicast routing protocol packet to a fourth node.
[0138] Further, the first receiving unit 810 is specifically configured to: [0139] receive the multicast control message and the access loop identifier sent by the first node according to an openflow protocol, or an access management or control protocol, or an Ethernet operation, administration and maintenance protocol, or a tunneling protocol.
[0140] Referring to
[0142] The memory 920 is configured to store a program. Specifically, the program may include a program code, and the program code includes a computer operating instruction. The memory may include a high-speed random access memory (RAM for short), and may further include a non-volatile memory, for example at least one magnetic disk memory.
[0143] The communication interface 930 is configured to communicate with each node.
[0144] When executing the program stored in the memory 920, the processor 910 may execute S310-S350 in the embodiment corresponding to
[0145] The forgoing processor may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short) or the like; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, a discrete gate or a transistor logic device or a discrete hardware component.
[0146] In a word, according to the embodiments of the present disclosure, control plane functions of a network node are centralized at an access controller side, and the network node is simplified as a programmable forwarding device. In this way the network node does not have to support listening/proxy of an IGMP/MLD, achieving decoupling the network node from a multicast service. The network node does not need to consider compatibility and matching with a terminal and a multicast router, thereby greatly reducing operation and maintenance complexity and management cost.
[0147] Those skilled in the art should understand that the embodiments of the present disclosure may be provided as a method, a system or a computer program product. Therefore, the present disclosure may adopt the forms of complete hardware embodiments, complete software embodiments or combined embodiments of software and hardware. Moreover, the present disclosure may adopt the form of a computer program product implemented on one or multiple computer available storage media (including, but not limited to, a disk storage, an optical memory) including computer available program codes.
[0148] The present disclosure is described in accordance with the flowchart and/or block diagram of the method, the device (system) and the computer program product in the embodiments of the present disclosure. It should be understood that, computer program instructions may achieve each flow and/or block in the flowchart and/or the block diagram and the combination of the flows and/or blocks in the flowchart and/or the block diagram. These computer program instructions may be provided to a general-purpose computer, a special-purpose computer, an embedded processor or processors of other programmable data processing devices to generate a machine, such that the instructions executed by the computers or the processors of the other programmable data processing devices generate apparatuses used for achieving appointed functions in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.
[0149] These computer program instructions may also be stored in a computer readable memory capable of guiding the computers or the other programmable data processing devices to work in particular manners, such that the instructions stored in the computer readable memory generate products including instruction apparatuses, and the instruction apparatuses achieve the appointed functions in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.
[0150] These computer program instructions may also be loaded onto the computers or the other programmable data processing devices, to execute a series of operation steps on the computers or the other programmable data processing devices to produce processing implemented by the computers, such that the instructions executed on the computers or the other programmable data processing devices provide steps used for achieving the appointed functions in one flow or multiple flows of the flowchart and/or one block or multiple blocks of the block diagram.
[0151] Obviously, persons skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. In this way, if these modifications and variations of the present disclosure belong to the scope of the claims of the present disclosure and the equivalent technologies thereof, then the present disclosure is intended to encompass these modifications and variations.