CN105656780A - Data message forwarding method and device - Google Patents

Data message forwarding method and device Download PDF

Info

Publication number
CN105656780A
CN105656780A CN201610153782.1A CN201610153782A CN105656780A CN 105656780 A CN105656780 A CN 105656780A CN 201610153782 A CN201610153782 A CN 201610153782A CN 105656780 A CN105656780 A CN 105656780A
Authority
CN
China
Prior art keywords
data message
port
processing module
input port
hardware processing
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201610153782.1A
Other languages
Chinese (zh)
Inventor
黄洪武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN201610153782.1A priority Critical patent/CN105656780A/en
Publication of CN105656780A publication Critical patent/CN105656780A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a data message forwarding method and device. A data message is processed through a software processing module and then forwarded to a hardware processing module to be processed, and the data message is subjected to flooding forwarding on other ports except an input port by the hardware processing module. Thus, compared with the prior art, Snooping forwarding is achieved through hardware flooding, it is not needed that software is involved in forwarding or many message copies are made, the forwarding performance is high, and the burden of a CPU is greatly relieved.

Description

A kind of data message forwarding method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of data message forwarding method and device.
Background technology
Port protection mainly refers to the mechanism not carrying out between a kind of port guaranteed on same exchange board communicating. Wherein a kind of conventional scene has: port arrangement is for after protection port; can make between the port protected each other, not allow two layers to forward any information; comprise clean culture, multicast and broadcast bag; all transmission between protection port all must pass through three layers of forwarding, and the transmission between protection port and non-protected port is not affected.
Snooping forwards technology (being called for short Snooping technology) and mainly refers to direct two layers of all kinds of protocol broadcast message forwarded originally, after opening agreement Snooping function on port based on the consideration of the aspects such as safety, specific data message will be monitored by exchange board, it is sent to switch software to judge, if judge legal after, carrying out general flood by software again to forward, whole process is referred to as Snooping forwarding technology.
Fig. 1 is that in prior art, Snooping forwards implementation, for switch device, port A, B, C, D, E on switch device belongs to VLAN1, a F, G belongs to a VLAN2, and wherein VLAN is VLAN (VirtualLocalAreaNetwork);
Being furnished with agreement Snooping function on A port, all the other port arrangement are not essential, and it is as follows that Snooping forwards process:
1) A port receives data message;
2) because of A port arrangement Snooping function, this data message does not directly forward, but delivers software processes of changing planes;
3) this data message is decided by switch software, and it is legal to be judged as, it is necessary to message is re-started forwarding;
4) switch software inquiry outlet is for B, C, D, E port, therefore data message is copied into four parts from B, C, D, E port and sends; Can see that port F, G of not belonging to same VLAN do not have this data message and produce.
The scheme that existing Snooping forwards needs software to participate in forwarding, and performance is comparatively low, virtually adds the burden of CPU.
Summary of the invention
The present invention proposes a kind of data message forwarding method and device, needs software to participate in forwarding for solving Snooping forwarding scheme in prior art, the problem that performance is comparatively low.
The present invention provides a kind of data message forwarding method, and described method comprises:
Receive data message at input port, and described data message forwarding is processed to software processing module;
After software processing module has processed, by described data message forwarding to hardware processing module;
Described data message general flood on other port except described input port is forwarded by described hardware processing module;
The present invention also provides a kind of data message forwarding device, and described device comprises:
Receiver module, for receiving data message at input port, and processes described data message forwarding to software processing module;
Software processing module, for processing described data message, by described data message forwarding to hardware processing module after having processed;
Hardware processing module, forwards described data message general flood on other port except described input port;
Sending module, for assisting described hardware processing module to be sent by described data message.
The data message forwarding method of the present invention and device, after data Message processing being completed by software processing module, data message forwarding is processed to hardware processing module, and by hardware processing module, data message general flood on other port except input port is forwarded, make compared to prior art, have employed the general flood of hardware and achieve Snooping forwarding, do not need software to participate in forwarding and message being copied many parts, forward performance height, significantly reduce the burden of CPU.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is that in prior art, Snooping forwards implementation schematic diagram;
The data message forwarding method schema that Fig. 2 provides for the embodiment of the present invention one;
Fig. 3 is data message forwarding implementation schematic diagram of the present invention;
The data message forwarding apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the present invention two.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Needing software to participate in forwarding to solve Snooping forwarding scheme in prior art, the problem that performance is comparatively low, the present invention proposes a kind of data message forwarding scheme.
The data message forwarding method schema that Fig. 2 provides for the embodiment of the present invention one, as shown in the figure, described method comprises:
101, receive data message at input port, and described data message forwarding is processed to software processing module;
201, after software processing module has processed, by described data message forwarding to hardware processing module;
301, described data message general flood on other port except described input port is forwarded by described hardware processing module;
Wherein said input port arrangement Snooping function.
Data message forwarding is processed to hardware processing module by the present embodiment after being completed by data Message processing by software processing module, and by hardware processing module, data message general flood on other port except input port is forwarded, make compared to prior art, have employed the general flood of hardware and achieve Snooping forwarding, software is not needed to participate in forwarding and message being copied many parts, forward performance height, significantly reduce the burden of CPU.
Further, step 301 is specifically as follows:
The port protection function table that described hardware processing module cannot communicate according to the port pre-set and self port, forwards described data message general flood on other port except described input port;
Wherein all ports all configure port protection function.
Port protection function table in the present embodiment sets all ports and all can not communicate with self port; can communicate with other port; for all ports being configured with port protection function; need when hardware forwards to mate this port protection function table; therefore data message general flood on other ports except input port according to this port protection function table pre-set, can be forwarded by hardware processing module.
Further, step 201 is specifically as follows:
After described software processing module has processed, for described data message adds the mark that described input port is corresponding, by described data message forwarding to hardware processing module;
Step 301 is specifically as follows:
The mark that described hardware processing module is corresponding according to described input port; the port protection function table that the port that coupling pre-sets cannot communicate with self port; determine that described data message cannot forward at described input port, described data message general flood on other port except described input port is forwarded.
Hardware processing module in the present embodiment is when mating port protection function table; be according to software processing module be data message add with input mark corresponding to port; the table item finding data message input port corresponding; draw not to this input port forwarding data packets; and to other port forwarding data packets, thus complete data message general flood on other port except input port and forward.
Further, step 301 is specifically as follows:
Described hardware processing module is by described data message in the VLAN at described input port place, and on other port except described input port, general flood forwards.
Namely data message only general flood in input port place VLAN, limits the scope of general flood.
Being described for the switch device in Fig. 3 below, port A, B, C, D, the E on switch device belongs to VLAN1, a F, G belongs to a VLAN2;
Being furnished with Snooping function on A port, all ports all configure port protection function.
It is as follows that Snooping forwards process:
1) A port receives data message;
2) because of A port arrangement Snooping function, this data message does not directly forward, but delivers software processes of changing planes;
3) this data message is decided by switch software, and it is legal to be judged as, it is necessary to message is re-started forwarding;
4) this data message is filled in upper input terminus message and is ceased and be that this message is stamped after special Flag marks and directly given exchange board hardware and forward by switch software;
5) data message is by flood general in the VLAN at A port place; if there is no the configuration of port protection; this data message can produce from A, B, C, D, E port; because the ingress port information of data message is A; and carry Flag information; therefore be prevented to the forwarding behavior of A port, complete Snooping function and forward demand.
The data message forwarding apparatus structure schematic diagram that Fig. 4 provides for the embodiment of the present invention two, described device comprises:
Receiver module 10, for receiving data message at input port, and processes described data message forwarding to software processing module;
Software processing module 20, for processing described data message, by described data message forwarding to hardware processing module after having processed;
Hardware processing module 30, forwards described data message general flood on other port except described input port;
Sending module 40, for assisting described hardware processing module to be sent by described data message;
Described input port arrangement Snooping function.
Data message forwarding is processed to hardware processing module by the present embodiment after being completed by data Message processing by software processing module, and by hardware processing module, data message general flood on other port except input port is forwarded, make compared to prior art, have employed the general flood of hardware and achieve Snooping forwarding, software is not needed to participate in forwarding and message being copied many parts, forward performance height, significantly reduce the burden of CPU.
Further, described hardware processing module 30 specifically may be used for according to the port protection function table that the port pre-set cannot communicate with self port, is forwarded by described data message general flood on other port except described input port;
All ports all configure port protection function.
Further, described software processing module 20 for the treatment of after completing by described data message forwarding to hardware processing module, it is specifically as follows: described software processing module 20 is for the treatment of after completing, for described data message adds the mark that described input port is corresponding, by described data message forwarding to hardware processing module;
Described hardware processing module 30 specifically may be used for the mark corresponding according to described input port; the port protection function table that the port that coupling pre-sets cannot communicate with self port; determine that described data message cannot forward at described input port, described data message general flood on other port except described input port is forwarded.
Further, described hardware processing module 30 specifically may be used for by described data message in the VLAN at described input port place, and on other port except described input port, general flood forwards.
One of ordinary skill in the art will appreciate that: all or part of step realizing aforesaid method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising aforesaid method embodiment; And aforesaid storage media comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Device embodiment described above is only schematic, the module wherein illustrated as separating component or unit or can may not be and physically separate, parts as unit display can be or may not be physical location, namely can be positioned at a place, or can also be distributed at least two NEs. Some or all of module wherein or unit can be selected according to the actual needs to realize the object of the present embodiment scheme. Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Last it is noted that above embodiment is only in order to illustrate the technical scheme of the present invention, it is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein part technology feature is carried out equivalent replacement; And these amendments or replacement, do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.

