WO2012146139A1 - 一种报文的过滤方法和接入设备 - Google Patents

一种报文的过滤方法和接入设备 Download PDF

Info

Publication number
WO2012146139A1
WO2012146139A1 PCT/CN2012/074166 CN2012074166W WO2012146139A1 WO 2012146139 A1 WO2012146139 A1 WO 2012146139A1 CN 2012074166 W CN2012074166 W CN 2012074166W WO 2012146139 A1 WO2012146139 A1 WO 2012146139A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
downlink
node
address
user
Prior art date
Application number
PCT/CN2012/074166
Other languages
English (en)
French (fr)
Inventor
郑煜
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP12777743.1A priority Critical patent/EP2698954A4/en
Publication of WO2012146139A1 publication Critical patent/WO2012146139A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags

Definitions

  • the present invention relates to the field of communications, and in particular, to a packet filtering method and an access device. Background technique
  • the access device When the access device receives the ARP broadcast request packet from the upstream node or the unicast IP packet that does not find the Layer 2 forwarding entry based on the destination MAC address, the access device performs Layer 2 forwarding according to vlan+mac and forwards the data through the hardware forwarding plane. All the downstream nodes in the device are broadcasted. For example, as shown in Figure 1, if the uplink node sends an ARP request packet to the downstream destination node whose IP address is IP-1, the destination MAC address is the broadcast address. The plane broadcasts the ARP request packet to all ports (ie, Port-A, Port-B, Port-C, and Port-D). All the ports send the request packet to all downlinks connected to it.
  • ports ie, Port-A, Port-B, Port-C, and Port-D
  • Node (including the downstream destination node with IP address 1 - IP, the downstream node with IP address 2, the downstream node with IP address 3, the downstream node with IP address 4, and the IP address is IP - 5)
  • the downlink node and the IP address are the downlink nodes of IP-6, and the request message only needs to be forwarded to the downlink destination node whose IP address is IP-1 in Port-A, and the port Port-B, Port-C And Port-D Then the downstream nodes do not need to receive the message, so the message does not need to lead to downstream nodes also receive the message, bandwidth resources and generated a lot of junk messages.
  • the embodiments of the present invention provide a packet filtering method and an access device, so that packets sent by an uplink node can be sent only to corresponding user equipments, thereby avoiding waste of bandwidth resources.
  • An embodiment of the present invention provides a packet filtering method, including:
  • the hardware forwarding plane receives the packet sent by the uplink node, where the packet is an address resolution protocol ARP broadcast request packet, or the IP packet of the Layer 2 forwarding entry cannot be found according to the destination MAC, and the packet includes the downlink destination.
  • the hardware forwarding plane determines the user port corresponding to the downlink destination node according to the IP address query correspondence table of the downlink destination node in the packet, where the correspondence table includes the correspondence between the user port of the access device and the downlink node IP address connected thereto ; the downlink destination node.
  • An embodiment of the present invention provides an access device, including:
  • the receiver is configured to receive the packet sent by the uplink node, where the packet is an address resolution protocol ARP broadcast request packet, or the IP packet of the Layer 2 forwarding entry cannot be found according to the destination MAC, where the packet includes IP address of the downstream destination node;
  • a port determining unit configured to determine, according to the IP address query correspondence table of the downlink destination node in the packet, a user port corresponding to the downlink destination node, where the correspondence table includes a downlink node IP of the user port connected to the access device Correspondence of addresses;
  • a transmitter configured to send the packet sent by the uplink node to the downlink destination node by using the corresponding user port determined by the port determining unit.
  • the embodiment of the invention further provides a packet filtering method, including:
  • the user port in the access device receives the packet sent by the hardware forwarding plane, and the packet is an address resolution protocol ARP broadcast request packet, or the IP packet of the Layer 2 forwarding entry cannot be found according to the destination MAC,
  • the text includes the IP address of the downstream destination node;
  • the user port in the access device queries the access user table whether the user port corresponds to the IP address of the downlink destination node in the packet, and if yes, sends the packet to the downlink destination node; if not, And deleting the packet; the access user table includes a mapping relationship between the user port and the IP address of the downlink node to which the user port is connected, or the access user table includes all user ports in the access device and the downlink node IP address connected thereto Correspondence relationship.
  • the embodiment of the invention further provides an access device, including:
  • a receiving module configured to receive a packet sent by a hardware forwarding plane, where the packet is an address resolution protocol
  • the ARP broadcast request packet, or the IP address of the Layer 2 forwarding entry is not found according to the destination MAC address, where the packet includes the IP address of the downlink destination node.
  • a judging module configured to query, in the access user table, whether the IP address of the downlink destination node is in the packet, and if yes, instructing the sender to send the packet, if not, discarding the packet;
  • the user table includes a mapping relationship between the user port and the IP address of the downlink node to which the user port is connected, or the access user table includes a correspondence between all user ports in the access device and the downlink node IP address to which the connection is connected;
  • the instruction of the determining module sends the packet received by the receiving module to the downlink destination node.
  • the packet can be sent to the corresponding user equipment only through the user port corresponding to the downlink destination node according to the query correspondence table or the access user table, thereby avoiding bandwidth resources. Waste, while reducing the number of unnecessary broadcast messages, thereby improving the security of the network.
  • FIG. 1 is a schematic diagram of an ARP broadcast request message or a unicast IP packet transmission in the prior art
  • FIG. 2 is a schematic flowchart of a packet filtering method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an access device according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic flowchart of still another method for filtering a packet according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an access device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an ARP broadcast request message or a unicast IP packet transmission according to an embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a packet filtering method, as shown in FIG. 2, including:
  • the hardware forwarding plane receives the packet sent by the uplink node, where the packet includes an IP address of the downlink destination node.
  • the foregoing packet may be an address resolution protocol (ARP) broadcast request message, or may be an IP packet that cannot find a Layer 2 forwarding entry according to a destination MAC (Media Access Control).
  • ARP address resolution protocol
  • IP packet that cannot find a Layer 2 forwarding entry according to a destination MAC (Media Access Control).
  • the hardware forwarding plane determines the user port corresponding to the downlink destination node according to the IP address query correspondence table of the downlink destination node in the packet, where the correspondence table includes the IP address of the downlink node connected to the user port in the access device. Correspondence relationship.
  • the foregoing correspondence table may be sent by the CPU in the access device to the hardware forwarding plane, or may be reported by the downlink node in advance. If the mapping between the user port of the access device and the downlink IP address of the connected node is as shown in FIG. 1, the correspondence table may include:
  • the hardware forwarding plane determines that the user port in the access device corresponding to IP-1 is Port-A by querying the corresponding table. Therefore, the hardware forwarding plane sends the ARP request packet to the downlink destination node through Port-A.
  • the embodiment of the present invention further provides an access device, which may be a hardware forwarding plane, as shown in FIG. 3, and includes:
  • the receiver 31 is configured to receive the packet sent by the uplink node, where the packet is an address resolution protocol ARP request packet, or the IP packet of the Layer 2 forwarding entry is not found according to the destination MAC, where the packet includes IP address of the downstream destination node.
  • the port determining unit 32 is configured to determine, according to the IP address query correspondence table of the downlink destination node in the packet received by the receiving unit 31, the user port corresponding to the downlink destination node, where the user port of the corresponding table access device is connected thereto Correspondence relationship of the downlink node IP address.
  • the transmitter 33 is configured to send the packet sent by the uplink node to the downlink destination node by using the corresponding user port determined by the port determining unit 32.
  • the foregoing access device may further include a memory, configured to store the correspondence table.
  • the corresponding table may be sent by the CPU in the access device to the hardware forwarding plane, or may be reported by the downlink node in advance.
  • An embodiment of the present invention provides a filtering method for a packet, as shown in FIG. 4, including:
  • the user port in the access device receives the packet sent by the hardware forwarding plane, where the packet includes the IP address of the downlink destination node.
  • the foregoing packet may be an address resolution protocol (ARP) packet, or may be an IP packet that cannot find a Layer 2 forwarding entry according to the destination MAC address.
  • ARP address resolution protocol
  • the user port in the access device queries the access user table whether the user port corresponds to the IP address of the downlink destination node in the packet, and if yes, performs 43; if not, performs 44;
  • the user table includes a mapping relationship between the user port and the IP address of the downlink node to which the user port is connected, or the access user table includes a correspondence between all user ports in the access device and the downlink node IP address to which the connection is connected.
  • the access user table may be that the access user table is manually configured, or may be The downlink node in the user port is pre-reported. Alternatively, the CPU in the access device may send the CPU to each user port. If the mapping between the user port of the access device and the downlink IP address of the connected device is as shown in Figure 1, the user ports in the access device are Port-A, Port-B, Port-C, and Port-D. User tables can all be:
  • the access user table of the user port in the access device is Port-A:
  • the access user list of the user port in the access device is Port-B:
  • the access user list of the user port in the access device is Port-C:
  • the access user table of the user port in the access device is Port-A:
  • the user port in the access device sends the received packet to the downlink destination node.
  • the user port in the access device discards the received packet.
  • the hardware forwarding plane sends the ARP request packet to the access device separately.
  • each user port queries the access user table to determine whether the user port corresponds to an IP address of IP-1.
  • the downlink node at this time, only the user port Port_A queries the downlink destination node whose IP address is IP-1, and the user port Port_A sends the ARP request packet to the downlink destination node; B.
  • Port-C and Port-D discard the ARP request packet.
  • An embodiment of the present invention provides an access device, where the access device may be a user port in the access device, as shown in FIG. 5, including:
  • the receiving module 51 is configured to receive the packet sent by the hardware forwarding plane, where the packet is an address resolution protocol ARP request packet, or the IP packet of the Layer 2 forwarding entry cannot be found according to the destination MAC, where the packet is in the packet. Including the IP address of the downstream destination node.
  • the determining module 52 is configured to query, in the access user table, whether the IP address of the downlink destination node in the packet is corresponding, and if yes, instruct the sender to send the packet 53; if not, discard the packet;
  • the access user table includes a mapping relationship between the user port and the IP address of the downlink node to which the user port is connected, or the access user table includes a correspondence between all user ports in the access device and the downlink node IP address to which the connection is connected.
  • the transmitter 53 is configured to send the packet received by the receiving module 51 to the downlink destination node according to the indication of the determining module 52.
  • the access device may further include a memory, where the access user table is configured, where the access user table may be manually configured in the access user table, or may be in a user port.
  • the downlink node is pre-reported, and may be optionally sent by the CPU in the access device to each user port.
  • the packet may be not limited to the IP address of the downlink destination node, and the identity information of the downlink destination node that can be associated with the user port in the access device may be implemented by using the method in the embodiment of the present invention.
  • the embodiments of the present invention are also not limited to applications of access devices.
  • the hardware forwarding plane of the embodiment of the present invention uses the query correspondence table to send an ARP request packet or according to the purpose.
  • the IP address of the Layer 2 forwarding entry that is not found by the MAC address is sent to the required downstream destination node.
  • the user port on the access device can prevent the ARP request packet from being queried or the destination MAC address cannot be found.
  • the IP packets of the forwarding entry are sent to the undesired downstream destination nodes.
  • the foregoing technical solutions implement the filtering of the packets, which avoids the waste of bandwidth resources and reduces the number of unnecessary broadcast packets.
  • the security of the network reduces the possibility of malicious users attacking other users on the network.
  • each unit or device or module included is only divided according to functional logic, but is not limited to the foregoing division, as long as the corresponding function can be implemented;
  • the specific names of the functional units or modules are also only for the purpose of distinguishing between the two, and are not intended to limit the scope of the present invention.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

