减少介质访问控制MAC地址表规模的方法和装置制造方法及图纸

技术编号:6069376 阅读:238 留言:0更新日期:2012-04-11 18:40
本发明专利技术涉及通信领域,尤其涉及一种减少MAC地址表规模的方法和装置。该方法包括:将接收到的以太报文的目的MAC地址与预先设置的掩码进行与操作以得到该目的MAC地址的目的网络地址;根据得到的该以太报文的目的网络地址查询MAC地址表,确定是否在MAC地址表中查到该以太报文的目的网络地址;如果在MAC地址表中查到该以太报文的目的网络地址,则根据查到的出接口转发该以太报文;如果该以太报文的目的网络地址在MAC地址表中没有查到,则将该以太报文的目的MAC地址在除接收到该以太报文的接口以外的所有接口上广播,并将该以太报文的目的MAC地址和接收到该以太报文的接口加入MAC地址表。

Method and apparatus for reducing medium access control MAC address table size

The invention relates to the field of communication, in particular to a method and a device for reducing the size of an MAC address table. The method includes: the Ethernet received messages to the MAC address and the preset mask and operation to obtain the purpose of MAC to address the network address of the Ethernet network; according to the message query MAC address table to determine whether the MAC address table to check the Ethernet packet network address if the MAC address table; check to the destination network address the Ethernet packets, according to check out the Ethernet interface forwards the message; if the destination network address of the Ethernet packet in MAC did not check the address table, the Ethernet packet destination MAC address in addition to receive all the Ethernet interface the message on the radio interface, and the Ethernet packet destination MAC address and receive the message of the Ethernet interface into the MAC address table.

【技术实现步骤摘要】

【技术保护点】
1.一种减少介质访问控制MAC地址表规模的方法,其特征在于,包括:将接收到的以太报文的目的MAC地址与预先设置的掩码进行与操作以得到该目的MAC地址的目的网络地址;根据得到的该以太报文的目的网络地址查询MAC地址表,确定是否在MAC地址表中查到该以太报文的目的网络地址;如果在MAC地址表中查到该以太报文的目的网络地址,则根据查到的出接口转发该以太报文;如果该以太报文的目的网络地址在MAC地址表中没有查到,则将该以太报文的目的MAC地址在除接收到该以太报文的接口以外的所有接口上广播,并将该以太报文的目的MAC地址和接收到该以太报文的接口加入MAC地址表。

【技术特征摘要】

【专利技术属性】
技术研发人员:雷奕康张瑞陈艺彪
申请(专利权)人:华为数字技术有限公司
类型:发明
国别省市:11

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1