WO2008138248A1 - A method, an interface board and a router for transmitting the message - Google Patents

A method, an interface board and a router for transmitting the message Download PDF

Info

Publication number
WO2008138248A1
WO2008138248A1 PCT/CN2008/070806 CN2008070806W WO2008138248A1 WO 2008138248 A1 WO2008138248 A1 WO 2008138248A1 CN 2008070806 W CN2008070806 W CN 2008070806W WO 2008138248 A1 WO2008138248 A1 WO 2008138248A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast group
message
host
interface board
main control
Prior art date
Application number
PCT/CN2008/070806
Other languages
French (fr)
Chinese (zh)
Inventor
Haifeng Zhang
Yisong Liu
Xiaoniu Zhou
Songming Cheng
Original Assignee
Huawei 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008138248A1 publication Critical patent/WO2008138248A1/en

Links

Classifications

    • 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

Definitions

  • the present invention relates to the field of communications, and in particular, to a packet transmission method, an interface board, and a router. Background technique
  • the architecture of routers is mostly distributed.
  • the control plane implements the processing of the protocol
  • the data plane implements the forwarding of the packet.
  • the unit responsible for the control plane is called the main control board
  • the unit responsible for the data plane is called the interface board.
  • a distributed router generally has a main control board and multiple interface boards. After receiving the protocol text from the physical interface, the interface board sends the protocol packet to the main control board through the bus between the boards.
  • IP multicast is a subset of a given node in the network that transmits packets to the network in a best-effort manner. This subset is called a multicast group.
  • the basic idea of IP multicast is that the source host sends only one data. The destination address in this data is the multicast group address. All receivers in the multicast group can receive the same data copy, and only multicast. Hosts in the group can receive this data, and other hosts on the network cannot receive it.
  • the Internet Group Management Protocol is a protocol used by the IPv4 domain to implement hosts to join a specific multicast group.
  • IGMPvl/v2/v3 There are three versions, IGMPvl/v2/v3.
  • the host sends a report to the neighboring router to join a specific multicast group.
  • the router sets the multicast group timer and creates a corresponding multicast group to guide the forwarding.
  • the router periodically sends the general Query message to the host to determine whether there is a multicast group on each interface.
  • the host adds the host to the multicast group to Report.
  • the packet is sent to the neighboring router.
  • the router updates the multicast group timer. If the Report message of a certain group is not received within a period of time, the multicast is displayed. The group timer expired and the status of this group has been deleted.
  • the sending of Leave packets is added based on vl. If the host leaves a multicast group, it sends a Leave message to the neighboring router. After receiving the router, immediately send a group-Query Query message to determine if there are other hosts under this interface that you want to continue. After receiving the data of this multicast group, all hosts that have not left this group resend the Report message to indicate the existence of the host.
  • the source filtering mechanism is added on the basis of v2.
  • the host sends a Report message to indicate that the host only wants to receive data from certain specific sources, or data from other sources except for some specific sources. Both can be received, corresponding to two states: INCLUDE (A) (indicating that other sources outside the A set are not received) and EXCLUDE (B) (representing data from other sources outside the B set are acceptable); After querying the message, respond to the IS-IN or IS-EX type Report message according to the status of each group. If the source that the host can receive increases or decreases, the active send type is ALLOW (increase) to BLOCK (decrease). Type Report message. A packet that causes the status of the multicast group to change is called a status change message.
  • the status of the multicast group sent by each host is changed to the main control board through the interface board and bus connected to the host.
  • the query message sent by the main control board to each host is sent to each host connected to the interface board through the bus.
  • the router sends a query message sent by the router.
  • Each host on the network responds to the main control board with a current interface board.
  • the multicast group status file is transmitted from the interface board to the main control board through the bus; thus, the bus channel between the main control board and the interface board is determined by the bandwidth.
  • the main control board When there are many packets to be transmitted, it may cause Blocking, causing bottlenecks in protocol packet processing. That is, the main control board needs to process the packets received by multiple interface boards in the router. When a large number of packets are uploaded on the network, the main control board cannot process a large number of packets in a short period of time, resulting in a group of hosts. The broadcast group status packet is discarded, and the host in the network cannot get the response of the router in time, which causes the tasks of the entire network to lag, and the data exchange in the network is not smooth.
  • the present invention provides a packet transmission method, an interface board and a router for implementing the method, so as to improve the efficiency of processing a message by a router.
  • the present invention provides a method for message transmission, including:
  • the interface board receives the multicast group status change message sent by the first host; the interface board sends the query message to the second host; if the interface board does not receive the multicast group status message fed back by the second host within the specified time, Updating the multicast group status according to the multicast group status change message, and sending the preset number to the main control board The multicast group status change message.
  • the present invention further provides a method for transmitting a message, where the message is a join message, the method includes: receiving, by the interface board, a join message sent by the first host; When the host sends the multicast group recorded in the join message, the interface board adds the multicast group recorded in the join message, and sends a preset number of the join message to the main control board.
  • the invention also provides an interface board, comprising:
  • the first packet receiving unit is configured to receive a multicast group status change message sent by the first host
  • the query message sending unit is configured to receive the multicast group status change report in the first packet receiving unit.
  • the Query message is sent to the second host, where the update unit is configured to receive the multicast group state change message fed back by the second host within the specified time, according to the received by the first message receiving unit.
  • the multicast group status change message is used to update the multicast group status stored in the interface board, and the sending unit is configured to: after the first packet receiving unit receives the multicast group status change message, and is within a specified time When the multicast group state change packet is not received by the second host, the preset number of the multicast group state change packet received by the first packet receiving unit is sent to the main control board.
  • the present invention further provides another interface board, including: a first packet receiving unit, configured to receive a join message sent by the first host; a storage unit, configured to store a multicast group list; and an adding unit, configured to When the multicast group recorded in the join message received by the first packet receiving unit is not stored in the storage unit, the multicast group recorded in the join message is added, and the sending unit is configured to send the first report.
  • the join message received by the text receiving unit is sent to the main control board.
  • the present invention further provides a router, including: an interface board, configured to: receive a packet sent by a host, and send an inquiry message to the host; if the multicast group status message sent by the host is not received within a specified time, And updating the multicast group status according to the packet sent by the host, and sending a preset number of the packets sent by the host; the main control board, configured to receive the preset number of the sent by the interface board The packet sent by the host updates the state of the multicast group according to the preset number of packets sent by the host.
  • the interface board after receiving the multicast group state change message, the interface board sends an Query message to the second host in the network to query the current multicast group status of the second host in the network. After receiving the multicast group status packet sent by the second host, the board resets the multicast group timer. When the board receives the multicast group status packet sent by the second host in the network, it sends the packet to the main control board. The preset number of multicast group status changes packets; so the router interface board processes the packets received by itself, which will be required.
  • the packet processed by the main control board is processed by the interface board that receives the packet, which reduces the data traffic of the bus between the interface board and the main control board, and prevents data congestion on the bus between the interface board and the main control board. Speed up the speed at which the router processes the packets sent by the host in the network.
  • FIG. 1 is a schematic diagram of a method for transmitting a message according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a method for transmitting a multicast group source state change message according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a method for joining a message transmission according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a method for leaving a message transmission according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of an interface board according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a router according to an embodiment of the present invention.
  • FIG. 1 Please refer to FIG. 1 for a flowchart of a method for transmitting a message provided by the present invention.
  • the message transmission in the embodiment of the present invention can be understood as that after receiving the packet sent by the host in the network, the router interface board sends the packet to the main control board of the router after corresponding processing.
  • the method includes the steps of:
  • the interface board receives the multicast group status change message sent by the first host.
  • the first host is a host in the network that sends a multicast group status change message to the router.
  • the interface board sends a query message to the second host
  • the second host is a host in the network that does not send a multicast group state change message to the interface.
  • the interface board sends a query message to the second host to query whether the second host that does not send the multicast group status change packet in the network also needs to change the status of the multicast group. If the interface board receives the second host within the specified time. If the current multicast group status message is fed back, the process proceeds to step S3). If the interface board does not receive the current multicast group status message fed back by the second host in the network within the specified time, step S4) is performed.
  • the multicast group timer is reset to zero.
  • the multicast group timer can also be reset. The following types are similar and will not be described again.
  • the multicast group timer is reset to zero. The following steps are not performed and the process ends. a list of multicast groups stored in the router, The router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
  • the interface board When the interface board receives the multicast group state change packet sent by the first host, the interface board sends a number of last member query packets to the second host to query the first packet of the multicast group state change packet. Whether the host is the last host in the multicast group; the interface board sends a number of last member query messages in a certain interval. The interval is called the last member query interval. The interface board sends several last member query reports. The number of times is called the last member query count. The specified time in the current multicast group status message that the interface board receives the feedback from the host within the specified time is: the value obtained by multiplying the last member query interval by the last member query number. If the current multicast group status packet sent by the second host is received, the last member query packet is not sent.
  • the interface board updates the multicast group status according to the multicast group status change message
  • the interface board When the interface board does not receive the current multicast group status message fed back by the host within the specified time, the interface board updates the multicast group status according to the multicast group status change message, and executes S5).
  • the specified time is not specified in the current multicast group status message fed back by the host within the specified time.
  • the specified time is: the value obtained by multiplying the last member query interval by the last member query.
  • the interface board sends a preset number of multicast group state change packets to the main control board;
  • the interface board After the interface board receives the multicast group status change packet sent by the first host in the network, if the multicast group status change packet causes the current status of the multicast group to change, the interface board sends the multicast group sent by the first host. One or several of the changed messages are sent to the main control board.
  • the preset number of multicast group change packets is set in the interface board.
  • the number of multicast group status change packets sent by the interface board to the main control board can be set to 1, 2, 3, and so on.
  • the preset number of the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets that the interface board reports to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
  • the main control board updates the multicast group status according to the multicast group status message.
  • the multicast group timer in the main control board is not timed out.
  • the main control board After receiving the multicast group status change packet, the main control board directly modifies the multicast group status stored by the multicast group according to the multicast group status change message.
  • the present invention provides an embodiment of message delivery for different content in accordance with the above-described message delivery general method map.
  • the following describes how to change the packet according to the status of different multicast groups, and describe the processing steps after the interface board receives the packet and the processing steps of the main control board.
  • FIG. 2 is a flow chart of a method for transmitting a multicast group source state change message according to an embodiment of the present invention, where the method includes the following steps:
  • the interface board receives the multicast group source state change packet sent by the first host.
  • the first host is a host in the network that sends a multicast group state change message to the router.
  • the interface board sends a group source query message to the second host.
  • the second host in the network is a host in the network that does not send a multicast group source state change message to the interface.
  • the interface board sends a group source query message to the second host in the network to query whether the host that does not send the group source query message on the network also needs to change the source state of the multicast group.
  • the interface board receives the feedback from the host within the specified time. Step A3) is performed when the current multicast group source status message is received. If the interface board does not receive the current multicast group source status message fed back by the second host in the network within the specified time, step A4) is performed.
  • the specified time is specifically as follows: The value obtained by multiplying the last member query interval by the last member query count.
  • the interface board resets the multicast group timer to zero. It should be noted that, if the multicast group timer expires, the interface board deletes the multicast group; the interface board sends the leave message to the main control board, and the main control board deletes the leave message after receiving the leave message sent by the interface board.
  • the multicast group recorded in .
  • the interface modifies the multicast group source state according to the multicast group source state change packet, which includes the following situations, but is not limited thereto:
  • Scenario 1 Assuming that the current group status is INCLUDE (A), the interface board receives the multicast group status change message transmitted by the first host in the network as a TO_IN (B) message (the TOJN (B) message indicates the source of the group. The list is changed to B set), then the interface board changes the source state of the group to INCLUDE ( B ).
  • Scenario 2 Assuming that the current group's state is INCLUDE(A) and the interface board receives the TO_EX (B) message transmitted by the first host in the network, the interface board changes the source state of the group to EXCLUDE ( NULL, B ). EXCLUDE ( NULL, B ) indicates that sources other than the B set are receivable.
  • Scenario 3 Assuming that the current group's state is INCLUDE(A) and the interface board receives the ALLOW (B) message from the first host in the network, the interface board changes the source state of the group to INCLUDE (A+B).
  • Scenario 4 Assuming that the current group's state is INCLUDE(A) and the interface board receives the BLOCK (B) message from the first host in the network, the interface board changes the source state of the group to INCLUDE (A-B).
  • Scenario 5 Assuming that the current group's state is EXCLUDE (X, Y) and the interface board receives the first host TO-IN (A) message in the network, the interface board modifies the source state of the group to INCLUDE ( A ).
  • Scenario 6 Assuming that the current group's state is EXCLUDE (X, Y), the interface board receives the first host TO_EX (A) message in the network, the interface board changes the source state of the group to EXCLUDE ( NULL, A ) .
  • Scenario 7 Assuming that the current group's status is EXCLUDE (X, Y) and the interface board receives the first host ALLOW (A) message in the network, the interface board changes the source state of the group to EXCLUDE (X+A, YA). .
  • Scenario 8 Assuming that the current group status is EXCLUDE (X, Y) and the interface board receives the first host BLOCK (A) message in the network, the interface board changes the source state of the group to EXCLUDE (XA, Y+A). .
  • the interface board sends a preset number of multicast group source state change packets to the main control board.
  • the preset number of multicast group change packets is the number of multicast group source state change packets sent to the main control board preset in the interface board. It can be set to 1, 2, 3, and so on. Those skilled in the art can set according to the current network conditions and the workingability of the router; the preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
  • the main control board modifies the source status of the multicast group stored on the main control board according to the multicast group source status message. After receiving the multicast group source status change packet, the main control board modifies the information according to the multicast group status change. Status of the multicast group stored on the main control board.
  • the group timer set on the main control board does not time out.
  • the status of the multicast group changes as follows:
  • Case 1 Assuming that the current group's state is INCLUDE (A), it receives the TO-IN transmitted by the interface board. (B) Message, then the state of the group is changed to INCLUDE (B).
  • Scenario 3 Assume that the current group's state is INCLUDE(A) and receives the ALLOW transmitted by the interface board.
  • Scenario 5 Assuming that the current group's state is EXCLUDE (X, Y), the TO_IN (A) message transmitted by the interface board is received, and the state of the group is changed to INCLUDE (A).
  • Case 7 Assuming that the current group's state is EXCLUDE (X, Y), the ALLOW (A) message transmitted by the interface board is received, and the state of the group is changed to EXCLUDE (X+A, Y-A).
  • Scenario 8 Assume that the current group's state is EXCLUDE (X, Y), received by the interface board.
  • the router ends the processing of the packet sent by the network that causes the state of the multicast group source to change.
  • FIG. 3 is a schematic diagram of an embodiment of join message transmission according to an embodiment of the present invention.
  • the interface board receives the join message sent by the first host
  • the first host is a host in the network that sends a join message to the router.
  • step B2) is performed; when the multicast group recorded in the join message sent by the first host is not stored in the interface board, Perform step B3).
  • the interface board resets the multicast group timer to zero and adds the first host to the multicast group.
  • the interface board resets the multicast group timer to zero and adds the first host to the multicast recorded in the join message. In the group, the following steps are no longer performed and the current process ends.
  • the interface board deletes the multicast group and sends the multicast group to the main control board.
  • Sending a Leave message the main control board deletes the multicast group recorded in the Leave message.
  • the router lists the multicast group list stored in the router.
  • the router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
  • the interface board adds the multicast group, and sends a preset number of join messages to the main control board; the preset number of join messages is the number of join messages sent to the main control board preset in the interface board. , can be set to 1, 2, 3, etc. Those skilled in the art can set according to the current network conditions and the operability of the router.
  • the preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
  • the interface board sends the join message sent by the first host in the network to the main control board in the form of a report message. Add the multicast group recorded in the join message to the interface board, and go to step B4).
  • the main control board stores the multicast groups recorded in the join message.
  • FIG. 4 is a schematic diagram of an embodiment of leaving message transmission according to an embodiment of the present invention.
  • the interface board receives the leaving message sent by the first host
  • the first host is a host that sends a leaving message to the router interface board.
  • the interface board sends a group query message to the second host
  • the second host is a host in the network that does not send a leaving message to the router.
  • the group query message is sent by the router to the host to query whether the host wants to quit the multicast group recorded in the leave message.
  • the interface board receives the join message sent by the second host in the network within the specified time, the interface board performs step C3).
  • the interface board does not receive the join message sent by the second host in the network within the specified time, the interface board performs step C4.
  • the specified time is specifically: The value obtained by multiplying the last member query interval by the last member query count.
  • the interface board deletes the multicast group; the interface board sends a leave message to the main control board, and the main control board deletes the multicast group recorded in the leave message. .
  • the interface board does not modify the stored multicast group. Storing in the router After storing the multicast group list, the router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
  • the interface board deletes the multicast group recorded in the leaving message
  • the interface board deletes the records of the multicast group recorded in the leaving packet stored in the interface.
  • the interface board sends a preset number of leaving messages to the master control
  • the preset number of leaving packets is the number of outgoing packets sent to the main control board, which are preset in the interface board, and can be set to 1, 2, 3, and so on. Those skilled in the art can set according to the current network conditions and the operability of the router.
  • the preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
  • the interface board sends the Leave message sent by the host to the main control board in the form of a leave message.
  • the main control board deletes the multicast group recorded in the leaving message
  • the MPU After receiving the Leave message, the MPU deletes the record of the multicast group recorded in the Leave message stored by itself.
  • FIG. 5 is a structural diagram of an interface board according to an embodiment of the present invention.
  • the interface board includes:
  • the first packet receiving unit 110 is configured to receive a multicast group state change packet sent by the first host
  • the query packet sending unit 120 is configured to receive the multicast group state in the first packet receiving unit. After the packet is changed, the query message is sent to the second host.
  • the updating unit 130 is configured to: in the interface board, change the multicast group status change message that is not received by the second host, and update the interface board according to the multicast group status change message received by the first message receiving unit.
  • the sending unit 140 is configured to: after the first packet receiving unit receives the multicast group state change message, and does not receive the multicast group state change message fed back by the second host within a predetermined time, The number of the multicast group state change packets is sent to the main control board.
  • the interface board further includes: a second packet receiving unit 150, configured to perform the query After the packet sending unit sends the query message to the second host, it receives the multicast group status report fed back by the second host.
  • a second packet receiving unit 150 configured to perform the query After the packet sending unit sends the query message to the second host, it receives the multicast group status report fed back by the second host.
  • the timer processing unit 160 is configured to reset the multicast group timer when the second packet receiving unit receives the multicast group status message fed back by the second host in the network within a predetermined time.
  • the interface board is configured as follows:
  • the first packet receiving unit 110 is configured to receive a join message sent by the first host.
  • the storage unit 170 is configured to store a multicast group list.
  • the adding unit 180 is configured to: when the storage unit does not store the multicast group recorded in the join message received by the first packet receiving unit, add the multicast group recorded in the join message;
  • the sending unit 140 is configured to send the join message received by the first packet receiving unit to the main control board.
  • the interface board further includes a timer processing unit 160, which is different from the multicast group list stored by the interface board storage unit;
  • the timer processing unit 160 is configured to: when the storage unit stores the multicast group recorded in the join message received by the first packet receiving unit, reset the multicast group timer;
  • the adding unit 180 is further configured to add the first host to the multicast group of the added text record received by the first receiving unit.
  • the interface board can transmit the multicast source state change packets, join the packet, and leave the packet. Therefore, the interface board is different according to the different description of the packet. Structures exist in an interface board.
  • FIG. 6 is a structural diagram of a router according to an embodiment of the present invention.
  • the router includes:
  • the interface board 100 is configured to: receive a packet sent by the host, and send a query message to the host; if the multicast group status message sent by the host is not received within the specified time, the packet is sent according to the host Updating the multicast group status, and sending a preset number of packets sent by the host;
  • the interface board includes: a first message receiving unit, a query message sending unit, an updating unit, and a sending unit, and functions and functions of the respective units are as described above, and details are not described herein again.
  • the main control board 200 is configured to receive the preset number of packets sent by the interface board, and according to the The preset number of messages sent by the host updates the state of the multicast group.
  • the main control board includes: a first message receiving unit, a storage unit, an adding unit, and a sending unit, and functions and functions of the respective units are as described above, and are not described herein.
  • the function of the router interface board is refined.
  • the interface board 100 receives the multicast group status message sent by the host within the specified time, the multicast group timer is reset.
  • each interface board is connected to the main control board.
  • the embodiment of the present invention separately describes the processing of the multicast group source state change packet and the leaving packet interface board, and the processing of the main control board and the main control board; the specific message transmission process is convenient to implement. .
  • the interface board after the interface board receives the join message, if the interface board itself stores the multicast group recorded in the join message, the interface board only updates its own state, and no interface is added to the interface board.
  • the multicast group recorded in the packet sends the preset number of join messages to the main control board. The number of packets sent between the interface board and the main control board is reduced, and the data traffic on the bus is reduced.
  • the interface board deletes the multicast group, and then sends the leaving packet of the multicast group to the main control board to reduce the processing of the main control board. The amount of work.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method for transmitting the message, an interface board and a router for realizing the method improve the speed of the router to process the message. The method for transmitting the message is that: the interface board receives a state change message of the multicast group transmitted by the first host; the interface board transmits a query message to the second host; if not receiving the multicast group state message which is feedback by the second host during the determined period, the interface board updates the state of the multicast group according to the state change message of the multicast group and transmits a preset number of the state change message of the multicast group to the main control board. The speed of the router to process the message transmitted by the host in the network is efficiently increased.