一种报文的过滤方法和接入设备,涉及网络通信技术。本发明实施例的技术方案包括:首先,硬件转发平面或接入设备中的用户端口接收上行节点发送的报文;然后,硬件转发平面根据该报文中下行目的节点的IP地址查询对应表确定下行目的节点对应的用户端口,并将该报文通过该对应的用户端口发送给下行目的节点;或者,用户端口在接入用户表中查询本用户端口是否对应所述寺艮文中下行目的节点的IP地址,若是,则将该报文发送给所述下行目的节点;若否,则丢弃报文。其根据查询对应表或接入用户表使得报文可以通过下行目的节点对应的用户端口仅发送给对应的用户设备,避免了带宽资源的浪费,同时减少了不必要的广播报文数量,从而提高了网络的安全性。

Description

一种报文的过滤方法和接入 i殳备 本申请要求于 2011 年 4 月 28 日提交中国专利局、 申请号为 201110115531.1, 发明名称为"一种报文的过滤方法和接入设备"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 尤其涉及一种报文的过滤方法和接入设备。 背景技术
目前接入设备接收到上行节点发送 ARP 广播请求报文或根据目的 MAC查找不到二层转发表项的单播 I P报文时, 都会根据 vlan+mac进行二 层转发,通过硬件转发平面向接入设备中所有的下行节点都进行广播,例如, 如图 1所示, 若上行节点发送 ARP请求报文给 I P地址为 I P— 1 的下行目的 节点, 由于目的 MAC是广播地址, 此时硬件转发平面会将该 ARP请求报 文向所有的端口 (即 Port— A、 Port— B、 Port— C和 Port— D )进行广播, 所有 的端口会将该请求报文下发给与其连接的所有下行节点 (包括 I P 地址为 I P— 1 的下行目的节点、 I P地址为 IP— 2的下行节点、 I P地址为 IP— 3的下行 节点、 IP地址为 I P— 4的下行节点、 IP地址为 IP— 5的下行节点和 I P地址为 I P— 6的下行节点), 而该请求报文只需转发给 Port— A中 IP地址为 I P— 1 的 下行目的节点即可, 与端口 Port— B、 Port— C和 Port— D连接的下行节点并 不需要接收该报文, 故导致不需要该报文的下行节点也会接收到该报文, 占 用带宽资源并产生了大量的垃圾报文。 发明内容 本发明的实施例提供了一种报文的过滤方法和接入设备, 使得上行节点发 送的报文能够仅发送给对应的用户设备, 避免了带宽资源的浪费。 本发明实施例提供了一种报文的过滤方法, 包括:
硬件转发平面接收上行节点发送的报文, 所述报文为地址解析协议 ARP广 播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文中包 括下行目的节点的 IP地址;
硬件转发平面根据所述报文中下行目的节点的 IP地址查询对应表确定所述 下行目的节点对应的用户端口, 所述对应表包括接入设备中用户端口与其连接 的下行节点 I P地址的对应关系; 所述下行目的节点。
本发明实施例提供了一种接入设备, 包括:
接收器, 用于接收上行节点发送的报文, 所述报文为地址解析协议 ARP广 播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文中包 括下行目的节点的 IP地址;
端口确定单元, 用于根据所述报文中下行目的节点的 IP地址查询对应表确 定所述下行目的节点对应的用户端口, 所述对应表包括该接入设备中用户端口 与其连接的下行节点 I P地址的对应关系;
发送器, 用于将上行节点发送的报文通过所述端口确定单元确定的所述对 应的用户端口发送给所述下行目的节点。
本发明实施例还提供了一种报文的过滤方法, 包括:
接入设备中的用户端口接收硬件转发平面发送的报文, 所述报文为地址解 析协议 ARP广播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述 >¾文中包括下行目的节点的 IP地址;
接入设备中的用户端口在接入用户表中查询本用户端口是否对应所述报文 中下行目的节点的 IP地址, 若是, 则将所述报文发送给所述下行目的节点; 若 否, 则丢弃报文; 所述接入用户表包括本用户端口与其连接的下行节点的 IP地 址的对应关系, 或所述接入用户表包括接入设备中所有用户端口与其连接的下 行节点 IP地址的对应关系。 本发明实施例还提供了接入设备, 包括:
接收模块, 用于接收硬件转发平面发送的报文, 所述报文为地址解析协议
ARP广播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报 文中包括下行目的节点的 IP地址;
判断模块, 用于在接入用户表中查询是否对应所述报文中下行目的节点的 IP地址, 若是, 则指示发送器发送所述报文, 若否, 则丢弃报文; 所述接入用 户表包括本用户端口与其连接的下行节点的 IP地址的对应关系, 或所述接入用 户表包括接入设备中所有用户端口与其连接的下行节点 I P地址的对应关系; 发送器, 用于根据判断模块的指示, 将接收模块接收到的所述报文发送给 所述下行目的节点。
由上述本发明的实施例提供的技术方案可以看出,其根据查询对应表或 接入用户表使得报文可以通过下行目的节点对应的用户端口仅发送给对应 的用户设备, 避免了带宽资源的浪费, 同时减少了不必要的广播报文数量, 从而提高了网络的安全性。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需 要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为现有技术中 ARP广播请求报文或单播 IP报文传输的示意图; 图 2为本发明实施例提供的一种报文的过滤方法流程示意图;
图 3为本发明实施例提供的接入设备的结构示意图;
图 4为本发明实施例提供的又一种报文的过滤方法流程示意图;
图 5为本发明实施例提供的接入设备的结构示意图;
图 6为本发明实施例中 ARP广播请求报文或单播 IP报文传输的示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供了一种报文的过滤方法, 如图 2所示, 包括:
21、 硬件转发平面接收上行节点发送的报文, 所述报文中包括下行目的节 点的 I P地址。
具体地, 上述报文可以是地址解析协议(ARP )广播请求报文, 也可以是 根据目的 MAC ( Media Access Control , 介质访问控制)查找不到二层转发表 项的 I P报文。
22、 硬件转发平面根据所述报文中下行目的节点的 IP地址查询对应表确定 所述下行目的节点对应的用户端口, 所述对应表包括接入设备中用户端口与其 连接的下行节点 I P地址的对应关系。
进一步, 上述对应表可以是接入设备中的 CPU发送给硬件转发平面的, 也 可以是下行节点预先上报的。 若接入设备中用户端口与其连接的下行节点 I P地 址的对应关系如图 1所示, 则对应表可以包括:
Figure imgf000006_0001
送给所述下行目的节点。
具体地, 例如, 若上行节点发送 ARP请求报文给 I P地址为 I P— 1的下行目的 节点, 则硬件转发平面通过查询对应表确定 IP— 1对应的接入设备中的用户端口 为 Port— A, 故硬件转发平面将 ARP请求报文通过 Port— A发送给下行目的节点。
本发明实施例还提供了接入设备,该接入设备可以是硬件转发平面,如图 3 所示, 包括:
接收器 31 , 用于接收上行节点发送的报文, 所述报文为地址解析协议 ARP 请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文中包括 下行目的节点的 IP地址。
端口确定单元 32, 用于根据接收单元 31接收到的报文中下行目的节点的 IP 地址查询对应表确定所述下行目的节点对应的用户端口, 所述对应表接入设备 中用户端口与其连接的下行节点 I P地址的对应关系。
发送器 33, 用于将上行节点发送的报文通过端口确定单元 32确定的所述对 应的用户端口发送给所述下行目的节点。
作为可选的, 上述接入设备, 还可以包括存储器, 用于存储所述对应表。 对应表可以是接入设备中的 CPU发送给硬件转发平面的, 也可以是下行节点预 先上报的。
上述接入设备中包含的各单元或各器件的处理功能的具体实现方式在之前 的方法实施例中已经描述, 在此不再重复描述。
本发明实施例提供了又一种报文的过滤方法, 如图 4所示, 包括:
41、 接入设备中的用户端口接收硬件转发平面发送的报文, 所述报文中包 括下行目的节点的 IP地址。
具体地, 上述报文可以是地址解析协议(ARP )报文, 也可以是根据目的 MAC查找不到二层转发表项的 I P报文。
42、 接入设备中的用户端口在接入用户表中查询本用户端口是否对应所述 报文中下行目的节点的 IP地址, 若是, 则执行 43; 若否, 则执行 44; 所述接入 用户表包括本用户端口与其连接的下行节点的 I P地址的对应关系, 或所述接入 用户表包括接入设备中所有用户端口与其连接的下行节点 I P地址的对应关系。
进一步, 上述接入用户表可以是所述接入用户表是手动配置的, 也可以是 用户端口中的下行节点预先上报的, 作为可选的还可以是接入设备中的 CPU发 送给各个用户端口的。 若接入设备中用户端口与其连接的下行节点 IP地址的对 应关系如图 1所示, 则接入设备中的用户端口为 Port— A、 Port— B、 Port— C和 Port— D的接入用户表可以都为:
Figure imgf000008_0001
或者, 接入设备中的用户端口为 Port— A的接入用户表为:
Figure imgf000008_0002
接入设备中的用户端口为 Port— B的接入用户表为:
Figure imgf000008_0003
接入设备中的用户端口为 Port— C的接入用户表为:
Figure imgf000008_0004
接入设备中的用户端口为 Port— A的接入用户表为:
Figure imgf000008_0005
43、 接入设备中的用户端口将接收到的报文发送给所述下行目的节点。
44、 接入设备中的用户端口丢弃接收到的报文。
具体地, 如图 6所示, 若上行节点发送 ARP请求报文给 IP地址为 IP— 1的下 行目的节点, 则硬件转发平面会将该 ARP请求报文分别发送给接入设备中的用 户端口 Port— A、 Port— B、 Port— C和 Port— D,每个用户端口接收到该 ARP报文后, 均会查询接入用户表确定本用户端口是否对应 I P地址为 I P— 1的下行节点, 此时 仅有用户端口 Port— A查询到其自身对应 I P地址为 I P— 1的下行目的节点, 则用户 端口 Port— A将该 ARP请求报文发送给下行目的节点; 用户端口 Port— B、 Port— C 和 Port— D丢弃该 ARP请求报文。
本发明实施例提供了接入设备,该接入设备可以是接入设备中的用户端口, 如图 5所示, 包括:
接收模块 51 , 用于接收硬件转发平面发送的报文, 所述报文为地址解析协 议 ARP请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文 中包括下行目的节点的 IP地址.
判断模块 52, 用于在接入用户表中查询是否对应所述报文中下行目的节点 的 IP地址, 若是, 则指示发送器发送所述报文 53, 若否, 则丢弃报文; 所述接 入用户表包括本用户端口与其连接的下行节点的 I P地址的对应关系, 或所述接 入用户表包括接入设备中所有用户端口与其连接的下行节点 I P地址的对应关 系。
发送器 53, 用于根据判断模块 52的指示, 将接收模块 51接收到的所述报文 发送给下行目的节点。
作为可选的, 上述接入设备, 还可以包括存储器, 用于存储所述接入用户 表, 上述接入用户表可以是所述接入用户表是手动配置的, 也可以是用户端口 中的下行节点预先上报的, 作为可选的还可以是接入设备中的 CPU发送给各个 用户端口的。
上述接入设备中包含的各模块的处理功能的具体实现方式在之前的方法实 施例中已经描述, 在此不再重复描述。
上述实施例中, 报文中可以不仅限于下行目的节点的 IP地址, 其它可以与 接入设备中的用户端口对应的下行目的节点的身份信息都可以用本发明实施例 所述的方法实现。 本发明实施例也不仅限于接入设备的应用。
本发明实施例的硬件转发平面通过查询对应表将 ARP请求报文或根据目的 MAC查找不到二层转发表项的 IP报文仅发送给需要的下行目的节点, 以及接入 设备中的用户端口通过查询接入用户表避免了 ARP请求报文或根据目的 MAC 查找不到二层转发表项的 IP报文下发给不需要的下行目的节点, 上述技术方案 均实现了对报文的过滤, 避免了带宽资源的浪费, 同时减少了不必要的广播报 文数量, 从而提高了网络的安全性, 降低了恶意用户对网络中其它用户的攻击 可能性。
值得注意的是, 上述接入设备实施例中, 所包括的各个单元或器件或模块 只是按照功能逻辑进行划分的, 但并不局限于上述的划分, 只要能够实现相应 的功能即可; 另外, 各功能单元或模块的具体名称也只是为了便于相互区分, 并不用于限制本发明的保护范围。
另外, 本领域普通技术人员可以理解实现上述各方法实施例中的全部或部 分步骤是可以通过程序来指令相关的硬件完成, 相应的程序可以存储于一种计 算机可读存储介质中, 上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不 局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围 内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。

