CN111327541A - Traffic replication classification method and device suitable for MAC according to source and destination - Google Patents
Traffic replication classification method and device suitable for MAC according to source and destination Download PDFInfo
- Publication number
- CN111327541A CN111327541A CN202010124084.5A CN202010124084A CN111327541A CN 111327541 A CN111327541 A CN 111327541A CN 202010124084 A CN202010124084 A CN 202010124084A CN 111327541 A CN111327541 A CN 111327541A
- Authority
- CN
- China
- Prior art keywords
- port
- rule
- source
- output
- message
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000010076 replication Effects 0.000 title claims abstract description 21
- 101150082208 DIABLO gene Proteins 0.000 claims description 14
- 102100033189 Diablo IAP-binding mitochondrial protein Human genes 0.000 claims description 14
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 claims description 14
- 230000009471 action Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 claims description 2
- 230000003362 replicative effect Effects 0.000 claims 1
- 239000000126 substance Substances 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 4
- 230000002776 aggregation Effects 0.000 description 3
- 238000004220 aggregation Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- CGKYNYPOXYSJFN-UHFFFAOYSA-N 3-[[3,3-dimethylbutan-2-yloxy(methyl)phosphoryl]oxy-methylphosphoryl]oxy-2,2-dimethylbutane Chemical compound CC(C)(C)C(C)OP(C)(=O)OP(C)(=O)OC(C)C(C)(C)C CGKYNYPOXYSJFN-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/201—Multicast operation; Broadcast operation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/208—Port mirroring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
- H04L61/255—Maintenance or indexing of mapping tables
- H04L61/2553—Binding renewal aspects, e.g. using keep-alive messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The invention discloses a flow replication and classification method suitable for MAC according to source and destination, comprising the following steps: on the basis that the cross-board switching port corresponding to the output board card is configured with an incoming direction-mask rule, a VLAN broadcasting mode is adopted to broadcast the message to the cross-board switching port of the output board card, and the message is output to a designated port according to the incoming direction-mask rule set on the output board card. The invention can broadcast the message to the HG (cross-board switching port) port of the appointed board card in a VLAN (virtual local area network) broadcasting mode, and output the message to the appointed port by configuring an IFP (ingress direction rule-mask) rule on the HG port, thereby achieving the effect that the flow can be appointed to a specific server unit while being copied.
Description
Technical Field
The invention relates to the technical field of flow management control, in particular to a flow copying and classifying method and device suitable for MAC according to source and destination.
Background
In the function of replication in the current common splitter, when the traffic is replicated and output to the aggregation group, for example, when 8 copies of the function and performance are satisfied in an 8-port aggregation group, each copy of the traffic can be forwarded only in each aggregation group in a balanced manner. At this time, if the user performs the assignment to a specific server unit according to some BIT BITs in the source and destination MAC, the common splitter cannot implement the application scenario.
The invention with patent number CN200910174220.5 discloses a method and device for forwarding traffic, which includes: the switch accesses and controls the MAC address according to the received flow target medium, searches a pre-established MAC table item, and obtains a port corresponding to the MAC address; and when the MAC address corresponds to a plurality of ports, the switch copies the flow and respectively sends the flow through the plurality of ports. However, in the present invention, the switch needs to establish and effectively manage the MAC table entry for storing the correspondence between the source MAC address and the plurality of ports in advance, and is complex in data processing and poor in scalability.
Disclosure of Invention
The invention aims to provide a flow copying and classifying method suitable for MAC (media access control) according to source and destination, which broadcasts a message to an HG (cross-board switching port) port of a specified board card in a VLAN (virtual local area network) broadcasting mode, and outputs the message to a specified port by configuring an IFP (ingress direction rule-mask) rule on the HG port, wherein the ACTION is redirect BPMP, so that the effect that the flow can be copied and specified to a specific server unit can be achieved.
To achieve the above object, with reference to fig. 1, the present invention provides a traffic replication and classification method suitable for MAC according to source and destination, where the traffic replication and classification method includes:
on the basis that the cross-board switching port corresponding to the output board card is configured with an incoming direction-mask rule, a VLAN broadcasting mode is adopted to broadcast the message to the cross-board switching port of the output board card, and the message is output to a designated port according to the incoming direction-mask rule set on the output board card.
As a preferred example, the broadcasting the packet to the cross-board switching port of the output board card by using the VLAN broadcasting method includes:
starting a specified calculation unit switch, and configuring the offset and the length of each service;
the preset MAC rule is configured and bound on the input port, the corresponding VLAN is appointed for the received message, and the message is broadcasted to the cross-board switching port of the output board card in a VLAN broadcasting mode.
As a preferred example, the traffic replication classification method further includes:
configuring offset and length of each service in a configuration mode; and configuring and binding a preset MAC rule on the input port in the interface mode.
As a preferred example, the incoming direction-masking rule includes:
macth:
inport=hg,DMAC=a1/an,SMAC=b1/bn;
action:
RedirectPbmp=Ni/Mjcorresponding bitmap
Wherein N isiIs the corresponding card number, MjIs a designated port number.
As a preferred example, the traffic replication classification method further includes:
configuring a designated server unit rule on a cross-board switching port corresponding to the output board card so as to output the flow to a designated server;
the specified server unit rule includes a plurality of sub-rules that follow a principle that a higher priority is given to a higher number of copies.
As a preferred example, the sub-rule includes:
DMAC=a1/an,SMAC=b1/bnRedirectPbmp=Ni/Mj
wherein N isiIs the corresponding card number, MjIs a designated port number, j includes one or several of the port numbers 1,2, …, k.
Based on the method, the invention also provides a traffic replication and classification device suitable for MAC according to source and destination, which comprises a processor and a memory;
the memory has stored therein a computer program which, when executed by the processor, implements a method of traffic duplication classification suitable for per-source-destination MAC as previously described.
As a preferred example, the traffic replication and classification device comprises a Brodcom56970 chip.
Compared with the prior art, the technical scheme of the invention has the following remarkable beneficial effects:
(1) the message is broadcasted to an HG (cross-board switching port) port of a specified board card in a VLAN (virtual local area network) broadcasting mode, an IFP (ingress direction rule-mask) rule is configured on the HG port, the ACTION is redirect, the message is output to a specified port, and the effect that the flow can be specified to a specific server unit while being copied is achieved.
(2) Only the HG port of the board card needs to be configured with relevant rules, so that the applicability is wide, and the management and the expansion are easy.
It should be understood that all combinations of the foregoing concepts and additional concepts described in greater detail below can be considered as part of the inventive subject matter of this disclosure unless such concepts are mutually inconsistent. In addition, all combinations of claimed subject matter are considered a part of the presently disclosed subject matter.
The foregoing and other aspects, embodiments and features of the present teachings can be more fully understood from the following description taken in conjunction with the accompanying drawings. Additional aspects of the present invention, such as features and/or advantages of exemplary embodiments, will be apparent from the description which follows, or may be learned by practice of specific embodiments in accordance with the teachings of the present invention.
Drawings
The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component that is illustrated in various figures may be represented by a like numeral. For purposes of clarity, not every component may be labeled in every drawing. Embodiments of various aspects of the present invention will now be described, by way of example, with reference to the accompanying drawings, in which:
fig. 1 is a flow chart of a traffic duplication classification method suitable for source-destination MAC of the present invention.
Fig. 2 is a schematic diagram of an application scenario in the embodiment of the present invention.
Detailed Description
In order to better understand the technical content of the present invention, specific embodiments are described below with reference to the accompanying drawings.
Detailed description of the preferred embodiment
With reference to fig. 1, the present invention provides a traffic replication and classification method suitable for MAC according to source and destination, where the traffic replication and classification method includes:
on the basis that the cross-board switching port corresponding to the output board card is configured with an incoming direction-mask rule, a VLAN broadcasting mode is adopted to broadcast the message to the cross-board switching port of the output board card, and the message is output to a designated port according to the incoming direction-mask rule set on the output board card.
Fig. 2 is an application scenario of an embodiment, according to an orthogonal frame splitter, a board card inputs a plurality of board card outputs, and each board card supports at most 2 service outputs. As shown in fig. 2, the board 1 inputs, and the board 2-board N configure two services for each board.
The board 2 corresponds to the services 1(2/1-10), 2 (2/11-20).
The board 3 corresponds to the service 3(3/1-10), 4 (3/11-20).
The board 4 corresponds to the services 5(4/1-10), 6 (4/11-20).
The board 5 corresponds to the service 7(5/1-10), 8 (5/11-20).
The input message is set as follows:
the message processing flow includes the following steps:
the method comprises the following steps: the switch of the specified computing unit is turned on, and the offset and the length of each service are configured (configured in the configuration mode).
Service 5-8 corresponds to Dmac
And binding the MAC rule on an ingress port by configuring an MAC rule, wherein the MAC rule is an import-bind dynamic-MAC-ac rule-1 in an interface mode, and the rule-1 is a message requiring a specified computing unit to be moved. And after passing the hit rule, the message is printed with a corresponding VLAN and is broadcast to the specified board card.
Step two: and generating an IFP rule on an HG port on the output board card, and outputting the message from the designated port.
The IFP rule on the board card 2 is set as:
rule 1:
macth:
inport=hg,DMAC=000000000000/000000000000,SMAC=000000020020/000000ff0ff0)
action:
RedirectPbmp 2/2 bit map
RedirectPbmp 2/12 bit map
Setting IFP rule of hit on board 3 as
macth:
inport=hg,DMAC=000000000000/000000000000,SMAC=020020000000/ff0ff0000000)
action:
RedirectPbmp 3/2 bit map
RedirectPbmp 3/12-corresponding bitmap
The rules of other boards are similar to the board 2 and the board 3.
The message is finally output in one copy each at 2/2, 2/12, 3/2, 3/12, 4/2, 4/12, 5/2, 5/12, respectively.
As a preferred example, the traffic replication classification method further includes:
configuring a designated server unit rule on a cross-board switching port corresponding to the output board card so as to output the flow to a designated server; the specified server unit rule includes a plurality of sub-rules that follow a principle that a higher priority is given to a higher number of copies.
One, regular capacity partitioning
Output at 10GE interface, each card output according to 96 × 10 GE:
two services (such as services 1 and 2) are provided for each board card, each service has 48 output interfaces, and the rule of corresponding binding of the hg port on the board card is maximum 48 × 48 (duplicate cases) +48 (service 1 output alone) +48 (service 2 output alone) × 2400.
And secondly, the rule of the specified unit divided by the hg port follows, and two copies of priority > business are output independently.
For example, two services are configured on the board 2, and each service binds two ports, service 1(2/1, 2/2) and service 2(2/3, 2/4).
Assume that the rule corresponding to the hg port on the service board 2 includes:
rule 1:
DMAC=000000000000/000000000000,
SMAC=000000010010/000000ff0ff0 RedirectPbmp=2/1、2/3
rule 2:
DMAC=000000000000/000000000000,
SMAC=000000020010/000000ff0ff0 RedirectPbmp=2/1、2/4
rule 3:
DMAC=000000000000/000000000000,
SMAC=000000010020/000000ff0ff0 RedirectPbmp=2/2、2/3
rule 4:
DMAC=000000000000/000000000000,
SMAC=000000020020/000000ff0ff0 RedirectPbmp=2/2、2/4
rule 5:
DMAC=000000000000/000000000000,
SMAC=000000000010/000000000ff0 RedirectPbmp=2/1
rule 6:
DMAC=000000000000/000000000000,
SMAC=000000000020/000000000ff0 RedirectPbmp=2/2
rule 7:
DMAC=000000000000/000000000000,
SMAC=000000010000/000000ff0000 RedirectPbmp=2/3
rule 8:
DMAC=000000000000/000000000000,
SMAC=000000020000/000000ff0000 RedirectPbmp=2/4
according to the priority rule, the priority order of the 8 rules is: 1>2>3>4>5>6>7> 8.
As described in the application scenario above, the method of the present invention can achieve the effect that the traffic can be designated to a specific server unit while being replicated.
Detailed description of the invention
Based on the foregoing method, the present invention also provides a traffic replication classification apparatus suitable for source-destination MAC, which includes a processor and a memory.
The memory has stored therein a computer program which, when executed by the processor, implements a method of traffic duplication classification suitable for per-source-destination MAC as previously described.
As a preferred example, the traffic replication and classification device comprises a Brodcom56970 chip.
In this disclosure, aspects of the present invention are described with reference to the accompanying drawings, in which a number of illustrative embodiments are shown. Embodiments of the present disclosure are not necessarily defined to include all aspects of the invention. It should be appreciated that the various concepts and embodiments described above, as well as those described in greater detail below, may be implemented in any of numerous ways, as the disclosed concepts and embodiments are not limited to any one implementation. In addition, some aspects of the present disclosure may be used alone, or in any suitable combination with other aspects of the present disclosure.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention should be determined by the appended claims.
Claims (8)
1. A traffic replication classification method suitable for MAC per source and destination, the traffic replication classification method comprising:
on the basis that the cross-board switching port corresponding to the output board card is configured with an incoming direction-mask rule, a VLAN broadcasting mode is adopted to broadcast the message to the cross-board switching port of the output board card, and the message is output to a designated port according to the incoming direction-mask rule set on the output board card.
2. The method for replicating and classifying flow according to source-destination MAC as claimed in claim 1, wherein the broadcasting the packet to the cross-board switch port of the output board by using VLAN broadcasting includes:
starting a specified calculation unit switch, and configuring the offset and the length of each service;
the preset MAC rule is configured and bound on the input port, the corresponding VLAN is appointed for the received message, and the message is broadcasted to the cross-board switching port of the output board card in a VLAN broadcasting mode.
3. The traffic duplication classification method for per-source-destination MAC as recited in claim 2, further comprising:
configuring offset and length of each service in a configuration mode; and configuring and binding a preset MAC rule on the input port in the interface mode.
4. The method of claim 1, wherein the ingress direction-masking rule comprises:
macth:
inport=hg,DMAC=a1/an,SMAC=b1/bn;
action:
RedirectPbmp=Ni/Mjcorresponding bitmap
Wherein the content of the first and second substances,Niis the corresponding card number, MjIs a designated port number.
5. The traffic duplication classification method for per-source-destination MACs according to claim 1, further comprising:
configuring a designated server unit rule on a cross-board switching port corresponding to the output board card so as to output the flow to a designated server;
the specified server unit rule includes a plurality of sub-rules that follow a principle that a higher priority is given to a higher number of copies.
6. The method of claim 5, wherein the sub-rules comprise:
DMAC=a1/an,SMAC=b1/bnRedirectPbmp=Ni/Mj
wherein N isiIs the corresponding card number, Mj is the designated port number, j includes one or several of the port numbers 1,2, …, k.
7. A traffic replication classifier adapted for source-destination MAC, the traffic replication classifier comprising a processor and a memory;
the memory has stored therein a computer program which, when executed by the processor, implements a method of traffic duplication classification adapted for source-destination MAC as claimed in any one of claims 1 to 6.
8. The traffic replication classification method adapted per source destination MAC as claimed in claim 7, wherein said traffic replication classification means comprises a Brodcom56970 chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124084.5A CN111327541A (en) | 2020-02-27 | 2020-02-27 | Traffic replication classification method and device suitable for MAC according to source and destination |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010124084.5A CN111327541A (en) | 2020-02-27 | 2020-02-27 | Traffic replication classification method and device suitable for MAC according to source and destination |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111327541A true CN111327541A (en) | 2020-06-23 |
Family
ID=71165340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010124084.5A Pending CN111327541A (en) | 2020-02-27 | 2020-02-27 | Traffic replication classification method and device suitable for MAC according to source and destination |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111327541A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101588305A (en) * | 2009-06-30 | 2009-11-25 | 杭州华三通信技术有限公司 | message handling method carried with multilayer labels and an exchanger |
CN101594556A (en) * | 2008-05-28 | 2009-12-02 | 信息产业部电信传输研究所 | A kind of in the GPON system long-distance management device of data flow classification |
CN106789652A (en) * | 2016-12-29 | 2017-05-31 | 杭州迪普科技股份有限公司 | Service shunting method and device |
-
2020
- 2020-02-27 CN CN202010124084.5A patent/CN111327541A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101594556A (en) * | 2008-05-28 | 2009-12-02 | 信息产业部电信传输研究所 | A kind of in the GPON system long-distance management device of data flow classification |
CN101588305A (en) * | 2009-06-30 | 2009-11-25 | 杭州华三通信技术有限公司 | message handling method carried with multilayer labels and an exchanger |
CN106789652A (en) * | 2016-12-29 | 2017-05-31 | 杭州迪普科技股份有限公司 | Service shunting method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10728176B2 (en) | Ruled-based network traffic interception and distribution scheme | |
US7933268B1 (en) | IP multicast forwarding in MAC bridges | |
US7940766B2 (en) | Multicasting unicast packet/multiple classification of a packet | |
US10805216B2 (en) | Shared service access for multi-tenancy in a data center fabric | |
US7826481B2 (en) | Network for supporting advance features on legacy components | |
CN106789759B (en) | Message uploading method and exchange chip | |
US10601702B1 (en) | Flexible packet replication and filtering for multicast/broadcast | |
CN108768866B (en) | Cross-card forwarding method and device for multicast message, network equipment and readable storage medium | |
US9479349B2 (en) | VLAG PIM multicast traffic load balancing | |
US7940765B2 (en) | Limiting unauthorized sources in a multicast distribution tree | |
US9385936B2 (en) | Forwarding groups of multicast flows | |
US7327730B2 (en) | Data packet transmission method and network switch applying same thereto | |
WO2011153858A1 (en) | Method, device and system for implementing multicast forwarding in extended vlan bridge | |
CN110391919A (en) | Flux of multicast retransmission method, device, electronic equipment | |
CN108093051B (en) | Message copying method and device | |
CN111107008A (en) | Reverse path checking method and device | |
CN111327541A (en) | Traffic replication classification method and device suitable for MAC according to source and destination | |
US20200162397A1 (en) | Low-Latency Processing of Multicast Packets | |
US8594087B2 (en) | Encoding-based multicast packet duplication control suitable for VLAN systems | |
US11025536B1 (en) | Support for flooding in encapsulation and inter-VLAN communication via proxy-ARP | |
CN109981302A (en) | The method and apparatus of cast communication | |
JP6661931B2 (en) | Information distribution apparatus, information distribution program, and information distribution system | |
CN115086106B (en) | HASH method with VXLAN known group broadcasting port as tunnel | |
US10069762B1 (en) | Group based multicast in networks | |
US11881962B2 (en) | Hybrid mode multicast routing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200623 |