Method and apparatus for processing packets
A message and leave message technology, applied in the field of communication, can solve the problems of unable to prevent IGMPLeave message attack, not solving the problem of multicast users joining or leaving, and not protecting the switch, so as to improve network security and anti-attack capabilities, effectiveness of ensuring device and network security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] see figure 1 , the embodiment of the present invention provides a method for processing messages, specifically including:
[0028] 101: Receive the IGMP request message from the sender;
[0029] 102: Read the frequency value of the message sent by the sender recorded locally;
[0030] 103: When the frequency value is greater than the preset frequency threshold, discard the IGMP request packet.
[0031] Further, before reading the frequency value of the message sent by the sender recorded locally, it also includes:
[0032] Set the timing;
[0033] Count the number of messages sent by the sender received within a regular time period, and the messages sent by the sender include an IGMP report message and an IGMP leave message;
[0034] According to the timing time and the counted number of packets sent by the sender, the frequency value of the message sent by the sender is obtained, and the frequency value is recorded locally.
[0035] Further, when the Internet Grou...
Embodiment 2
[0048] see figure 2 , the embodiment of the present invention provides a method for processing messages, specifically including:
[0049] 201: When the switch receives the IGMP Report message sent by the multicast user A requesting to join the multicast group B, it judges whether the multicast group ID B of the multicast group B exists in the switch, and if so, it does not need to record in the switch Add 1 to the number of multicast groups; otherwise, add 1 to the number of multicast groups recorded in the switch.
[0050] Wherein, in the IGMP Report message, can include: the identity mark of multicast user, multicast group mark and switch port mark; The identity mark of multicast user mainly comprises the MAC address of multicast user and the VLAN (Virtual Local Area Network) of multicast user , virtual local area network) address; the multicast group identifier is the IP address of the multicast group requested to join, and it can be judged which multicast group is reques...
Embodiment 3
[0076] see image 3 , the embodiment of the present invention provides a device for processing messages, the device specifically includes:
[0077] A receiving module 301, configured to receive an Internet Group Management Protocol request message from a sender;
[0078] The first reading module 302 is used to read the frequency value of the message sent by the sender recorded locally after the receiving module 301 receives the Internet Group Management Protocol request message;
[0079] The first discarding module 303 is configured to discard the IGMP request packet after the frequency value read by the first reading module 302 is greater than a preset frequency threshold.
[0080] Further, see Figure 4 , the device may also include:
[0081] Setting module 304, for setting the timing time;
[0082] The statistics module 305 is used to count the number of packets sent by the sender received within the timing time set by the setting module 304, and the packets sent by the...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com