Claims

权利要求
1、 一种报文的过滤方法, 其特征在于, 包括:
硬件转发平面接收上行节点发送的报文, 所述报文为地址解析协议 ARP广 播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文中包 括下行目的节点的 IP地址;
硬件转发平面根据所述报文中下行目的节点的 IP地址查询对应表确定所述 下行目的节点对应的用户端口, 所述对应表包括接入设备中用户端口与其连接 的下行节点 I P地址的对应关系; 所述下行目的节点。
2、 根据权利要求 1所述的方法, 其特征在于, 所述对应表是接入设备中的 CPU发送的, 或所述对应表是下行节点预先上报的。
3、 一种接入设备, 其特征在于, 包括:
接收器, 用于接收上行节点发送的报文, 所述报文为地址解析协议 ARP广 播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报文中包 括下行目的节点的 IP地址;
端口确定单元, 用于根据所述报文中下行目的节点的 IP地址查询对应表确 定所述下行目的节点对应的用户端口, 所述对应表包括该接入设备中用户端口 与其连接的下行节点 I P地址的对应关系;
发送器, 用于将上行节点发送的报文通过所述端口确定单元确定的所述对 应的用户端口发送给所述下行目的节点。
4、 根据权利要求 3所述的接入设备, 其特征在于, 还包括:
存储器, 用于存储所述对应表, 所述对应表是接入设备中的 CPU发送的, 或所述对应表是下行节点预先上报的。
5、 一种报文的过滤方法, 其特征在于, 包括:
接入设备中的用户端口接收硬件转发平面发送的报文, 所述报文为地址解 析协议 ARP广播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述 >¾文中包括下行目的节点的 IP地址;
接入设备中的用户端口在接入用户表中查询本用户端口是否对应所述报文 中下行目的节点的 IP地址, 若是, 则将所述报文发送给所述下行目的节点; 若 否, 则丢弃报文; 所述接入用户表包括本用户端口与其连接的下行节点的 IP地 址的对应关系, 或所述接入用户表包括接入设备中所有用户端口与其连接的下 行节点 IP地址的对应关系。
6、 根据权利要求 5所述的方法, 其特征在于, 所述接入用户表是手动配置 的, 或所述接入用户表是下行节点预先上报的。
7、 一种接入设备, 其特征在于, 包括:
接收模块, 用于接收硬件转发平面发送的报文, 所述报文为地址解析协议 ARP广播请求报文, 或根据目的 MAC查找不到二层转发表项的 IP报文, 所述报 文中包括下行目的节点的 IP地址;
判断模块, 用于在接入用户表中查询是否对应所述报文中下行目的节点的 IP地址, 若是, 则指示发送器发送所述报文, 若否, 则丢弃报文; 所述接入用 户表包括本用户端口与其连接的下行节点的 IP地址的对应关系, 或所述接入用 户表包括接入设备中所有用户端口与其连接的下行节点 I P地址的对应关系; 发送器, 用于根据判断模块的指示, 将接收模块接收到的所述报文发送给 所述下行目的节点。
8、 根据权利要求 7所述的接入设备, 其特征在于, 还包括:
存储器, 用于存储所述接入用户表, 所述接入用户表是手动配置的, 或所 述接入用户表是下行节点预先上报的。
PCT/CN2012/074166 2011-04-28 2012-04-17 一种报文的过滤方法和接入设备 WO2012146139A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP12777743.1A EP2698954A4 (en) 2011-04-28 2012-04-17 MESSAGE FILTRATION PROCEDURE AND ACCESSORY DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101155311A CN102761474A (zh) 2011-04-28 2011-04-28 一种报文的过滤方法和接入设备
CN201110115531.1 2011-04-28