Claims (8)

1. a data message forwarding method, it is characterised in that, described method comprises:
Receive data message at input port, and described data message forwarding is processed to software processing module;
After software processing module has processed, by described data message forwarding to hardware processing module;
Described data message general flood on other port except described input port is forwarded by described hardware processing module.
2. method according to claim 1, it is characterised in that,
Described data message general flood on other port except described input port is forwarded and specifically comprises by described hardware processing module:
The port protection function table that described hardware processing module cannot communicate according to the port pre-set and self port, forwards described data message general flood on other port except described input port.
3. method according to claim 2, it is characterised in that,
After described software processing module has processed, described data message forwarding is specifically comprised to hardware processing module:
After described software processing module has processed, for described data message adds the mark that described input port is corresponding, by described data message forwarding to hardware processing module;
The port protection function table that described hardware processing module cannot communicate according to the port pre-set and self port, forwards described data message general flood on other port except described input port, specifically comprises:
The mark that described hardware processing module is corresponding according to described input port; the port protection function table that the port that coupling pre-sets cannot communicate with self port; determine that described data message cannot forward at described input port, described data message general flood on other port except described input port is forwarded.
4. method according to the arbitrary item of claim 1-3, it is characterised in that,
Described data message general flood on other port except described input port is forwarded by described hardware processing module, specifically comprises:
Described hardware processing module is by described data message in the VLAN at described input port place, and on other port except described input port, general flood forwards.
5. a data message forwarding device, it is characterised in that, described device comprises:
Receiver module, for receiving data message at input port, and processes described data message forwarding to software processing module;
Software processing module, for processing described data message, by described data message forwarding to hardware processing module after having processed;
Hardware processing module, forwards described data message general flood on other port except described input port;
Sending module, for assisting described hardware processing module to be sent by described data message.
6. device according to claim 5, it is characterised in that,
The port protection function table of described hardware processing module specifically for communicating with self port according to the port pre-set, forwards described data message general flood on other port except described input port.
7. device according to claim 6, it is characterised in that,
Described software processing module for the treatment of after completing by described data message forwarding to hardware processing module, it is specially: described software processing module is for the treatment of after completing, for described data message adds the mark that described input port is corresponding, by described data message forwarding to hardware processing module;
Described hardware processing module is specifically for the mark corresponding according to described input port; the port protection function table that the port that coupling pre-sets cannot communicate with self port; determine that described data message cannot forward at described input port, described data message general flood on other port except described input port is forwarded.
8. device according to the arbitrary item of claim 5-7, it is characterised in that,
Described hardware processing module specifically for by described data message in the VLAN at described input port place, on other port except described input port general flood forward.
CN201610153782.1A 2016-03-17 2016-03-17 Data message forwarding method and device Pending CN105656780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610153782.1A CN105656780A (en) 2016-03-17 2016-03-17 Data message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610153782.1A CN105656780A (en) 2016-03-17 2016-03-17 Data message forwarding method and device