Description

报文传送的方法、 接口板及路由器  Message transmission method, interface board and router
本申请要求于 2007 年 5 月 14 日提交中国专利局、 申请号为 200710102080.1、 发明名称为 "报文上送的方法及实现该方法的接口板及路由 器"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710102080.1, entitled "Method for Sending Messages and Interface Board and Router for Implementing the Method", which was filed on May 14, 2007. The content is incorporated herein by reference.
技术领域 Technical field
本发明涉及通信领域, 尤其涉及一种报文传送的方法、 接口板及路由器。 背景技术  The present invention relates to the field of communications, and in particular, to a packet transmission method, an interface board, and a router. Background technique
路由器的体系结构多数为分布式结构。在分布式路由环境下,控制平面实 现协议的处理, 数据平面实现报文的转发。 通常, 将负责控制平面的单元称为 主控板, 负责数据平面的称为接口板。一个分布式路由器中一般存在一个主控 板和多个接口板。接口板从物理接口收到协议 文后,会通过板间的总线将协 议报文送到主控板处理。  The architecture of routers is mostly distributed. In a distributed routing environment, the control plane implements the processing of the protocol, and the data plane implements the forwarding of the packet. Generally, the unit responsible for the control plane is called the main control board, and the unit responsible for the data plane is called the interface board. A distributed router generally has a main control board and multiple interface boards. After receiving the protocol text from the physical interface, the interface board sends the protocol packet to the main control board through the bus between the boards.
IP组播是在 IP网络中将数据包以尽力传送的形式发送到网络中的某个确 定节点子集, 这个子集称为组播组。 IP组播的基本思想是, 源主机只发送一 份数据,这份数据中的目的地址为组播组地址; 组播组中的所有接收者都可接 收到同样的数据拷贝,且只有组播组内的主机可以接收该数据, 网络中其他主 机不能收到。  IP multicast is a subset of a given node in the network that transmits packets to the network in a best-effort manner. This subset is called a multicast group. The basic idea of IP multicast is that the source host sends only one data. The destination address in this data is the multicast group address. All receivers in the multicast group can receive the same data copy, and only multicast. Hosts in the group can receive this data, and other hosts on the network cannot receive it.
因特网组成员管理协议 ( IGMP, Internet Group Management Protocol )是 IPv4 领域用来实现主机加入特定组播组的协议, 共有三个版本, 分别为 IGMPvl/v2/v3。 在 vl 版本中, 主机通过 4艮告 ( Report ) 文通知邻接的路由 器加入某个特定的组播组, 路由器收到后, 设置组播组定时器, 创建相应的组 播组用于指导转发; 路由器定期的将普通查询报文( General Query )发送给主 机, 来确定每个接口下是否还有组播组存在; 主机收到普通查询报文后, 会把 主机已加入地组播组以 Report报文的形式发送给邻接的路由器; 路由器收到 已有组播组的 Report报文后, 更新组播组定时器; 如果一段时间内没有收到 某个组的 Report报文, 则说明组播组定时器超时, 这个组的状态已被删除。  The Internet Group Management Protocol (IGMP) is a protocol used by the IPv4 domain to implement hosts to join a specific multicast group. There are three versions, IGMPvl/v2/v3. In the vl version, the host sends a report to the neighboring router to join a specific multicast group. After the router receives the packet, it sets the multicast group timer and creates a corresponding multicast group to guide the forwarding. The router periodically sends the general Query message to the host to determine whether there is a multicast group on each interface. After receiving the common query message, the host adds the host to the multicast group to Report. The packet is sent to the neighboring router. After receiving the Report message of the existing multicast group, the router updates the multicast group timer. If the Report message of a certain group is not received within a period of time, the multicast is displayed. The group timer expired and the status of this group has been deleted.
IGMPv2中, 在 vl的基础上增加 Leave报文的发送。 如果主机离开了某 一个组播组, 发送 Leave报文给邻接的路由器。 路由器收到后, 立即发送组查 询报文(Group-Specific Query ), 来确定这个接口下是否还有别的主机想继续 接收此组播组的数据, 未离开这个组的所有主机重新发送 Report报文, 来表 明该主机的存在。 In IGMPv2, the sending of Leave packets is added based on vl. If the host leaves a multicast group, it sends a Leave message to the neighboring router. After receiving the router, immediately send a group-Query Query message to determine if there are other hosts under this interface that you want to continue. After receiving the data of this multicast group, all hosts that have not left this group resend the Report message to indicate the existence of the host.
在 IGMPv3中, 在 v2的基础上增加了源过滤机制, 主机通过发送 Report 报文,来表明该主机仅仅想接收来自某些特定源的数据,或除过一些特定源外, 来自其他源的数据都可以接收, 分别对应两种状态: INCLUDE(A) (表示 A集 合外的其他源的数据都不接收)和 EXCLUDE ( B ) (表示 B集合外的其他源 的数据都可接收); 主机收到查询报文后, 根据各个组的状态分别回应 IS— IN 或 IS— EX类型的 Report报文, 如果主机可以接收的源增加或减少, 则主动发 送类型为 ALLOW (增加)为 BLOCK (减少)类型的 Report报文。 引起组 播组状态改变的报文称为状态改变报文。  In IGMPv3, the source filtering mechanism is added on the basis of v2. The host sends a Report message to indicate that the host only wants to receive data from certain specific sources, or data from other sources except for some specific sources. Both can be received, corresponding to two states: INCLUDE (A) (indicating that other sources outside the A set are not received) and EXCLUDE (B) (representing data from other sources outside the B set are acceptable); After querying the message, respond to the IS-IN or IS-EX type Report message according to the status of each group. If the source that the host can receive increases or decreases, the active send type is ALLOW (increase) to BLOCK (decrease). Type Report message. A packet that causes the status of the multicast group to change is called a status change message.
现有技术中对于 IGMP/MLD(组播侦听发现, Multicast Listener Discovery ) 文来说 ,每个主机发送的组播组状态改变 4艮文通过与主机连接的接口板及总 线发送到主控板,主控板向每个主机发送的查询报文通过总线发送到与接口板 连接的各个主机。 在有大量的 IGMP/ MLD主机存在的情况下, 每隔几十秒, 就会收到路由器发送的查询报文,网络中的每个主机都会通过与其连接的接口 板向主控板回应一个当前组播组状态 文,组播组状态 文通过总线从接口板 传送到主控板; 这样主控板与接口板之间的总线通道由带宽来决定, 当需要传 送的报文很多时, 可能引起阻塞, 引起协议报文处理的瓶颈。 也就是说, 主控 板要处理路由器中多个接口板收到的报文 , 在网络中存在大量的报文上传时 , 主控板来不及在短时间内处理大量的报文,导致主机的组播组状态报文会被丢 弃, 网络中的主机不能及时得到路由器的响应,从而导致整个网络各项任务滞 后, 网络中数据交换不顺畅。  In the prior art, for the IGMP/MLD (Multicast Listener Discovery) text, the status of the multicast group sent by each host is changed to the main control board through the interface board and bus connected to the host. The query message sent by the main control board to each host is sent to each host connected to the interface board through the bus. In the case that a large number of IGMP/MLD hosts exist, every tens of seconds, the router sends a query message sent by the router. Each host on the network responds to the main control board with a current interface board. The multicast group status file is transmitted from the interface board to the main control board through the bus; thus, the bus channel between the main control board and the interface board is determined by the bandwidth. When there are many packets to be transmitted, it may cause Blocking, causing bottlenecks in protocol packet processing. That is, the main control board needs to process the packets received by multiple interface boards in the router. When a large number of packets are uploaded on the network, the main control board cannot process a large number of packets in a short period of time, resulting in a group of hosts. The broadcast group status packet is discarded, and the host in the network cannot get the response of the router in time, which causes the tasks of the entire network to lag, and the data exchange in the network is not smooth.
发明内容 Summary of the invention
本发明提供一种报文传送的方法、 实现该方法的接口板及路由器, 以提高 路由器处理报文的效率。  The present invention provides a packet transmission method, an interface board and a router for implementing the method, so as to improve the efficiency of processing a message by a router.
为此, 本发明提供一种报文传送的方法, 包括:  To this end, the present invention provides a method for message transmission, including:
接口板接收第一主机发送的组播组状态改变报文;接口板向第二主机发送 查询报文; 若接口板在规定时间内未收到第二主机反馈的组播组状态报文, 则 根据所述组播组状态改变报文更新所述组播组状态,并向主控板发送预置数目 的所述组播组状态改变报文。 The interface board receives the multicast group status change message sent by the first host; the interface board sends the query message to the second host; if the interface board does not receive the multicast group status message fed back by the second host within the specified time, Updating the multicast group status according to the multicast group status change message, and sending the preset number to the main control board The multicast group status change message.
本发明还提供另一种一种报文传送的方法, 所述报文为加入报文, 包括: 接口板接收第一主机发送的加入报文;当所述接口板中未存储所述第一主 机发送的加入报文中记录的组播组时,接口板添加所述加入报文中记录的组播 组, 并向主控板发送预置数目的所述加入报文。  The present invention further provides a method for transmitting a message, where the message is a join message, the method includes: receiving, by the interface board, a join message sent by the first host; When the host sends the multicast group recorded in the join message, the interface board adds the multicast group recorded in the join message, and sends a preset number of the join message to the main control board.
本发明还提供一种接口板, 包括:  The invention also provides an interface board, comprising:
第一报文接收单元, 用于接收第一主机发送的组播组状态改变报文; 查询 报文发送单元, 用于在所述第一报文接收单元收到所述组播组状态改变报文 后, 向第二主机发送查询报文; 更新单元, 用于在规定时间内未收到第二主机 反馈的组播组状态改变报文 ,根据所述第一报文接收单元接收的所述组播组状 态改变报文更新接口板中存储的所述组播组状态;发送单元, 用于在所述第一 报文接收单元接收到组播组状态改变报文后,并且在规定时间内未收到第二主 机反馈的组播组状态改变报文时,将预置数目的所述第一报文接收单元接收的 组播组状态改变报文发送到主控板。  The first packet receiving unit is configured to receive a multicast group status change message sent by the first host, and the query message sending unit is configured to receive the multicast group status change report in the first packet receiving unit. After the message is sent, the Query message is sent to the second host, where the update unit is configured to receive the multicast group state change message fed back by the second host within the specified time, according to the received by the first message receiving unit. The multicast group status change message is used to update the multicast group status stored in the interface board, and the sending unit is configured to: after the first packet receiving unit receives the multicast group status change message, and is within a specified time When the multicast group state change packet is not received by the second host, the preset number of the multicast group state change packet received by the first packet receiving unit is sent to the main control board.
本发明还提供另一种接口板, 包括: 第一报文接收单元, 用于接收第一主 机发送的加入报文; 存储单元, 用于存储组播组列表; 添加单元, 用于在所述 存储单元中未存储所述第一报文接收单元接收的加入报文中记录的组播组时 , 添加所述加入报文中记录的组播组;发送单元, 用于将所述第一报文接收单元 接收的加入报文发送到主控板。  The present invention further provides another interface board, including: a first packet receiving unit, configured to receive a join message sent by the first host; a storage unit, configured to store a multicast group list; and an adding unit, configured to When the multicast group recorded in the join message received by the first packet receiving unit is not stored in the storage unit, the multicast group recorded in the join message is added, and the sending unit is configured to send the first report. The join message received by the text receiving unit is sent to the main control board.
本发明还提供一种路由器, 包括: 接口板: 用于接收主机发送的报文, 并 向所述主机发送查询报文;若规定时间内未收到所述主机发送的组播组状态报 文, 则根据所述主机发送的报文更新组播组状态, 并发送预置数目的所述主机 发送的报文; 主控板, 用于接收所述接口板发送的所述预置数目的所述主机发 送的报文, 根据所述预置数目的所述主机发送的报文更新所述组播组的状态。  The present invention further provides a router, including: an interface board, configured to: receive a packet sent by a host, and send an inquiry message to the host; if the multicast group status message sent by the host is not received within a specified time, And updating the multicast group status according to the packet sent by the host, and sending a preset number of the packets sent by the host; the main control board, configured to receive the preset number of the sent by the interface board The packet sent by the host updates the state of the multicast group according to the preset number of packets sent by the host.
以上技术方案可以看出, 由于本发明中接口板收到组播组状态改变报文 后,向网络中第二主机发送查询报文,查询网络中第二主机当前的组播组状态, 若接口板收到第二主机发送的组播组状态报文, 则将组播组定时器重置,在未 收到网络中第二主机发送的组播组状态报文时,才向主控板发送预置数目的组 播组状态改变报文; 这样路由器接口板分别处理自身接收到的报文,将都需要 由主控板处理的报文分散由接收该报文的接口板处理,减少接口板与主控板之 间总线的数据流量, 防止造成接口板与主控板之间总线上数据拥塞,有效地加 快了路由器处理网络中主机发送报文的速度。 The above technical solution shows that, after receiving the multicast group state change message, the interface board sends an Query message to the second host in the network to query the current multicast group status of the second host in the network. After receiving the multicast group status packet sent by the second host, the board resets the multicast group timer. When the board receives the multicast group status packet sent by the second host in the network, it sends the packet to the main control board. The preset number of multicast group status changes packets; so the router interface board processes the packets received by itself, which will be required. The packet processed by the main control board is processed by the interface board that receives the packet, which reduces the data traffic of the bus between the interface board and the main control board, and prevents data congestion on the bus between the interface board and the main control board. Speed up the speed at which the router processes the packets sent by the host in the network.
附图说明 DRAWINGS
图 1是本发明实施例提供的报文传送总的方法图;  1 is a schematic diagram of a method for transmitting a message according to an embodiment of the present invention;
图 2是本发明实施例提供的组播组源状态改变报文传送的方法图; 图 3是本发明实施例提供的加入报文传送的方法图;  2 is a schematic diagram of a method for transmitting a multicast group source state change message according to an embodiment of the present invention; FIG. 3 is a schematic diagram of a method for joining a message transmission according to an embodiment of the present invention;
图 4是本发明实施例提供的离开报文传送的方法图;  FIG. 4 is a schematic diagram of a method for leaving a message transmission according to an embodiment of the present invention; FIG.
图 5是本发明实施例提供的接口板结构图;  FIG. 5 is a structural diagram of an interface board according to an embodiment of the present invention;
图 6是本发明实施例提供的路由器结构图。  FIG. 6 is a structural diagram of a router according to an embodiment of the present invention.
具体实施方式 detailed description
下面结合附图和实施例对本发明做伴细的描述。  The invention will be described in detail below with reference to the accompanying drawings and embodiments.
请参阅图 1是本发明提供的报文传送的方法的流程图。  Please refer to FIG. 1 for a flowchart of a method for transmitting a message provided by the present invention.
本发明实施例中报文传送可以理解为路由器接口板收到网络中主机发送 的报文后, 经过相应的处理后发送给路由器主控板。 所述方法包括步骤:  The message transmission in the embodiment of the present invention can be understood as that after receiving the packet sent by the host in the network, the router interface board sends the packet to the main control board of the router after corresponding processing. The method includes the steps of:
51 )接口板接收第一主机发送的组播组状态改变报文;  The interface board receives the multicast group status change message sent by the first host.
为描述方便,本发明实施例定义: 第一主机为网络中向路由器发送组播组 状态改变报文的主机。  For convenience of description, the embodiment of the present invention defines: The first host is a host in the network that sends a multicast group status change message to the router.
52 )接口板向第二主机发送查询报文;  52) The interface board sends a query message to the second host;
为描述方便,本发明实施例定义: 第二主机为网络中未向接口 送组播 组状态改变报文的主机。接口板向第二主机发送查询报文,询问网络中未发送 组播组状态改变报文的第二主机是否也要进行组播组状态的改变;若接口板在 规定时间内收到第二主机反馈的当前组播组状态报文, 则执行步骤 S3 ); 若接 口板在规定时间内未收到网络中第二主机反馈的当前组播组状态报文,则执行 步骤 S4 )。  For convenience of description, the embodiment of the present invention defines: The second host is a host in the network that does not send a multicast group state change message to the interface. The interface board sends a query message to the second host to query whether the second host that does not send the multicast group status change packet in the network also needs to change the status of the multicast group. If the interface board receives the second host within the specified time. If the current multicast group status message is fed back, the process proceeds to step S3). If the interface board does not receive the current multicast group status message fed back by the second host in the network within the specified time, step S4) is performed.
S3 )组播组定时器归零, 也可以将组播组定时器重置, 下述类同, 不再赘 述;  S3) The multicast group timer is reset to zero. The multicast group timer can also be reset. The following types are similar and will not be described again.
若接口板在规定时间内收到第二主机反馈的当前组播组状态报文,组播组 定时器归零,不再执行以下的步骤,结束该流程。路由器中存储的组播组列表, 路由器会在定时器时间内更新列表中每个组播组的状态; 组播组列表更新后, 组播组定时器归零, 重新开始计时。 If the interface board receives the current multicast group status message fed back by the second host within the specified time, the multicast group timer is reset to zero. The following steps are not performed and the process ends. a list of multicast groups stored in the router, The router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
需要说明的是, 当接口板收到第一主机发送的组播组状态改变报文时,会 向第二主机发送若干个最后成员查询报文,查询发送组播组状态改变报文的第 一主机是否是该组播组中最后一个主机;接口板在一定的时间间隔内分别发送 若干个最后成员查询报文,该时间间隔称为最后成员查询间隔,接口板发送完 若干个最后成员查询报文的次数称为最后成员查询次数。接口板在规定时间内 接收到主机反馈的当前组播组状态报文中所述的规定时间具体为:最后成员查 询间隔与最后成员查询次数相乘得到的值。在接口 送最后成员查询报文的 过程中, 若收到第二主机发送的当前组播组状态报文, 不再发送最后成员查询 报文。  When the interface board receives the multicast group state change packet sent by the first host, the interface board sends a number of last member query packets to the second host to query the first packet of the multicast group state change packet. Whether the host is the last host in the multicast group; the interface board sends a number of last member query messages in a certain interval. The interval is called the last member query interval. The interface board sends several last member query reports. The number of times is called the last member query count. The specified time in the current multicast group status message that the interface board receives the feedback from the host within the specified time is: the value obtained by multiplying the last member query interval by the last member query number. If the current multicast group status packet sent by the second host is received, the last member query packet is not sent.
54 )接口板根据组播组状态改变报文更新组播组状态;  54) The interface board updates the multicast group status according to the multicast group status change message;
接口板在规定时间内未收到主机反馈的当前组播组状态报文时,根据组播 组状态改变报文更新组播组状态, 并执行 S5 )。  When the interface board does not receive the current multicast group status message fed back by the host within the specified time, the interface board updates the multicast group status according to the multicast group status change message, and executes S5).
接口板在规定时间内未接收到主机反馈的当前组播组状态报文中所述的 规定时间, 所述规定时间具体为: 最后成员查询间隔与最后成员查询次数相乘 得到的值。  The specified time is not specified in the current multicast group status message fed back by the host within the specified time. The specified time is: the value obtained by multiplying the last member query interval by the last member query.
55 )接口板向主控板发送预置数目的组播组状态改变报文;  55) The interface board sends a preset number of multicast group state change packets to the main control board;
接口板收到网络中第一主机发送的组播组状态改变报文后 ,若这些组播组 状态改变报文引起组播组当前状态发生改变,接口板会将第一主机发送的组播 组改变报文中的一个或者几个发送给主控板。  After the interface board receives the multicast group status change packet sent by the first host in the network, if the multicast group status change packet causes the current status of the multicast group to change, the interface board sends the multicast group sent by the first host. One or several of the changed messages are sent to the main control board.
预置数目的组播组改变报文是在接口板中预先设置的,接口板向主控板发 送组播组状态改变报文的数目, 可以设置为 1、 2、 3等。 本发明实施例优选设 置的预置数目为 1或 2。 设置预置数目, 使得接口板向主控板上报的报文数量 远远小于接口板接收到的报文数量, 减少主控板的工作,加快路由器处理报文 的速度。  The preset number of multicast group change packets is set in the interface board. The number of multicast group status change packets sent by the interface board to the main control board can be set to 1, 2, 3, and so on. Preferably, the preset number of the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets that the interface board reports to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
S6 )主控板根据组播组状态报文更新组播组状态。  S6) The main control board updates the multicast group status according to the multicast group status message.
本发明实施例设置主控板中组播组定时器不超时,主控板在收到组播组状 态改变报文后 , 直接根据组播组状态改变报文修改自身储存的组播组状态。 根据上述报文传送总的方法图, 本发明提供不同内容的报文传送的实施 例。 In the embodiment of the present invention, the multicast group timer in the main control board is not timed out. After receiving the multicast group status change packet, the main control board directly modifies the multicast group status stored by the multicast group according to the multicast group status change message. The present invention provides an embodiment of message delivery for different content in accordance with the above-described message delivery general method map.
如下提供按照不同的组播组状态改变报文 ,阐述接口板收到报文后的处理 步骤以及主控板的处理步骤。  The following describes how to change the packet according to the status of different multicast groups, and describe the processing steps after the interface board receives the packet and the processing steps of the main control board.
请参阅图 2是本发明实施例提供组播组源状态改变报文传送的方法的流 程图, 所述方法包括步骤:  2 is a flow chart of a method for transmitting a multicast group source state change message according to an embodiment of the present invention, where the method includes the following steps:
A1 )接口板收到第一主机发送的组播组源状态改变报文;  A1) The interface board receives the multicast group source state change packet sent by the first host.
在路由器存在的网络中,本发明实施例中第一主机为网络中向路由器发送 组播组状态改变报文的主机。  In the network where the router exists, in the embodiment of the present invention, the first host is a host in the network that sends a multicast group state change message to the router.
A2 )接口板向第二主机发送组源查询报文;  A2) The interface board sends a group source query message to the second host.
本发明实施例中,网络中第二主机为网络中未向接口 送组播组源状态 改变报文的主机。接口板向网络中第二主机发送组源查询报文,询问网络中未 发送组源查询报文的主机是否也要进行组播组源状态的改变;接口板在规定时 间内收到主机反馈的当前组播组源状态报文时,执行步骤 A3 ); 接口板在规定 时间内未收到网络中第二主机反馈的当前组播组源状态报文时, 执行步骤 A4 )。 上述规定时间具体为: 最后成员查询间隔与最后成员查询次数相乘得到 的值。  In the embodiment of the present invention, the second host in the network is a host in the network that does not send a multicast group source state change message to the interface. The interface board sends a group source query message to the second host in the network to query whether the host that does not send the group source query message on the network also needs to change the source state of the multicast group. The interface board receives the feedback from the host within the specified time. Step A3) is performed when the current multicast group source status message is received. If the interface board does not receive the current multicast group source status message fed back by the second host in the network within the specified time, step A4) is performed. The specified time is specifically as follows: The value obtained by multiplying the last member query interval by the last member query count.
A3 )组播组定时器归零;  A3) The multicast group timer is reset to zero;
接口板将组播组定时器归零。 需要说明的是, 若组播组定时器超时, 接口 板删除组播组;接口板向所述主控板发送离开报文, 主控板收到接口板发送的 离开报文后删除离开报文中记录的组播组。  The interface board resets the multicast group timer to zero. It should be noted that, if the multicast group timer expires, the interface board deletes the multicast group; the interface board sends the leave message to the main control board, and the main control board deletes the leave message after receiving the leave message sent by the interface board. The multicast group recorded in .
A4 )接口根据所述组播组源状态改变报文修改组播组源状态, 具体包括 下述情形, 但并不限于此:  A4) The interface modifies the multicast group source state according to the multicast group source state change packet, which includes the following situations, but is not limited thereto:
情形 1 : 假设当前组的状态为 INCLUDE (A), 接口板收到网络中第一主 机传送的组播组状态改变报文为 TO_IN (B)报文(TOJN (B)报文表示组的 源列表改为 B集合), 则接口板将组的源状态修改为 INCLUDE ( B )。  Scenario 1: Assuming that the current group status is INCLUDE (A), the interface board receives the multicast group status change message transmitted by the first host in the network as a TO_IN (B) message (the TOJN (B) message indicates the source of the group. The list is changed to B set), then the interface board changes the source state of the group to INCLUDE ( B ).
情形 2:假设当前组的状态为 INCLUDE(A),接口板收到网络中第一主机 传送的 TO_EX (B)报文, 则接口板将组的源状态修改为 EXCLUDE ( NULL, B )。 EXCLUDE ( NULL, B )表示除了 B集合外的源都可接收。 情形 3:假设当前组的状态为 INCLUDE(A),接口板收到网络中第一主机 的 ALLOW (B)报文, 则接口板将组的源状态修改为 INCLUDE ( A+B )。 Scenario 2: Assuming that the current group's state is INCLUDE(A) and the interface board receives the TO_EX (B) message transmitted by the first host in the network, the interface board changes the source state of the group to EXCLUDE ( NULL, B ). EXCLUDE ( NULL, B ) indicates that sources other than the B set are receivable. Scenario 3: Assuming that the current group's state is INCLUDE(A) and the interface board receives the ALLOW (B) message from the first host in the network, the interface board changes the source state of the group to INCLUDE (A+B).
情形 4:假设当前组的状态为 INCLUDE(A),接口板收到网络中第一主机 的 BLOCK (B)报文, 则接口板将组的源状态修改为 INCLUDE ( A-B )。  Scenario 4: Assuming that the current group's state is INCLUDE(A) and the interface board receives the BLOCK (B) message from the first host in the network, the interface board changes the source state of the group to INCLUDE (A-B).
情形 5: 假设当前组的状态为 EXCLUDE (X, Y), 接口板收到网络中第 一主机 TO— IN (A)报文, 则接口板将组的源状态修改为 INCLUDE ( A )。  Scenario 5: Assuming that the current group's state is EXCLUDE (X, Y) and the interface board receives the first host TO-IN (A) message in the network, the interface board modifies the source state of the group to INCLUDE ( A ).
情形 6: 假设当前组的状态为 EXCLUDE (X, Y), 接口板收到网络中第 一主机 TO— EX (A)报文, 则接口板将组的源状态修改为 EXCLUDE ( NULL, A )。  Scenario 6: Assuming that the current group's state is EXCLUDE (X, Y), the interface board receives the first host TO_EX (A) message in the network, the interface board changes the source state of the group to EXCLUDE ( NULL, A ) .
情形 7: 假设当前组的状态为 EXCLUDE (X, Y), 接口板收到网络中第 一主机 ALLOW (A)报文, 则接口板将组的源状态修改为 EXCLUDE ( X+A, Y-A )。  Scenario 7: Assuming that the current group's status is EXCLUDE (X, Y) and the interface board receives the first host ALLOW (A) message in the network, the interface board changes the source state of the group to EXCLUDE (X+A, YA). .
情形 8: 假设当前组的状态为 EXCLUDE (X, Y), 接口板收到网络中第 一主机 BLOCK (A)报文, 则接口板将组的源状态修改为 EXCLUDE ( X-A, Y+A )。  Scenario 8: Assuming that the current group status is EXCLUDE (X, Y) and the interface board receives the first host BLOCK (A) message in the network, the interface board changes the source state of the group to EXCLUDE (XA, Y+A). .
A5 )接口板向主控板发送预置数目的组播组源状态改变报文;  A5) The interface board sends a preset number of multicast group source state change packets to the main control board.
预置数目的组播组改变报文是在接口板中预先设置的向主控板发送组播 组源状态改变报文的数目, 可以设置为 1、 2、 3等。 本领域技术人员可以根据 当前网络状况和路由器的工作性进行设置;本发明实施例优选设置的预置数目 为 1或 2。 设置预置数目 , 使得接口板向主控板上报的报文数量远远小于接口 板接收到的报文数量,从而可以减少主控板的工作,加快路由器处理报文的速 度。  The preset number of multicast group change packets is the number of multicast group source state change packets sent to the main control board preset in the interface board. It can be set to 1, 2, 3, and so on. Those skilled in the art can set according to the current network conditions and the workingability of the router; the preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
A6 )主控板根据组播组源状态报文修改主控板存储的组播组的源状态; 主控板收到组播组源状态改变报文后 ,根据组播组状态改变的信息修改主 控板存储的组播组的状态。  A6) The main control board modifies the source status of the multicast group stored on the main control board according to the multicast group source status message. After receiving the multicast group source status change packet, the main control board modifies the information according to the multicast group status change. Status of the multicast group stored on the main control board.
主控板上设置组定时器不超时。  The group timer set on the main control board does not time out.
主控板收到接口板传送的组播组源状态报文(Report )报文后, 组播组的 状态发生如下的改变:  After the main control board receives the multicast group source status (Report) packet from the interface board, the status of the multicast group changes as follows:
情形 1 : 假设当前组的状态为 INCLUDE (A), 收到接口板传送的 TO— IN (B)报文, 则组的状态转变为 INCLUDE ( B )。 Case 1: Assuming that the current group's state is INCLUDE (A), it receives the TO-IN transmitted by the interface board. (B) Message, then the state of the group is changed to INCLUDE (B).
情形 2: g殳当前组的状态为 INCLUDE(A), 收到接口板传送的 TO— EX (B)报文, 则组的状态转变为 EXCLUDE ( NULL, B )。 ( EXCLUDE ( NULL, B )表示除了 B集合外的源都可接收)  Case 2: g殳 The current group status is INCLUDE(A). When the TO-EX (B) message transmitted by the interface board is received, the status of the group changes to EXCLUDE ( NULL, B ). ( EXCLUDE ( NULL, B ) means that all sources except the B set can be received)
情形 3:假设当前组的状态为 INCLUDE(A),收到接口板传送的 ALLOW Scenario 3: Assume that the current group's state is INCLUDE(A) and receives the ALLOW transmitted by the interface board.
(B)报文, 则组的状态转变为 INCLUDE ( A+B )。 (B) Message, then the state of the group changes to INCLUDE (A+B).
情形 4: g殳当前组的状态为 INCLUDE(A), 收到接口板传送的 BLOCK (B)报文, 则组的状态转变为 INCLUDE ( A-B )。  Case 4: g殳 The current group status is INCLUDE(A). When the BLOCK (B) message transmitted by the interface board is received, the status of the group changes to INCLUDE (A-B).
情形 5: 假设当前组的状态为 EXCLUDE (X, Y), 收到接口板传送的 TO— IN (A)报文, 则组的状态转变为 INCLUDE ( A )。  Scenario 5: Assuming that the current group's state is EXCLUDE (X, Y), the TO_IN (A) message transmitted by the interface board is received, and the state of the group is changed to INCLUDE (A).
情形 6: 假设当前组的状态为 EXCLUDE (X, Y), 收到接口板传送的 TO EX (A)报文, 则组的状态转变为 EXCLUDE ( NULL, A )。  Case 6: Assuming that the current group's state is EXCLUDE (X, Y), the TO E (A) message transmitted by the interface board is received, and the state of the group is changed to EXCLUDE ( NULL, A ).
情形 7: 假设当前组的状态为 EXCLUDE (X, Y), 收到接口板传送的 ALLOW (A)报文, 则组的状态转变为 EXCLUDE ( X+A, Y-A )。  Case 7: Assuming that the current group's state is EXCLUDE (X, Y), the ALLOW (A) message transmitted by the interface board is received, and the state of the group is changed to EXCLUDE (X+A, Y-A).
情形 8: 假设当前组的状态为 EXCLUDE (X, Y), 收到接口板传送的 Scenario 8: Assume that the current group's state is EXCLUDE (X, Y), received by the interface board.
BLOCK (A)报文, 则组的状态转变为 EXCLUDE ( X-A, Y+A )。 In the BLOCK (A) message, the state of the group is changed to EXCLUDE (X-A, Y+A).
至此,路由器对于网络中发送的引起组播组源状态发生改变的报文的处理 结束。  At this point, the router ends the processing of the packet sent by the network that causes the state of the multicast group source to change.
请参阅图 3是本发明实施例提供的加入报文传送的实施例图。  FIG. 3 is a schematic diagram of an embodiment of join message transmission according to an embodiment of the present invention.
B 1 )接口板收到第一主机发送的加入报文;  B 1) The interface board receives the join message sent by the first host;
为描述方便,本发明实施例定义: 第一主机为网络中向路由器发送加入报 文的主机。  For convenience of description, the embodiment of the present invention defines: The first host is a host in the network that sends a join message to the router.
接口板中存储所述第一主机发送的加入报文中记录的组播组时 ,执行步骤 B2 ); 接口板中未存储所述第一主机发送的加入报文中记录的组播组时, 执行 步骤 B3 )。  When the multicast group recorded in the join message sent by the first host is stored in the interface board, step B2) is performed; when the multicast group recorded in the join message sent by the first host is not stored in the interface board, Perform step B3).
B2 )接口板将组播组定时器归零, 并将第一主机添加到组播组; 接口板将组播组定时器归零,并将第一主机添加到加入报文中记录的组播 组中, 不再执行以下的步骤, 当前流程结束。  B2) The interface board resets the multicast group timer to zero and adds the first host to the multicast group. The interface board resets the multicast group timer to zero and adds the first host to the multicast recorded in the join message. In the group, the following steps are no longer performed and the current process ends.
需要说明的是, 若组播组定时器超时, 接口板删除组播组, 向所述主控板 发送离开报文, 所述主控板删除所述离开报文中记录的组播组。 It should be noted that if the multicast group timer expires, the interface board deletes the multicast group and sends the multicast group to the main control board. Sending a Leave message, the main control board deletes the multicast group recorded in the Leave message.
路由器中存储的组播组列表,路由器会在定时器时间内更新列表中每个组 播组的状态; 组播组列表更新后, 组播组定时器归零, 重新开始计时。  The router lists the multicast group list stored in the router. The router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
B3 )接口板添加所述组播组, 并向主控板发送预置数目的加入报文; 预置数目的加入报文是在接口板中预先设置的向主控板发送加入报文的 数目, 可以设置为 1、 2、 3等。 本领域技术人员可以根据当前网络状况和路由 器的工作性进行设置; 本发明实施例优选设置的预置数目为 1或 2。 设置预置 数目 , 使得接口板向主控板上报的报文数量远远小于接口板接收到的报文数 量, 减少主控板的工作, 加快路由器处理报文的速度。接口板将网络中第一主 机发送的加入报文以 Report报文形式发送给主控板; 在接口板添加该加入报 文中记录的组播组, 执行步骤 B4 )。  B3) The interface board adds the multicast group, and sends a preset number of join messages to the main control board; the preset number of join messages is the number of join messages sent to the main control board preset in the interface board. , can be set to 1, 2, 3, etc. Those skilled in the art can set according to the current network conditions and the operability of the router. The preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets. The interface board sends the join message sent by the first host in the network to the main control board in the form of a report message. Add the multicast group recorded in the join message to the interface board, and go to step B4).
B4 )主控板添加加入报文中记录的组播组;  B4) The main control board adds the multicast group recorded in the join message;
主控板存储加入报文中记录的组播组。  The main control board stores the multicast groups recorded in the join message.
请参阅图 4是本发明实施例提供的离开报文传送的实施例图。  FIG. 4 is a schematic diagram of an embodiment of leaving message transmission according to an embodiment of the present invention.
C 1 )接口板收到第一主机发送的离开报文;  C 1) The interface board receives the leaving message sent by the first host;
为描述方便,本发明实施例定义: 第一主机为向路由器接口板发送离开报 文的主机。  For convenience of description, the embodiment of the present invention defines: The first host is a host that sends a leaving message to the router interface board.
C2 )接口板向第二主机发送组查询报文;  C2) The interface board sends a group query message to the second host;
为描述方便,本发明实施例定义: 第二主机为网络中未向路由器发送离开 文的主机。  For convenience of description, the embodiment of the present invention defines: The second host is a host in the network that does not send a leaving message to the router.
组查询报文为路由器向主机发送的询问主机是否要退出离开报文中记录 的组播组。接口板在规定时间内收到网络中第二主机发送的加入报文时,执行 步骤 C3 ), 接口板在规定时间内未收到网络中第二主机发送的加入报文时, 执 行步骤 C4 )。 上述规定时间具体为: 最后成员查询间隔与最后成员查询次数相 乘得到的值。  The group query message is sent by the router to the host to query whether the host wants to quit the multicast group recorded in the leave message. When the interface board receives the join message sent by the second host in the network within the specified time, the interface board performs step C3). When the interface board does not receive the join message sent by the second host in the network within the specified time, the interface board performs step C4. . The specified time is specifically: The value obtained by multiplying the last member query interval by the last member query count.
需要说明的是, 若组播组定时器超时, 接口板删除组播组; 接口板向所述 主控板发送离开报文 , 所述主控板删除所述离开报文中记录的组播组。  It should be noted that, if the multicast group timer expires, the interface board deletes the multicast group; the interface board sends a leave message to the main control board, and the main control board deletes the multicast group recorded in the leave message. .
C3 )丢弃离开报文, 并将组播组定时器归零;  C3) discards the leaving message and resets the multicast group timer to zero;
丢弃主机发送的离开报文,接口板不会修改其存储的组播组。路由器中存 储的组播组列表,路由器会在定时器时间内更新列表中每个组播组的状态; 组 播组列表更新后, 组播组定时器归零, 重新开始计时。 If the Leave message sent by the host is discarded, the interface board does not modify the stored multicast group. Storing in the router After storing the multicast group list, the router updates the status of each multicast group in the list within the timer time. After the multicast group list is updated, the multicast group timer is reset to zero and the timer is restarted.
C4 )接口板删除离开报文中记录的组播组;  C4) The interface board deletes the multicast group recorded in the leaving message;
接口板删除自身存储的离开报文中记录的组播组的记录项。  The interface board deletes the records of the multicast group recorded in the leaving packet stored in the interface.
C5 )接口板向主控^ ^送预置数目的离开报文;  C5) The interface board sends a preset number of leaving messages to the master control;
预置数目的离开报文为在接口板中预先设置的向主控板发送离开报文的 数目, 可以设置为 1、 2、 3等。 本领域技术人员可以根据当前网络状况和路由 器的工作性进行设置; 本发明实施例优选设置的预置数目为 1或 2。 设置预置 数目 , 使得接口板向主控板上报的报文数量远远小于接口板接收到的报文数 量, 减少主控板的工作, 加快路由器处理报文的速度。  The preset number of leaving packets is the number of outgoing packets sent to the main control board, which are preset in the interface board, and can be set to 1, 2, 3, and so on. Those skilled in the art can set according to the current network conditions and the operability of the router. The preferred number of presets in the embodiment of the present invention is 1 or 2. Set the number of presets so that the number of packets sent by the interface board to the main control board is much smaller than the number of packets received by the interface board. This reduces the work of the main control board and speeds up the processing of packets.
接口板将主机发送的离开报文以 leave报文的形式发送给主控板。  The interface board sends the Leave message sent by the host to the main control board in the form of a leave message.
C6 )主控板删除离开报文中记录的组播组;  C6) The main control board deletes the multicast group recorded in the leaving message;
主控板收到离开报文后,删除自身存储的离开报文中记录的组播组的记录 项。  After receiving the Leave message, the MPU deletes the record of the multicast group recorded in the Leave message stored by itself.
请参阅图 5是本发明实施例提供的接口板的结构图。  FIG. 5 is a structural diagram of an interface board according to an embodiment of the present invention.
若接口板传送的组播组状态改变报文为组播组源状态改变报文,接口板包 括:  If the multicast group status change packet sent by the interface board is a multicast group source status change packet, the interface board includes:
第一报文接收单元 110, 用于接收第一主机发送的组播组状态改变报文; 查询报文发送单元 120, 用于在所述第一报文接收单元收到所述组播组状 态改变报文后, 向第二主机发送查询报文;  The first packet receiving unit 110 is configured to receive a multicast group state change packet sent by the first host, and the query packet sending unit 120 is configured to receive the multicast group state in the first packet receiving unit. After the packet is changed, the query message is sent to the second host.
更新单元 130, 用于在规定时间内未收到第二主机反馈的组播组状态改变 报文,根据所述第一报文接收单元接收的所述组播组状态改变报文更新接口板 中存储的所述组播组状态;  The updating unit 130 is configured to: in the interface board, change the multicast group status change message that is not received by the second host, and update the interface board according to the multicast group status change message received by the first message receiving unit. The stored multicast group status;
发送单元 140, 用于在所述第一报文接收单元接收到组播组状态改变报文 后, 并且在规定时间内未收到第二主机反馈的组播组状态改变报文时,将预置 数目的所述组播组状态改变报文发送到主控板。  The sending unit 140 is configured to: after the first packet receiving unit receives the multicast group state change message, and does not receive the multicast group state change message fed back by the second host within a predetermined time, The number of the multicast group state change packets is sent to the main control board.
网络中存在第二主机收到接口板发送的查询报文后,向接口板发送组播组 状态报文时, 所述接口板还包括: 第二报文接收单元 150, 用于在所述查询报 文发送单元向第二主机发送查询报文后, 接收第二主机反馈的组播组状态报 文; After the second host receives the Query message sent by the interface board, and sends the multicast group status message to the interface board, the interface board further includes: a second packet receiving unit 150, configured to perform the query After the packet sending unit sends the query message to the second host, it receives the multicast group status report fed back by the second host. Text
定时器处理单元 160, 用于在规定时间内所述第二报文接收单元收到网络 中第二主机反馈的组播组状态报文时 , 将组播组定时器重置。  The timer processing unit 160 is configured to reset the multicast group timer when the second packet receiving unit receives the multicast group status message fed back by the second host in the network within a predetermined time.
若网络中第一主机向接口板发送的组播组状态改变报文为加入报文,接口 板的结构如下:  If the multicast group status change packet sent by the first host to the interface board is a join message, the interface board is configured as follows:
第一报文接收单元 110, 用于接收第一主机发送的加入报文;  The first packet receiving unit 110 is configured to receive a join message sent by the first host.
存储单元 170, 用于存储组播组列表;  The storage unit 170 is configured to store a multicast group list.
添加单元 180, 用于在所述存储单元中未存储所述第一报文接收单元接收 的加入报文中记录的组播组时, 添加所述加入报文中记录的组播组;  The adding unit 180 is configured to: when the storage unit does not store the multicast group recorded in the join message received by the first packet receiving unit, add the multicast group recorded in the join message;
发送单元 140, 用于将所述第一报文接收单元接收的加入报文发送到主控 板。  The sending unit 140 is configured to send the join message received by the first packet receiving unit to the main control board.
由于接口板存储单元存储的组播组列表的不同,所述接口板还包括定时器 处理单元 160;  The interface board further includes a timer processing unit 160, which is different from the multicast group list stored by the interface board storage unit;
所述定时器处理单元 160, 用于在所述存储单元存储所述第一报文接收单 元接收的加入报文中记录的组播组时, 将组播组定时器重置;  The timer processing unit 160 is configured to: when the storage unit stores the multicast group recorded in the join message received by the first packet receiving unit, reset the multicast group timer;
所述添加单元 180还用于将第一主机添加到所述第一接收单元接收的加 入艮文记录的组播组中。  The adding unit 180 is further configured to add the first host to the multicast group of the added text record received by the first receiving unit.
上述根据传送报文的不同分别描述接口板的内部结构,但接口板同时可以 传送组播组源状态改变报文,加入报文和离开报文, 因此根据报文的不同描述 的接口板的不同结构都存在于一个接口板中。  The above describes the internal structure of the interface board according to the difference of the transmitted packets. However, the interface board can transmit the multicast source state change packets, join the packet, and leave the packet. Therefore, the interface board is different according to the different description of the packet. Structures exist in an interface board.
为完整地实现本发明方法实施例, 本发明实施例还提供路由器的结构图。 请参阅图 6是本发明实施例提供的路由器结构图。  In order to fully implement the method embodiment of the present invention, the embodiment of the present invention further provides a structural diagram of a router. FIG. 6 is a structural diagram of a router according to an embodiment of the present invention.
如图所示, 路由器包括:  As shown, the router includes:
接口板 100: 用于接收主机发送的报文, 并向所述主机发送查询报文; 若 规定时间内未收到所述主机发送的组播组状态报文,则根据所述主机发送的报 文更新组播组状态, 并发送预置数目的所述主机发送的报文;  The interface board 100 is configured to: receive a packet sent by the host, and send a query message to the host; if the multicast group status message sent by the host is not received within the specified time, the packet is sent according to the host Updating the multicast group status, and sending a preset number of packets sent by the host;
优选的, 所述接口板包括: 第一报文接收单元、 查询报文发送单元、 更新 单元和发送单元, 其各个单元的功能和作用, 详见上述, 在此不再赘述。  Preferably, the interface board includes: a first message receiving unit, a query message sending unit, an updating unit, and a sending unit, and functions and functions of the respective units are as described above, and details are not described herein again.
主控板 200, 用于接收所述接口板发送的所述预置数目的报文, 并根据所 述预置数目的所述主机发送的报文更新所述组播组的状态。 The main control board 200 is configured to receive the preset number of packets sent by the interface board, and according to the The preset number of messages sent by the host updates the state of the multicast group.
其中, 所述主控板包括: 第一报文接收单元、 存储单元、 添加单元和发送 单元, 其各个单元的功能和作用, 详见上述, 在此不再赞述。  The main control board includes: a first message receiving unit, a storage unit, an adding unit, and a sending unit, and functions and functions of the respective units are as described above, and are not described herein.
由于网络中不同情况,对路由器接口板功能细化: 所述接口板 100在规定 时间内收到所述主机发送的组播组状态报文时, 将组播组定时器重置。  Due to the different situations in the network, the function of the router interface board is refined. When the interface board 100 receives the multicast group status message sent by the host within the specified time, the multicast group timer is reset.
需要说明的是,通常情况下一个路由器设备中存在多个接口板, 而一个路 由器设备中对应存在一个主控板; 每个接口板都与主控板相连。  It should be noted that, in a normal case, multiple interface boards exist in one router device, and one main control board exists in one router device; each interface board is connected to the main control board.
由以上技术方案看出,本发明实施例分别阐述组播组源状态改变报文和离 开报文接口板的处理以及上报主控板, 主控板的处理; 具体报文的传送过程, 方便实施。  As shown in the above technical solution, the embodiment of the present invention separately describes the processing of the multicast group source state change packet and the leaving packet interface board, and the processing of the main control board and the main control board; the specific message transmission process is convenient to implement. .
进一步的, 由于本发明实施例中接口板收到加入报文后, 若接口板自身存 储已经存在加入报文中记录的组播组,接口板只更新自身状态, 而在接口板中 没有存储加入报文中记录的组播组,接口板才向主控板发送预置数目的加入报 文; 减少接口板与主控板之间加入报文的传送数量, 减少总线上的数据流量。  Further, in the embodiment of the present invention, after the interface board receives the join message, if the interface board itself stores the multicast group recorded in the join message, the interface board only updates its own state, and no interface is added to the interface board. The multicast group recorded in the packet sends the preset number of join messages to the main control board. The number of packets sent between the interface board and the main control board is reduced, and the data traffic on the bus is reduced.
进一步的,本发明实施例中接口板中若组播组定时器超时,接口板会删除 所述组播组,再向主控板发送所述组播组的离开报文,减少主控板处理工作量。  Further, in the embodiment of the present invention, if the multicast group timer expires, the interface board deletes the multicast group, and then sends the leaving packet of the multicast group to the main control board to reduce the processing of the main control board. The amount of work.
以上对本发明所提供的一种报文传送的方法、一种接口板及路由器进行了 上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本 领域的一般技术人员 ,依据本发明的思想,在具体实施方式及应用范围上均会 有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The above description of the method for transmitting a message, an interface board and a router provided by the present invention is only for helping to understand the method of the present invention and its core idea; meanwhile, it is for those skilled in the art. The present invention is not limited by the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种报文传送的方法, 其特征在于, 包括:  A method for transmitting a message, comprising:
接口板接收第一主机发送的组播组状态改变报文;  The interface board receives the multicast group status change packet sent by the first host.
接口板向第二主机发送查询报文;  The interface board sends a query message to the second host.
若接口板在规定时间内未收到第二主机反馈的组播组状态报文,则根据所 述组播组状态改变 4艮文更新所述组播组状态,并向主控板发送预置数目的所述 组播组状态改变报文。  If the interface board does not receive the multicast group status message fed back by the second host within the specified time, the interface changes the state of the multicast group according to the status of the multicast group, and sends the preset to the main control board. The number of the multicast group status change messages.
2、 根据权利要求 1所述的报文传送的方法, 其特征在于, 所述方法还包 括:  The method of transmitting a message according to claim 1, wherein the method further comprises:
若接口板在规定时间内收到第二主机反馈的组播组状态报文,则将组播组 定时器重置。  If the interface board receives the multicast group status packet fed back by the second host within the specified time, the multicast group timer is reset.
3、 根据权利要求 1所述的报文传送的方法, 其特征在于, 所述方法还包 括:  The method for transmitting a message according to claim 1, wherein the method further comprises:
所述主控板根据接收到的所述预置数目的组播组状态改变报文更新该主 控板存储的所述组播组的状态。  The main control board updates the state of the multicast group stored by the main control board according to the received preset number of multicast group status change messages.
4、 根据权利要求 3所述的报文传送的方法, 其特征在于,  4. The method of message transmission according to claim 3, characterized in that
所述组播组状态改变报文为: 组播组源状态报文; 所述查询报文为: 组源 查询 4艮文;  The multicast group status change message is: a multicast group source status message; the query message is: group source query 4艮文;
所述预置数目的所述组播组状态改变报文为: 组播组源状态改变报文。  The preset number of the multicast group state change packet is: a multicast group source state change packet.
5、 根据权利要求 3所述的报文传送的方法, 其特征在于, 所述组播组状 态改变报文为: 离开报文, The packet transmission method according to claim 3, wherein the multicast group status change message is: leaving a message,
所述查询^艮文为: 组查询 文;  The query ^艮文 is: group query text;
所述组播组状态报文为加入报文时,所述接口板丢弃所述离开报文, 并将 组播组定时器重置;  When the multicast group status message is a join message, the interface board discards the leave message and resets the multicast group timer.
所述接口板根据所述组播组状态改变报文更新所述组播组状态为: 删除所述离开报文中记录的组播组,并向主控板发送预置数目的所述组播 组状态改变报文是离开报文;  The interface board updates the multicast group status according to the multicast group status change message to: delete the multicast group recorded in the leave message, and send a preset number of the multicast to the main control board. The group status change message is a leave message;
所述主控板根据所述预置数目的组播组状态改变报文更新主控板存储的 所述组播组的状态为: 所述主控板根据所述预置数目的, 删除所述离开报文中记录的组播组。The main control board updates the state of the multicast group stored on the main control board according to the preset number of multicast group state change packets: The main control board deletes the multicast group recorded in the leaving message according to the preset number.
6、 根据权利要求 4或 5所述的报文传送的方法, 其特征在于, 若组播组 定时器超, 所述接口板删除所述组播组, 并向所述主控板发送离开报文; 所述主控板删除所述离开 ^艮文中记录的组播组。 The method for transmitting a message according to claim 4 or 5, wherein, if the multicast group timer is exceeded, the interface board deletes the multicast group, and sends a leave message to the main control board. The main control board deletes the multicast group recorded in the leaving message.
7、 一种报文传送的方法, 所述报文为加入报文, 其特征在于, 包括: 接口板接收第一主机发送的加入报文;  A method for transmitting a message, wherein the packet is a join message, and the method includes: receiving, by the interface board, a join message sent by the first host;
当所述接口板中未存储所述第一主机发送的加入报文中记录的组播组时 , 接口板添加所述加入报文中记录的组播组,并向主控板发送预置数目的所述加 入报文。  When the multicast group recorded in the join message sent by the first host is not stored in the interface board, the interface board adds the multicast group recorded in the join message, and sends the preset number to the main control board. The join message.
8、 根据权利要求 7所述的报文传送的方法, 其特征在于, 当所述接口板 中存储所述第一主机发送的加入报文中的组播组时,接口板将所述组播组定时 器重置, 将第一主机添加到所述加入报文记录的组播组中。  The packet transmission method according to claim 7, wherein when the interface board stores the multicast group in the join message sent by the first host, the interface board performs the multicast The group timer is reset, and the first host is added to the multicast group of the join message record.
9、 根据权利要求 8所述的报文传送的方法, 其特征在于, 所述方法还包 括:  The method for transmitting a message according to claim 8, wherein the method further comprises:
主控板根据收到的所述预置数目的加入报文,添加所述加入报文中记录的 组播组。  The main control board adds the multicast group recorded in the join message according to the preset number of join messages received.
10、根据权利要求 9所述的报文传送的方法, 其特征在于, 所述方法还包 括:  The method of transmitting a message according to claim 9, wherein the method further comprises:
若所述组播组定时器超时, 所述接口板删除所述组播组, 并向所述主控板 发送离开4艮文;  If the multicast group timer expires, the interface board deletes the multicast group, and sends a message to the main control board.
所述主控板删除所述离开 ^艮文中记录的组播组。  The main control board deletes the multicast group recorded in the leaving message.
11、 一种接口板, 其特征在于, 包括:  11. An interface board, comprising:
第一报文接收单元, 用于接收第一主机发送的组播组状态改变报文; 查询报文发送单元,用于在所述第一报文接收单元收到所述组播组状态改 变报文后, 向第二主机发送查询报文;  The first packet receiving unit is configured to receive a multicast group state change packet sent by the first host, and the query packet sending unit is configured to receive the multicast group state change report in the first packet receiving unit. After the text, the query message is sent to the second host;
更新单元, 用于在规定时间内未收到第二主机反馈的组播组状态改变报 文,根据所述第一报文接收单元接收的所述组播组状态改变报文更新接口板中 存储的所述组播组状态;  And an update unit, configured to not receive the multicast group state change message fed back by the second host within the specified time, and update the interface board according to the multicast group state change message received by the first packet receiving unit The multicast group status;
发送单元, 用于在所述第一报文接收单元接收到组播组状态改变报文后, 并且在规定时间内未收到第二主机反馈的组播组状态改变报文时,将预置数目 的所述组播组状态改变报文发送到主控板。 a sending unit, configured to: after the first packet receiving unit receives the multicast group state change message, And when the multicast group state change message fed back by the second host is not received within the specified time, the preset number of the multicast group state change packet is sent to the main control board.
12、 根据权利要求 11所述的接口板, 其特征在于, 所述接口板还包括: 第二报文接收单元, 用于在所述查询报文发送单元向第二主机发送查询报文 后, 接收第二主机反馈的组播组状态报文;  The interface board according to claim 11, wherein the interface board further includes: a second packet receiving unit, configured to: after the query message sending unit sends the query message to the second host, Receiving a multicast group status message fed back by the second host;
定时器处理单元,用于在规定时间内所述第二报文接收单元收到第二主机 反馈的组播组状态报文时, 将组播组定时器重置。  The timer processing unit is configured to reset the multicast group timer when the second packet receiving unit receives the multicast group status message fed back by the second host within a predetermined time.
13、 一种接口板, 其特征在于, 包括:  13. An interface board, comprising:
第一报文接收单元, 用于接收第一主机发送的加入报文;  a first packet receiving unit, configured to receive a join message sent by the first host;
存储单元, 用于存储组播组列表;  a storage unit, configured to store a multicast group list;
添加单元,用于在所述存储单元中未存储所述第一报文接收单元接收的加 入报文中记录的组播组时, 添加所述加入报文中记录的组播组;  a adding unit, configured to add a multicast group recorded in the join message when the multicast group recorded in the join message received by the first packet receiving unit is not stored in the storage unit;
发送单元, 用于将所述第一报文接收单元接收的加入报文发送到主控板。 The sending unit is configured to send the join message received by the first packet receiving unit to the main control board.
14、 根据权利要求 13所述的接口板, 其特征在于, 所述接口板还包括定 时器; The interface board according to claim 13, wherein the interface board further includes a timer;
所述定时器处理单元,用于在所述存储单元存储所述第一报文接收单元接 收的加入报文中记录的组播组时 , 将组播组定时器重置;  The timer processing unit is configured to: when the storage unit stores the multicast group recorded in the join message received by the first packet receiving unit, reset the multicast group timer;
所述添加单元还用于将第一主机添加到所述第一接收单元接收的加入报 文记录的组播组中。  The adding unit is further configured to add the first host to the multicast group of the join message record received by the first receiving unit.
15、 一种路由器, 其特征在于, 包括:  15. A router, comprising:
接口板: 用于接收主机发送的报文, 并向所述主机发送查询报文; 若在规 定时间内未收到所述主机发送的组播组状态报文,则根据所述主机发送的报文 更新组播组状态, 并发送所述预置数目的的报文;  The interface board is configured to: receive a packet sent by the host, and send a query message to the host; if the multicast group status message sent by the host is not received within the specified time, the packet is sent according to the host Updating the multicast group status, and sending the preset number of packets;
主控板, 用于接收所述接口板发送的所述预置数目的报文, 并根据所述预 置数目的报文更新所述组播组的状态。  The main control board is configured to receive the preset number of packets sent by the interface board, and update the state of the multicast group according to the preset number of packets.
16、 根据权利要求 15所述的路由器, 其特征在于, 所述接口板包括: 第一报文接收单元, 用于接收第一主机发送的组播组状态改变报文; 查询报文发送单元,用于在所述第一报文接收单元收到所述组播组状态改 变报文后, 向第二主机发送查询报文; 更新单元, 用于在规定时间内未收到第二主机反馈的组播组状态改变报 文,根据所述第一报文接收单元接收的所述组播组状态改变报文更新接口板中 存储的所述组播组状态; The router according to claim 15, wherein the interface board comprises: a first packet receiving unit, configured to receive a multicast group state change message sent by the first host; and query a message sending unit, After the first packet receiving unit receives the multicast group state change packet, sending a query message to the second host; And an update unit, configured to not receive the multicast group state change message fed back by the second host within the specified time, and update the interface board according to the multicast group state change message received by the first packet receiving unit The multicast group status;
发送单元, 用于在所述第一报文接收单元接收到组播组状态改变报文后, 并且在规定时间内未收到第二主机反馈的组播组状态改变报文时,将预置数目 的所述组播组状态改变报文发送到主控板。  The sending unit is configured to: after the first packet receiving unit receives the multicast group state change message, and does not receive the multicast group state change message fed back by the second host within a predetermined time, the sending unit is configured to preset The number of the multicast group state change packets is sent to the main control board.
17、 根据权利要求 15所述的路由器, 其特征在于, 所述主控板包括: 第一报文接收单元, 用于接收第一主机发送的加入报文;  The router according to claim 15, wherein the main control board includes: a first packet receiving unit, configured to receive a join message sent by the first host;
存储单元, 用于存储组播组列表;  a storage unit, configured to store a multicast group list;
添加单元,用于在所述存储单元中未存储所述第一报文接收单元接收的加 入报文中记录的组播组时, 添加所述加入报文中记录的组播组;  a adding unit, configured to add a multicast group recorded in the join message when the multicast group recorded in the join message received by the first packet receiving unit is not stored in the storage unit;
发送单元, 用于将所述第一报文接收单元接收的加入报文发送到主控板。  The sending unit is configured to send the join message received by the first packet receiving unit to the main control board.
PCT/CN2008/070806 2007-05-14 2008-04-25 A method, an interface board and a router for transmitting the message WO2008138248A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710102080.1 2007-05-14
CN2007101020801A CN101052006B (en) 2007-05-14 2007-05-14 Message up sending method and interface plate and router for realizing said method