Publications (1)

Publication Number Publication Date
WO2012146139A1 true WO2012146139A1 (zh) 2012-11-01

Family

ID=47055800

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/074166 WO2012146139A1 (zh) 2011-04-28 2012-04-17 一种报文的过滤方法和接入设备

Country Status (3)

Country Link
EP (1) EP2698954A4 (zh)
CN (1) CN102761474A (zh)
WO (1) WO2012146139A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566276A (zh) * 2017-10-24 2018-01-09 盛科网络(苏州)有限公司 一种精确过滤pon业务下行泛洪报文的方法及装置
CN109936506B (zh) * 2017-12-18 2020-10-09 华为技术有限公司 数据传输方法、设备及系统
CN109451530B (zh) * 2019-01-03 2022-04-22 中国联合网络通信集团有限公司 信息收集方法和信息收集系统
CN110768983B (zh) * 2019-10-24 2022-04-22 新华三信息安全技术有限公司 一种报文处理方法和装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031488A1 (en) * 2000-07-11 2006-02-09 Scorpion Controls, Inc. Automatic determination of correct IP address for network-connected devices
CN101098290A (zh) * 2006-06-29 2008-01-02 中兴通讯股份有限公司 一种在an上实现ip地址防欺骗的装置及其方法
CN101459620A (zh) * 2009-01-06 2009-06-17 杭州华三通信技术有限公司 一种转发组播数据的方法和装置
CN101741702A (zh) * 2008-11-25 2010-06-16 中兴通讯股份有限公司 实现arp请求广播限制的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7826447B1 (en) * 2005-06-22 2010-11-02 Marvell International Ltd. Preventing denial-of-service attacks employing broadcast packets
EP1758336A1 (en) * 2005-08-24 2007-02-28 Alcatel ARP relay
US8996683B2 (en) * 2008-06-09 2015-03-31 Microsoft Technology Licensing, Llc Data center without structural bottlenecks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031488A1 (en) * 2000-07-11 2006-02-09 Scorpion Controls, Inc. Automatic determination of correct IP address for network-connected devices
CN101098290A (zh) * 2006-06-29 2008-01-02 中兴通讯股份有限公司 一种在an上实现ip地址防欺骗的装置及其方法
CN101741702A (zh) * 2008-11-25 2010-06-16 中兴通讯股份有限公司 实现arp请求广播限制的方法和装置
CN101459620A (zh) * 2009-01-06 2009-06-17 杭州华三通信技术有限公司 一种转发组播数据的方法和装置