Publications (1)

Publication Number Publication Date
CN105656780A true CN105656780A (en) 2016-06-08

Family

ID=56495043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610153782.1A Pending CN105656780A (en) 2016-03-17 2016-03-17 Data message forwarding method and device

Country Status (1)

Country Link
CN (1) CN105656780A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225620A (en) * 2022-07-14 2022-10-21 潍柴动力股份有限公司 Message forwarding method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098167A (en) * 2010-12-29 2011-06-15 杭州华三通信技术有限公司 Multicasting stream forwarding method, device and system
CN102437966A (en) * 2012-01-18 2012-05-02 神州数码网络(北京)有限公司 Layer-3 switching system and method based on layer-2 DHCP (Dynamic Host Configuration Protocol) SNOOPING
CN102647359A (en) * 2012-04-26 2012-08-22 网经科技(苏州)有限公司 Method for implementing network bridge IGMP (internet group management protocol) Snooping based on DSA TAG (digital signature algorithm tag) and user-defined protocol stack
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment
US20160006646A1 (en) * 2013-02-26 2016-01-07 Hangzhou H3C Technologies Co., Ltd. Multicasting a data message in a multi-site network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098167A (en) * 2010-12-29 2011-06-15 杭州华三通信技术有限公司 Multicasting stream forwarding method, device and system
CN102437966A (en) * 2012-01-18 2012-05-02 神州数码网络(北京)有限公司 Layer-3 switching system and method based on layer-2 DHCP (Dynamic Host Configuration Protocol) SNOOPING
CN102647359A (en) * 2012-04-26 2012-08-22 网经科技(苏州)有限公司 Method for implementing network bridge IGMP (internet group management protocol) Snooping based on DSA TAG (digital signature algorithm tag) and user-defined protocol stack
US20160006646A1 (en) * 2013-02-26 2016-01-07 Hangzhou H3C Technologies Co., Ltd. Multicasting a data message in a multi-site network
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225620A (en) * 2022-07-14 2022-10-21 潍柴动力股份有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
CN106254281B (en) A kind of message processing method and device based on 802.1BR
DE102019129622A1 (en) EXTENDABLE INTEGRITY-PROTECTED CONNECTION FOR SECURE ACCELERATOR COMMUNICATION
CN108809836A (en) Multicast data packet forwarding method and device
US9559984B2 (en) Communication system and network relay device
US10049068B2 (en) SAS system, SAS system traversal method, and apparatus
CN103856361A (en) Method and system for realizing remote debugging
US20080056260A1 (en) Private vlan edge across multiple switch modules
CN105939324A (en) Message forwarding method and device
JP2013243670A (en) Packet processing method, device and system
CN103746944A (en) Stacking realization method and stackable equipment
CN101969404B (en) Method and equipment for processing messages
CN108696431B (en) Local area network port configuration method and device, switching chip and route switching equipment
CN108574583A (en) A kind of device updating method and access device
EP3534577B1 (en) Forwarding multicast packets through an extended bridge
CN105635000A (en) Message storing and forwarding method, circuit and device
CN105812221A (en) Data transmission device and method in virtual extensible local area network
CN105656780A (en) Data message forwarding method and device
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US7411909B2 (en) System and method for regulating data traffic in a network
CN109889922A (en) Retransmission method, device, equipment and the storage medium of stream medium data
CN107819594B (en) Network fault positioning method and device
CN105450432A (en) Method for positioning port connection error and associated equipment
CN104185966A (en) Network alarm method and device
CN105024928A (en) Method and device for protection switching of multi-protocol label switching network
CN109639551A (en) Virtualize drainage device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160608

RJ01 Rejection of invention patent application after publication