Publications (1)

Publication Number Publication Date
WO2008138248A1 true WO2008138248A1 (en) 2008-11-20

Family

ID=38783203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070806 WO2008138248A1 (en) 2007-05-14 2008-04-25 A method, an interface board and a router for transmitting the message

Country Status (2)

Country Link
CN (1) CN101052006B (en)
WO (1) WO2008138248A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040395A1 (en) * 2009-07-13 2014-02-06 Vmware, Inc. Concurrency control in a file system shared by application hosts
CN113691462A (en) * 2021-07-29 2021-11-23 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052006B (en) * 2007-05-14 2010-06-09 华为技术有限公司 Message up sending method and interface plate and router for realizing said method
CN102843297B (en) * 2012-08-29 2015-08-19 上海斐讯数据通信技术有限公司 The method of router process query message
CN112713970B (en) * 2016-11-02 2022-05-13 华为技术有限公司 Method, device, chip and terminal for sending message
CN107888991B (en) * 2017-11-10 2020-04-10 深圳市创维软件有限公司 Network link processing method, device and computer readable storage medium
CN115424422B (en) * 2022-07-29 2023-07-21 上海金铎禹辰水环境工程有限公司 Water area early warning method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547363A (en) * 2003-12-12 2004-11-17 港湾网络有限公司 Control method of multicast board-spanning forwarding
KR20050095668A (en) * 2004-03-25 2005-09-30 삼성전자주식회사 Apparatus and method for improving traffic bandwidth in bts
CN1859623A (en) * 2006-03-17 2006-11-08 华为技术有限公司 Method for realizing stream media service
CN101052006A (en) * 2007-05-14 2007-10-10 华为技术有限公司 Message up sending method and interface plate and router for realizing said method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100361470C (en) * 2004-12-30 2008-01-09 华为技术有限公司 Method for realizing multicast by using secondary frame in access for digital subscriber line

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1547363A (en) * 2003-12-12 2004-11-17 港湾网络有限公司 Control method of multicast board-spanning forwarding
KR20050095668A (en) * 2004-03-25 2005-09-30 삼성전자주식회사 Apparatus and method for improving traffic bandwidth in bts
CN1859623A (en) * 2006-03-17 2006-11-08 华为技术有限公司 Method for realizing stream media service
CN101052006A (en) * 2007-05-14 2007-10-10 华为技术有限公司 Message up sending method and interface plate and router for realizing said method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040395A1 (en) * 2009-07-13 2014-02-06 Vmware, Inc. Concurrency control in a file system shared by application hosts
US9787525B2 (en) * 2009-07-13 2017-10-10 Vmware, Inc. Concurrency control in a file system shared by application hosts
CN113691462A (en) * 2021-07-29 2021-11-23 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol
CN113691462B (en) * 2021-07-29 2023-09-15 杭州迪普科技股份有限公司 Response method and device of Internet group management protocol