Also Published As

Publication number Publication date
EP2698954A4 (en) 2014-04-09
CN102761474A (zh) 2012-10-31
EP2698954A1 (en) 2014-02-19

Similar Documents

Publication Publication Date Title
US7643507B2 (en) Multicast packet processing apparatus and method
KR100811890B1 (ko) 인터넷 시스템에서 서비스 플로우를 보장하는 애니캐스트라우팅 방법 및 장치
US7990857B2 (en) Priority aware MAC flow control
EP2279585B1 (en) Method and apparatus for multicast group management
WO2007019785A1 (fr) Systeme de commutation reseau local virtuel a multidiffusion et procede associe
WO2011072532A1 (zh) 报文处理方法、接入设备和通信系统
EP3313031B1 (en) Sdn-based arp realization method and apparatus
WO2018121535A1 (zh) 一种负载均衡处理方法及装置
WO2021233327A1 (zh) 报文处理方法及装置、通告方法及装置、网桥节点、源设备、存储介质及报文处理系统
WO2015109478A1 (zh) 实现arp的方法、交换设备及控制设备
WO2013123862A1 (zh) 存储和发送mac地址表项的方法、设备及系统
EP2652919B1 (en) Method for group-based multicast with non-uniform receivers
WO2020051862A1 (zh) 一种避免广播风暴的方法和装置
CN102045250B (zh) Vpls中组播报文的转发方法和服务提供商边缘设备
WO2011107052A2 (zh) 一种防止地址冲突的方法及接入节点
WO2009124477A1 (zh) 一种报文传输的方法、系统和装置
JP2006074132A (ja) マルチキャスト通信方法及びゲートウェイ装置
WO2012146139A1 (zh) 一种报文的过滤方法和接入设备
WO2007054006A1 (fr) Station de base de système d’accès sans fil large bande et système pour réaliser un service de diffusion de groupe
WO2012109864A1 (zh) 报文转发方法和装置
WO2015074423A1 (zh) 一种接入网关中数据报文的转发处理方法
WO2019174552A1 (zh) 组播路由处理方法、网络设备以及路由反射器
WO2012068854A1 (zh) 一种mac地址更新方法及装置
EP3297210B1 (en) Method and apparatus for setting packet transmission mode
WO2012062156A1 (zh) Vplsmac表项空间的配置方法和装置

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: 12777743

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2012777743

Country of ref document: EP