CN102158422A - Message forwarding method and equipment for layer 2 ring network - Google Patents

Message forwarding method and equipment for layer 2 ring network Download PDF

Info

Publication number
CN102158422A
CN102158422A CN2011101399994A CN201110139999A CN102158422A CN 102158422 A CN102158422 A CN 102158422A CN 2011101399994 A CN2011101399994 A CN 2011101399994A CN 201110139999 A CN201110139999 A CN 201110139999A CN 102158422 A CN102158422 A CN 102158422A
Authority
CN
China
Prior art keywords
message
address
heavy
port
packing rule
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.)
Granted
Application number
CN2011101399994A
Other languages
Chinese (zh)
Other versions
CN102158422B (en
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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201110139999.4A priority Critical patent/CN102158422B/en
Publication of CN102158422A publication Critical patent/CN102158422A/en
Application granted granted Critical
Publication of CN102158422B publication Critical patent/CN102158422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message forwarding method and message forwarding equipment for a layer 2 ring network. By the technical scheme provided by the invention, a layer three message transmitted among nodes in the ring network is not forwarded by a layer three gateway again. Three-layer communicated message forwarding can be prevented from occupying overmany bandwidths under the condition of not influencing the smooth finishing of forwarding, the bandwidth utilization rate is increased, the transmission resources of a system are saved, and the message forwarding efficiency is improved.

Description

The method and apparatus that a kind of message that is used for two layers of looped network is transmitted
Technical field
The present invention relates to communication technical field, the method and apparatus that particularly a kind of message that is used for two layers of looped network is transmitted.
Background technology
In the present looped network deployment way, double layer intercommunication can be finished by each node of looped network, and when carrying out three layer intercommunications, one of them node need be linked to each other with a router, with the gateway of this router as three layer intercommunications, such as, a plurality of users and single server in different territories, this situation, still more common in enterprise network.
In the prior art scheme; on general ring network, can dispose and utilize MSTP (Multiple Spanning Tree Protocol; Multiple Spanning Tree Protocol) RRPP (Rapid Ring Protection Protocol; rapid ring protection protocol) ring; HVRP (Hierarchy VLAN Register Protocol; layering VLAN log-in protocol) ring or RPR (Resilient Packet Ring; Resilient Packet Ring) ring; these functions all are when link occurs fault, can guarantee that flow can pass through by other links of selection in the short as far as possible time.
Same VLAN (Virtual Local Area Network, VLAN) intercommunication of Nei different user does not generally take the bandwidth on the ring, two layers of forwarding of flow directly on ring node or the bottom switch that links to each other with node finish, the link failure on the ring generally can not have influence on two layers of forwarding of flow.When only between visit outer net or each website, carrying out three layer intercommunications, just can need to take the bandwidth on the ring.
In the scene as shown in Figure 1, three DUT (Device Under Test, equipment under test) constituted a loop, PORT on each DUT (port) distribution situation as shown in Figure 1, DUT1 links to each other with Server (server) by the PORT7 port, DUT2 links to each other with Users (ustomer premises access equipment) by the PORT8 port, and DUT3 links a Router (router).
Carrying out three layer intercommunications with cross-node between Server and the Users (DUT1 and DUT2) is example, three laminar flow amounts between Users and the Server will be transmitted on Router, break down at the PORT6 port, perhaps MSTP calculating selection PORT6 port is under the situation of discarding (abandoning) port, link between PORT6 port and the PORT1 will not be used in three layers of forwarding of flow, therefore, as shown in Figure 2, three laminar flow amounts between Users and the Server need back and forth be transmitted between the PORT3 of DUT1 inside port, PORT4 port and PORT7 port.
By the explanation of the forward-path among Fig. 2 as can be seen, three laminar flow amounts between Users and the Server must be around to DUT3, the common gateway (Router) that is forwarded to Users and Server is again handled, like this, link bandwidth between DUT1 and the DUT3 is just occupied, in general, data volume between Server and the Users can be a lot, such forward-path may impact encircling other business, such as, if carry out transfer of data between following other equipment (as other Users) needs hung of DUT3 and the Server, so, link between DUT1 and the DUT3 is occupied, will certainly influence other equipment of extension under the DUT3 and the data flow transmission between the Server.
In order to overcome such problem, in enterprise network networking at present, can adjust by planning network again, promptly allow Server and Users in same broadcast domain, thereby avoid above-mentioned flow effect.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
Avoid the inner processing scheme of transmitting of three laminar flow amounts by planning network again, must need to increase the port number of the DUT2 in the network architecture as shown in Figure 2 or expand its place capacity, can increase network operation and improvement cost like this, and, if in network, also there is the inner node of transmitting of other three laminar flows amounts, the complexity of network design and transformation also can increase so, and cost drops into too high.
Summary of the invention
The invention provides the method and apparatus that a kind of message that is used for two layers of looped network is transmitted, close the problem that the three laminar flow amounts of transmitting take the too much network bandwidth by three-layer network in order to two layers of looped network inside in the solution prior art.
For achieving the above object, one aspect of the present invention provides a kind of method that is used for the message forwarding of two layers of looped network, and described method may further comprise the steps at least:
Identification meets the message of heavy packing rule in the message that receives;
If recognize, detect described message and whether reach and heavily encapsulate trigger condition;
If testing result is to reach heavily to encapsulate trigger condition, then obtain associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule;
The target MAC (Media Access Control) address and the vlan information that will meet in the message that weighs packing rule replace to the associated MAC Address in purpose IP address, vlan information to generate heavy encapsulated message;
In the transmitting of the vlan information correspondence of described heavy encapsulated message, the purpose IP address corresponding port of searching described heavy encapsulated message forwards described heavy encapsulated message by the port that finds.
On the other hand, the present invention also provides a kind of network equipment that two layers of looped network message are transmitted that is used for, and is used to receive/E-Packet, and the described network equipment further comprises:
Identification module, the message identification that is used for receiving at each port meets the message of heavy packing rule;
Whether detection module is used for when described identification module recognizes the message that meets heavy packing rule, detect described message and reach and heavily encapsulate trigger condition;
Acquisition module, the testing result that is used at described detection module is to reach when heavily encapsulating trigger condition, obtains associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule;
Heavy package module, the target MAC (Media Access Control) address and the vlan information that are used for meeting the message of heavy packing rule replace to the associated MAC Address in the accessed purpose IP address of described acquisition module, vlan information to generate heavy encapsulated message;
Forwarding module is used for the transmitting of vlan information correspondence of the heavy encapsulated message that generates at described heavy package module, searches the purpose IP address corresponding port of described heavy encapsulated message, and described heavy encapsulated message is forwarded by the port that finds.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, the present invention is in the enterprise network networking, and the three-tier message of sending out mutually between server and the client no longer needs to transmit by three-tier message, does not also need again planning network to make the server and client side in same broadcast domain.Therefore the present invention has not only improved bandwidth availability ratio, can not increase the networking cost of client's enterprise network simultaneously because of planning network again.
Description of drawings
Fig. 1 is a kind of application scenarios schematic diagram of the prior art;
Fig. 2 is the schematic diagram of the forward-path of three laminar flow amounts of the prior art;
The schematic flow sheet of the method that Fig. 3 transmits for a kind of message that is used for two layers of looped network that the present invention proposes;
Fig. 4 is the schematic diagram of a kind of concrete application scenarios of the present invention's proposition;
Down a kind of of the concrete application scenarios that Fig. 5 proposes for the embodiment of the invention is used for the schematic flow sheet of method of the message forwarding of two layers of looped network;
The schematic flow sheet that a kind of message that Fig. 6 proposes for the present invention heavily encapsulates;
A kind of application that Fig. 7 proposes for the present invention is used for the schematic diagram of the message forwarding path after the method that the message of two layers of looped network transmits;
Fig. 8 is a kind of structural representation that is used for the network equipment of two layers of looped network messages forwarding proposed by the invention.
Embodiment
As stated in the Background Art, in existing ring network structure, the transmission of two laminar flow amounts can directly be carried out between each node, and visits outer net if desired, so, just can realize as long as do the three-layer network pass by connection router on the node in network.But complicated along with network design, the frequency of visit and all raisings greatly of possibility mutually between the node in different broadcast domains, like this, the bandwidth resources that just can take on the ring are transmitted in the inside of three a large amount of laminar flow amounts, if for this network is transformed, then can be improved corresponding design and networking cost.
In order to solve such problem, reduce the bandwidth occupancy of this part, the present invention proposes the method that a kind of message that is used for two layers of looped network is transmitted, the mode that can heavily encapsulate by message, needs are forwarded to the data flow short circuit of three-layer network pass, directly realize the message forwarding between the node, avoided the three-tier message intercommunication the bandwidth occupancy on the looped network.
As shown in Figure 3, the schematic flow sheet of the method that a kind of message that is used for two layers of looped network that proposes for the present invention is transmitted specifically may further comprise the steps:
Step S301, identification meets the message of heavy packing rule in the message that receives.
Wherein, in concrete enforcement scene, heavy packing rule is specially:
The message that port receives has identical target MAC (Media Access Control) address with the message that receive the another port, and opposite each other source IP address and purpose IP address.
If recognize such message, then execution in step S302 if do not recognize, then continues execution in step S301.
By the identification of above-mentioned heavy packing rule, can find needs in two layers of looped network to close the three-tier message of transmitting through three-layer network, is defined as the object that can heavily encapsulate.
Whether the message that step S302, detection recognize reaches and heavily encapsulates trigger condition.
Wherein, in concrete enforcement scene, the heavily encapsulation trigger condition here comprises two kinds of situations:
Condition one, receive that the total flow of the message that meets heavy packing rule that the port of the message that meets heavy packing rule is received reaches threshold value.
Condition two, receive that the flow of the message that meets heavy packing rule that any one port of the message that meets heavy packing rule is received reaches threshold value.
Certainly; if there are other heavily encapsulation trigger conditions that can reach constructed effect can be applied to the present invention equally; concrete which kind of condition that adopts determines that according to the scene needs of reality the difference of determined heavy encapsulation trigger condition can't influence protection scope of the present invention.
If testing result is to reach heavily to encapsulate trigger condition, then execution in step S303 on the contrary, if do not reach, then proceeds relevant detection.
Step S303, obtain associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule.
In concrete application scenarios; obtaining like this can be to inquire about according to corresponding forwarding-table item or route table items; also can be to obtain mutually in the message in groups that in step S301, is recognized; the MAC Address and the vlan information conduct that are about to the transmitting terminal of first message are satisfied the MAC Address and the vlan information of the pairing destination of another message of heavy packing rule with it; in actual applications; concrete which kind of mode that adopts is obtained, and can't influence protection scope of the present invention.
Step S304, the target MAC (Media Access Control) address and the vlan information that will meet in the message that weighs packing rule replace to the associated MAC Address in purpose IP address, vlan information to generate heavy encapsulated message.
Before and after heavy encapsulation process, the entrained change in information of corresponding message contrasts as shown in Table 1 and Table 2:
The entrained information of message before the heavy encapsulation process of table 1
Information project The information content
Source MAC The MAC Address of message sending node
Target MAC (Media Access Control) address The MAC Address that three-layer network closes
Source IP address The IP address of message sending node
Purpose IP address The IP address of message receiving node
Vlan information The pairing vlan information of message sending node
The entrained information of message after the heavy encapsulation process of table 2
Information project The information content
Source MAC The MAC Address of message sending node
Target MAC (Media Access Control) address The MAC Address of message receiving node
Source IP address The IP address of message sending node
Purpose IP address The IP address of message receiving node
Vlan information The pairing vlan information of message receiving node
Step S305, in the transmitting of the vlan information correspondence of described heavy encapsulated message, the purpose IP address corresponding port of searching described heavy encapsulated message forwards described heavy encapsulated message by the port that finds.
Heavily after the encapsulation, corresponding message no longer needs to transmit to the three-layer network pass, but directly carries out short circuit at network device internal, and transmits by outbound port, and the message of finishing in the technical program is transmitted processing.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, two nodes (as client and server) of looped network inside thus between the three-tier message sent out mutually no longer need to deliver to three-layer network and put row into and transmit, can finish smoothly under the situation of forwarding not influencing message, avoid too much bandwidth to be transmitted shared by the message of three layer intercommunications, improved bandwidth availability ratio, saved the transfer resource of system, and, message forwarding efficient improved.
In order further to set forth technological thought of the present invention, existing in conjunction with concrete application scenarios, technical scheme of the present invention is described.
The crucial thinking of technical scheme proposed by the invention is: on ring network structure of the prior art, owing to the problem that bandwidth resources take on the ring that causes is transmitted in the inside of three laminar flow amounts, if can adjust partial discharge, it is not closed by three-layer network, but directly between node, carry out double layer intercommunication, just can reduce taking for bandwidth resources.In the scene for example shown in Figure 2, the flow between Users and the Server is only transmitted between DUT1 and DUT2, and do not used three layers of notion, so just can avoid flow the taking between Users and the Server the bandwidth between DUT1 and the DUT3.
If realize such processing, keep the processing mode of existing user or server simultaneously to greatest extent, just need encapsulated message again.After the three-tier message that needs between the node on the looped network to transmit encapsulated again, just can in two layers looped network, transmit, and when under the message of two layers of forwarding, encircling, can handle by corresponding, remove the form that encapsulation recovers original three-tier message, pass to destination node.
The embodiment of the invention also is applicable to HVRP ring, big two layers of looped network such as RRPP ring according to the technical scheme that above-mentioned technical thought proposed.The difference of using the looped network type can not influence protection scope of the present invention.
The realization key point of such technical scheme has 2, basis for estimation and message encapsulation.
Below, in conjunction with concrete application scenarios as shown in Figure 4, the selection of concrete basis for estimation and the implementation of message encapsulation are described.
As shown in Figure 5, the schematic flow sheet of the method for a kind of concrete application scenarios message forwarding that is used for two layers of looped network down that proposes for the embodiment of the invention specifically may further comprise the steps:
The flow of each port of step S501, DUT1 detection self.
As shown in Figure 2, the message between Users and the Server is transmitted according to three layers of pass-through mode, needs could arrive destination node behind the pile warp Router, and therefore, the bandwidth between PORT2 and the PORT3 is occupied.
Step S502, DUT1 judge whether self port exists the message of meet the requirements (being aforesaid heavy packing rule).
Requirement herein refers to that specifically two ports of DUT1 receive and have identical target MAC (Media Access Control) address and the opposite source IP address and the three-tier message of purpose IP address.
With reference to the explanation among the step S301, in fact such three-tier message is exactly to be in two layers of looped network to need between two equipment (Users and Server) of different broadcast domains to close the three-tier message of transmitting by three-layer network, and to close the message of transmitting by three-layer network between Users and the Server be to close by delivering to three-layer network on same the equipment DUT1.That is, the three-tier message that Server the sends to User at first broadcast domain (VLAN30 in as Fig. 4) at the Serverr place is forwarded to three-layer network and closes, and DUT1 participates in one of equipment of transmitting in this repeating process; Three-layer network closes and at User place broadcast domain (as Fig. 4 VLAN20) message to be forwarded to User afterwards, finally finish Server send to User to three-tier message transmit.Otherwise User sends to the three-tier message that Server sends to also will pass through similar repeating process, and DUT1 participates in one of equipment of transmitting.Therefore, as shown in Figure 2, DUT1 can receive on PORT7 and PORT4 and receive that respectively Server issues the message of User and the message that User sends to Server, and the message that these two ports are received forwards (because the target MAC (Media Access Control) address in the message all is the purpose MAC that three-layer network closes) by Port3, but the source IP between the message is opposite with purpose IP.
Therefore, the message that receives among the PORT4 of DUT1 judgement self and the PORT7 meets the condition that heavily encapsulates, and continues execution in step S503.
Certainly, if there is not such message, then returns step S501 and proceed relevant detection.
Concrete, such detection can be periodically to carry out, and also can carry out always, the variation of concrete executive mode can not change protection scope of the present invention.
Concrete, the content of message that PORT7 and PORT4 receive is summarized as follows:
The content of message that sends to Users by Server that receives in PORT7 is:
Source mac (source MAC): 0-0-1 (MAC Address of Server)
Dest mac (purpose MAC): 00e0-fc00-0001 (MAC Address that three-layer network closes)
Source ip (source IP): 20.1.1.100 (the IP address of Server)
Dest ip (purpose IP): 30.1.1.100 (the IP address of User)
Vlan tag id: 20 (the VLAN ID of Server place VLAN)
The content of message that sends to Server by Users that receives in PORT4 is:
Source mac (source MAC): 0-0-2 (MAC Address of User)
Dest mac (purpose MAC): 00e0-fc00-0001 (MAC Address that three-layer network closes)
Source ip (source IP): 30.1.1.100 (the IP address of User)
Dest ip (purpose IP): 20.1.1.100 (the IP address of Server)
Vlan tag id: 30 (the VLAN ID of User place VLAN)
Wherein, the target MAC (Media Access Control) address 00e0-fc00-0001 of the message that two ports are received is the MAC Address of gateway, and source IP address is opposite with purpose IP address, this shows, two above-mentioned messages that PORT7 and PORT4 receive are satisfactory messages.
Step S503, DUT1 judge whether to satisfy and heavily encapsulate trigger condition.
Be this class herein and judge,, can not influence other professional normal transmission, then can not weigh encapsulation process, return step S501 if the flow of this class three-tier message is very little by the flow that three-layer network closes the three-tier message of transmitting.
On the contrary, if flow has surpassed certain threshold value (being heavily encapsulation trigger condition given among the above-mentioned steps S302), then trigger corresponding heavy encapsulation process, execution in step S504, trigger DUT1 and carry out the heavily encapsulation of message, to avoid three laminar flow amounts additionally taking bandwidth.
With reference to the explanation among the step S302, heavily encapsulation trigger condition herein can be selected aforesaid condition one or condition two, and trigger condition herein can be divided into following two kinds equally:
(1) if DUT1 judge receive among the PORT7 by Server send to receive among the message of Users and the PORT4 by Users send to Server message flow and surpassed predetermined threshold value, so, DUT1 determines two kinds of above-mentioned messages are triggered heavy encapsulation operation.
(2) if DUT1 judge receive among the PORT7 send to sending in the flow of message of Server by Users of receiving among the flow of message of Users or the PORT4 by Server any one surpassed predetermined threshold value, so, DUT1 determines corresponding message is triggered heavy encapsulation operation.
Concrete which kind of condition that adopts determines that according to the scene needs of reality the difference of determined condition can't influence protection scope of the present invention.
Step S504, DUT1 obtain associated MAC Address, the VLAN ID in purpose IP address of satisfactory message.
Determine to what PORT7 was received to be example by Server to the heavy encapsulation operation of message triggering that Users sends with DUT1, in this step, the information that DUT1 need obtain comprises target MAC (Media Access Control) address and the VLAN ID that the purpose IP address of Users is associated.
Promptly heavy encapsulation operation information needed, in the technical scheme of the embodiment of the invention, the main information that heavy encapsulation operation need be revised is MAC Address and VLAN ID.
The obtain manner of above-mentioned information can be to inquire about according to corresponding forwarding-table item or route table items; also can be in step S502, recognized satisfactory in groups message (be PORT4 receive by Users to message that Server sends) in obtain; in actual applications; concrete which kind of mode that adopts is obtained, and can't influence protection scope of the present invention.
After finishing above-mentioned information and obtaining, heavy encapsulation process and handle after the needed information of send mode just ready.
If determine the message that is sent to Server by Users is triggered heavy encapsulation process, the type of then obtaining information accordingly can be with reference to above-mentioned explanation, specifically repeated description no longer.
Step S505, DUT1 replace to the associated MAC Address in purpose IP address, VLAN ID with target MAC (Media Access Control) address in the satisfactory message and VLAN ID, and message has been finished heavily encapsulation.
When DUT1 receives when sending to the message of Users by Server by PORT7,, directly corresponding message content is carried out as shown in Figure 6 modification according to the information that gets access among the step S504.
Step S506, DUT1 transmit the message after the heavily encapsulation.
Message after DUT1 directly will heavily encapsulate sends by PORT4, directly sends to Users through DUT2.
The corresponding forwarding in pairing the transmitting of VLANID that port specifically can be the message after heavily encapsulating finds, and the foundation of searching can be the purpose IP address of the message after heavily encapsulating.Reason is, after DUT1 heavily encapsulates message, the message that DUT1 no longer sends Server is forwarded to three-layer network and closes in the VLAN20 at Server place, but DUT1 directly is forwarded to Users according to the VLAN ID 30 in the heavy encapsulated message in the VLAN30 of Users place.
By above-mentioned processing procedure, original forward-path as shown in Figure 2 changes to forward-path as shown in Figure 7, corresponding three laminar flow amounts no longer need the pile warp three-layer network to close (Router), can not take the bandwidth between DUT1 and the DUT3 again, effectively raise bandwidth availability ratio and message forwarding efficient.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, to between the node of two layers of looped network inside, close the forwarding three-tier message by heavily encapsulation by three-layer network, message can be transmitted in the VLAN at recipient place, thereby, can finish smoothly under the situation of forwarding not influencing message, avoid too much bandwidth to be required closing the three-tier message of transmitting shared by three-layer network, improved bandwidth availability ratio, saved the transfer resource of system, and, message forwarding efficient improved.
In order to realize technical scheme of the present invention, based on aforesaid explanation, the invention allows for a kind of network equipment that message is transmitted in two layers of looped network, its structural representation is as shown in Figure 8, this network equipment comprise a plurality of ports 81 be used to receive/E-Packet, and further comprise with lower module:
Identification module 82, the message identification that is used for receiving at each port 81 meets the message of heavy packing rule;
Detection module 83 is used for when forwarding module 86 identification modules 82 recognize the message that meets heavy packing rule, and whether detection forwarding module 86 messages reach and heavily encapsulate trigger condition;
Acquisition module 84, the testing result that is used at forwarding module 86 detection modules 83 is to reach when heavily encapsulating trigger condition, obtains associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule;
Heavy package module 85 is used for replacing to the associated MAC Address in the accessed purpose IP address of forwarding module 86 acquisition modules 84, vlan informations (as VLAND ID) to generate heavy encapsulated message with meeting the target MAC (Media Access Control) address of message of heavy packing rule and vlan information;
Forwarding module 86, the transmitting of vlan information correspondence that is used for the heavy encapsulated message that generated at forwarding module 86 heavy package modules 85, search the purpose IP address corresponding port 81 of forwarding module 86 heavy encapsulated messages, forwarding module 86 heavy encapsulated messages are forwarded by the port 81 that finds.
Wherein, forwarding module 86 identification modules 82 specifically are used for:
Discern the message that each port receives and whether have the message that meets following heavy packing rule:
The message that port receives has identical target MAC (Media Access Control) address with the message that receive the another port, and opposite each other source IP address and purpose IP address.
Further, forwarding module 86 detection modules 83 specifically are used for:
Whether the message that meets heavy packing rule that detection identification module 82 is recognized reaches following heavily encapsulation trigger condition:
Two received total flows that meet the message that weighs packing rule of port reach threshold value; Or,
The flow of the message that meets heavy packing rule that any one port is received reaches threshold value.
Compared with prior art, the present invention has the following advantages:
By using technical scheme of the present invention, two ports of the network equipment of two layers of looped network receive that other two equipment send in two layers of looped network need close the three-tier message of transmitting by three-layer network the time, by this class three-tier message is heavily encapsulated, message can be transmitted in the VLAN at recipient place, avoided this class three-tier message to transmit the bandwidth that takies because of needing three-layer network to close, improve bandwidth availability ratio, saved the transfer resource of system.
Based on above-mentioned technical scheme, the present invention is in the enterprise network networking, and the three-tier message of sending out mutually between server and the client no longer needs to transmit by three-tier message, does not also need again planning network to make the server and client side in same broadcast domain.Therefore the present invention has not only improved bandwidth availability ratio, can not increase the networking cost of client's enterprise network simultaneously because of planning network again.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred schematic diagram of implementing scene, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of implementing scene just to description.
More than disclosed only be several concrete enforcement scene of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (7)

1. method that the message that is used for two layers of looped network is transmitted is characterized in that described method may further comprise the steps at least:
Identification meets the message of heavy packing rule in the message that receives;
If recognize, detect described message and whether reach and heavily encapsulate trigger condition;
If testing result is to reach heavily to encapsulate trigger condition, then obtain associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule;
The target MAC (Media Access Control) address and the vlan information that will meet in the message that weighs packing rule replace to the associated MAC Address in purpose IP address, vlan information to generate heavy encapsulated message;
In the transmitting of the vlan information correspondence of described heavy encapsulated message, the purpose IP address corresponding port of searching described heavy encapsulated message forwards described heavy encapsulated message by the port that finds.
2. the method for claim 1 is characterized in that, described heavy packing rule comprises:
The message that port receives has identical target MAC (Media Access Control) address with the message that receive the another port, and opposite each other source IP address and purpose IP address.
3. method as claimed in claim 2 is characterized in that, described heavy encapsulation trigger condition comprises:
Two received total flows that meet the message that weighs packing rule of port reach threshold value.
4. method as claimed in claim 2 is characterized in that, described heavy encapsulation trigger condition comprises:
The flow of the message that meets heavy packing rule that any one port is received reaches threshold value.
5. one kind is used for the network equipment that two layers of looped network message are transmitted, comprise a plurality of ports be used to receive/E-Packet, it is characterized in that the described network equipment further comprises:
Identification module, the message identification that is used for receiving at each port meets the message of heavy packing rule;
Whether detection module is used for when described identification module recognizes the message that meets heavy packing rule, detect described message and reach and heavily encapsulate trigger condition;
Acquisition module, the testing result that is used at described detection module is to reach when heavily encapsulating trigger condition, obtains associated MAC Address, the vlan information in purpose IP address of the message that meets heavy packing rule;
Heavy package module, the target MAC (Media Access Control) address and the vlan information that are used for meeting the message of heavy packing rule replace to the associated MAC Address in the accessed purpose IP address of described acquisition module, vlan information to generate heavy encapsulated message;
Forwarding module is used for the transmitting of vlan information correspondence of the heavy encapsulated message that generates at described heavy package module, searches the purpose IP address corresponding port of described heavy encapsulated message, and described heavy encapsulated message is forwarded by the port that finds.
6. the network equipment as claimed in claim 5 is characterized in that, described identification module specifically is used for:
Discern the message that each port receives and whether have the message that meets following heavy packing rule:
The message that port receives has identical target MAC (Media Access Control) address with the message that receive the another port, and opposite each other source IP address and purpose IP address.
7. the network equipment as claimed in claim 6 is characterized in that, described detection module specifically is used for:
Detect the message that meets heavy packing rule that described identification module recognizes and whether reach following heavily encapsulation trigger condition:
Two received total flows that meet the message that weighs packing rule of port reach threshold value; Or,
The flow of the message that meets heavy packing rule that any one port is received reaches threshold value.
CN201110139999.4A 2011-05-27 2011-05-27 Message forwarding method and equipment for layer 2 ring network Active CN102158422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110139999.4A CN102158422B (en) 2011-05-27 2011-05-27 Message forwarding method and equipment for layer 2 ring network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110139999.4A CN102158422B (en) 2011-05-27 2011-05-27 Message forwarding method and equipment for layer 2 ring network

Publications (2)

Publication Number Publication Date
CN102158422A true CN102158422A (en) 2011-08-17
CN102158422B CN102158422B (en) 2014-07-23

Family

ID=44439617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110139999.4A Active CN102158422B (en) 2011-05-27 2011-05-27 Message forwarding method and equipment for layer 2 ring network

Country Status (1)

Country Link
CN (1) CN102158422B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647343A (en) * 2012-03-30 2012-08-22 汉柏科技有限公司 Flow control method and system for safe network equipment
CN104092595A (en) * 2014-07-21 2014-10-08 杭州华三通信技术有限公司 Message processing method and device based on 802.1 BR virtualization system
WO2016188201A1 (en) * 2015-05-26 2016-12-01 中兴通讯股份有限公司 Packet processing method and device
CN109510751A (en) * 2018-12-19 2019-03-22 迈普通信技术股份有限公司 A kind of message forwarding method and routing device
CN110677345A (en) * 2018-07-02 2020-01-10 华为技术有限公司 User message transmission method and communication equipment
CN114465942A (en) * 2021-12-24 2022-05-10 天翼云科技有限公司 Forwarding method and system for simultaneously supporting two-layer multicast traffic and three-layer multicast traffic

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237403A (en) * 2008-03-04 2008-08-06 中兴通讯股份有限公司 Service multiplexing method for Ethernet
CN101286990A (en) * 2008-05-27 2008-10-15 中兴通讯股份有限公司 Forwarding method and apparatus of double-layer multicast
CN101409685A (en) * 2008-12-01 2009-04-15 杭州华三通信技术有限公司 Forwarding method based on virtual LAN mapping and access equipment
CN101656681A (en) * 2009-09-02 2010-02-24 复旦大学 Network coding router based on network processor
CN101938415A (en) * 2010-08-30 2011-01-05 北京傲天动联技术有限公司 Rapid forwarding method for network forwarding device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237403A (en) * 2008-03-04 2008-08-06 中兴通讯股份有限公司 Service multiplexing method for Ethernet
CN101286990A (en) * 2008-05-27 2008-10-15 中兴通讯股份有限公司 Forwarding method and apparatus of double-layer multicast
CN101409685A (en) * 2008-12-01 2009-04-15 杭州华三通信技术有限公司 Forwarding method based on virtual LAN mapping and access equipment
CN101656681A (en) * 2009-09-02 2010-02-24 复旦大学 Network coding router based on network processor
CN101938415A (en) * 2010-08-30 2011-01-05 北京傲天动联技术有限公司 Rapid forwarding method for network forwarding device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647343A (en) * 2012-03-30 2012-08-22 汉柏科技有限公司 Flow control method and system for safe network equipment
CN102647343B (en) * 2012-03-30 2016-01-06 汉柏科技有限公司 The flow control methods of secure networking device and system
CN104092595A (en) * 2014-07-21 2014-10-08 杭州华三通信技术有限公司 Message processing method and device based on 802.1 BR virtualization system
CN104092595B (en) * 2014-07-21 2017-10-27 新华三技术有限公司 Message processing method and device in virtualization system based on 802.1BR
WO2016188201A1 (en) * 2015-05-26 2016-12-01 中兴通讯股份有限公司 Packet processing method and device
CN106302143A (en) * 2015-05-26 2017-01-04 中兴通讯股份有限公司 Message processing method and device
CN106302143B (en) * 2015-05-26 2019-06-11 中兴通讯股份有限公司 Message processing method and device
CN110677345A (en) * 2018-07-02 2020-01-10 华为技术有限公司 User message transmission method and communication equipment
CN110677345B (en) * 2018-07-02 2021-12-17 华为技术有限公司 User message transmission method and communication equipment
CN109510751A (en) * 2018-12-19 2019-03-22 迈普通信技术股份有限公司 A kind of message forwarding method and routing device
CN114465942A (en) * 2021-12-24 2022-05-10 天翼云科技有限公司 Forwarding method and system for simultaneously supporting two-layer multicast traffic and three-layer multicast traffic

Also Published As

Publication number Publication date
CN102158422B (en) 2014-07-23

Similar Documents

Publication Publication Date Title
CN102301663B (en) Message processing method and associated devices
US9059922B2 (en) Network traffic distribution
JP5542927B2 (en) Inter-node link aggregation system and method
CN102739518B (en) A kind of flow load sharing method and apparatus
CN102158422B (en) Message forwarding method and equipment for layer 2 ring network
CN104038447B (en) A kind of message transmitting method and equipment
CN103428094A (en) Method and device for packet transmitting in Open Flow system
CN104468358A (en) Message forwarding method and device of distributive virtual switch system
CN106998302A (en) The distribution method and device of a kind of service traffics
US20180159702A1 (en) Packet forwarding
CN107579923A (en) The balancing link load method and SDN controllers of a kind of SDN
CN104168212B (en) The method and apparatus for sending message
CN104852855B (en) Jamming control method, device and equipment
CN104601461B (en) Message forwarding method and device in a kind of Longitudinal Intelligence resilient infrastructure system
CN105163062B (en) A kind of system and method that social resources are linked into common platform
Huang et al. Dynamic measurement-aware routing in practice
CN107534611A (en) Transmit software defined network (SDN) --- logic to physical topology discovering
CN106101008A (en) The transmission method of a kind of message and device
WO2016062067A1 (en) User message forwarding control method and processing node
CN105812257A (en) Business chain router management system and use method thereof
CN104580002B (en) The big balanced retransmission method of current load and device
CN102035741B (en) The retransmission method of unicast message and equipment in a kind of ring topology network
CN105052106A (en) Methods and systems for receiving and transmitting internet protocol (ip) data packets
WO2016074126A1 (en) Controller, serving node and data packet forwarding method
US20120170581A1 (en) Policy homomorphic network extension

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230620

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right