Also Published As

Publication number Publication date
CN101052006A (en) 2007-10-10
CN101052006B (en) 2010-06-09

Similar Documents

Publication Publication Date Title
Cain et al. Internet group management protocol, version 3
JP5196685B2 (en) Method and apparatus for managing multicast groups
JP4673752B2 (en) Multicast packet controller
US8185657B2 (en) Data generating device
JP4297875B2 (en) Network relay method and apparatus
TWI268065B (en) Method and apparatus for managing multicast groups in a system area network
WO2006081750A1 (en) A process method for filtering multicast source
US20100172353A1 (en) Methods for managing multicast traffic between sources sending data and hosts requesting data and network equipment used to implement the methods
WO2008138248A1 (en) A method, an interface board and a router for transmitting the message
JP2004179811A (en) Packet repeating device
CA2289070A1 (en) Multicast switching
KR101604810B1 (en) Methods for obtaining terminal multicast status
US8724993B2 (en) Station side device and optical communication system
WO2007059679A1 (en) A method for processing the abnormal multicast service and a network equipment thereof
CN102598586A (en) Method and devices for dealing multicast
Cain et al. RFC3376: internet group management protocol, version 3
JP5548696B2 (en) Multicast quality of service module and method
WO2007054006A1 (en) A base station of wideband wireless access system and a method for realizing group-broadcast service
WO2009024054A1 (en) A method, device and system for realizing the management protocol agent for members in a multicast group
WO2009030143A1 (en) Multicast routing method and system, media gateway and media gateway controller
WO2012103748A1 (en) Multicast control method, routing device and multicast system
Cisco IP Multicast Technology Overview
JP5553425B2 (en) Multicast distribution system, distribution router, and multicast distribution method
Tan et al. High-performance reliable network-multicast over a trial deployment
EP2192719A1 (en) Method and system for providing source specific multicast service on Ethernet network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08734164

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08734164

Country of ref document: EP

Kind code of ref document: A1