CN102143061A - Method and device for switching service messages of looped network - Google Patents

Method and device for switching service messages of looped network Download PDF

Info

Publication number
CN102143061A
CN102143061A CN201010608364XA CN201010608364A CN102143061A CN 102143061 A CN102143061 A CN 102143061A CN 201010608364X A CN201010608364X A CN 201010608364XA CN 201010608364 A CN201010608364 A CN 201010608364A CN 102143061 A CN102143061 A CN 102143061A
Authority
CN
China
Prior art keywords
route
arp
network segment
broadcast flag
main frame
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
CN201010608364XA
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.)
Huawei Digital Technologies Chengdu Co Ltd
Huawei Digital Technologies Co Ltd
Original Assignee
Huawei Digital Technologies Chengdu 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 Huawei Digital Technologies Chengdu Co Ltd filed Critical Huawei Digital Technologies Chengdu Co Ltd
Priority to CN201010608364XA priority Critical patent/CN102143061A/en
Publication of CN102143061A publication Critical patent/CN102143061A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method and device for switching service messages of a looped network. The method comprises the steps of: receiving an ordinary service message; researching a routing table, and judging the hit route is a host route or network segment route; if the hit route is the network segment route, further judging whether a broadcast flag is arranged; and if the broadcast flat is arranged, carrying out broadcast forwarding in a virtual local area network (WLAN) according to the broadcast flag. Therefore, rapid switching of three layers of services is realized on the premise of no influence on performances.

Description

A kind of reverse method of looped network service message and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of reverse method and device of looped network service message.
Background technology
Existing looped network has three layers of forwarding of VLAN (Virtual LAN VLAN) institute's extension main frame of routing interface and passes through the main frame route implementing usually.Behind member port Down, datum plane triggers ARP (Address Resolution Protocol address resolution protocol) MISS and gives the control aspect, and the control aspect triggers the ARP request, then after waiting until and handling the arp response message, generate new main frame route and ARP, flow continues to transmit.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art:
When 1) under member port, hanging more main frame, because will ask a large amount of ARP again by the control aspect, and will handle arp response, following brush lot of F IB (Forward Information Base forwarding information base) and ARP table, finally cause the flow interrupt incident longer, can not realize switching fast;
2) even there is ARP MISS to suppress, still has on a large amount of ARP MISS and send, impact bigger CPU;
3) sending ARP MISS on much is repetition ARP MISS, waste CPU disposal ability.
Summary of the invention
Embodiments of the invention provide a kind of reverse method and device of looped network service message, to realize switching fast of three layer services under the prerequisite that does not influence performance.
The reverse method of a kind of looped network service message that the embodiment of the invention provides comprises:
Receive the general service message;
Search routing table, judge that the route of hitting is main frame route or network segment route;
If network segment route further judges whether to be equipped with broadcast flag;
If be equipped with broadcast flag, then in virtual LAN VLAN, do broadcasting and transmit according to broadcast flag.
The changeover apparatus of a kind of looped network service message that the embodiment of the invention provides comprises:
Receiving-member is used to receive the general service message;
Processing unit, be used to receive described general service message after, search routing table, judge that the route hit is main frame route or network segment route; If network segment route further judges whether to be equipped with broadcast flag;
Transmit block is equipped with broadcast flag if be used for described processing unit judgement, does broadcasting according to broadcast flag in virtual LAN VLAN and transmits.
The beneficial effect that embodiment of the invention technical scheme is brought:, can realize that also professional submicrosecond level switches fast even member port is hung down a large amount of main frames; Data surface is transmitted to table look-up and is lacked, and the forwarding performance height is easy to realize; ARP and MAC (access control of Media Access Control medium) table is synchronous without complete machine, reduces the internal memory of single board configuration.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the reverse method of a kind of looped network service message that Fig. 1 provides for one embodiment of the invention;
The schematic diagram of the changeover apparatus of a kind of looped network service message that Fig. 2 provides for one embodiment of the invention;
Fig. 3 provides a kind of schematic diagram of changeover apparatus of looped network service message for one embodiment of the invention;
The schematic diagram of the receiving-member processing procedure that Fig. 4 provides for one embodiment of the invention;
The schematic diagram of the control assembly processing procedure that Fig. 5 provides for one embodiment of the invention;
The schematic diagram of the processing unit that Fig. 6 provides for one embodiment of the invention;
The schematic diagram of control assembly processing procedure during network topology change that Fig. 7 provides for one embodiment of the invention;
The schematic diagram of the processing procedure that the ARP probe timer that Fig. 8 provides for one embodiment of the invention is overtime.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
As shown in Figure 1, the reverse method of a kind of looped network service message that the embodiment of the invention provides comprises: receive the general service message; Search routing table, judge that the route of hitting is main frame route or network segment route; If network segment route further judges whether to be equipped with broadcast flag; If be equipped with broadcast flag, then in virtual LAN VLAN, do broadcasting and transmit according to broadcast flag.Thereby can under the prerequisite that does not influence performance, realize switching fast of three layer services.
The reverse method of the looped network service message that the embodiment of the invention provides comprises:
S1, reception general service message;
This step specifically comprises:
Receiving-member receives message from the outside, and the message that differentiation receives from the outside is arp response message or general service message, and send to different parts processing: give control assembly for the arp response message and handle, for the general service message sends to processing unit through after the link layer process.
S2, search routing table, judge that the route of hitting is main frame route or network segment route;
After control assembly is received the arp response message from receiving-member, generate two parts of ARP list items, a with<outgoing interface, VLAN, IP〉be lookup table index, a with<VPN, IP〉be lookup table index, first part of ARP1 generates described main frame route, and second part of ARP2 generates described network segment route.
Processing unit is searched routing table, judges that the route of hitting is main frame route or network segment route; If the main frame route is finished to put and looked into the ARP1 list notation, send to transmit block.
S3 is if network segment route further judges whether to be equipped with broadcast flag;
The process of being equipped with of this broadcast flag is: after control assembly perceives the ring-network topology variation, delete described first part of ARP and respective host route, described network segment route is put broadcast flag.
Further, after described network segment route was put broadcast flag, control assembly was surveyed again to ARP, detect new ARP again after, generate new main frame route.
If S4 is equipped with broadcast flag, then in virtual LAN VLAN, does broadcasting and transmit according to broadcast flag.
If be equipped with broadcast flag, then finish the VLAN broadcast replication and put and look into the ARP2 mark, send to transmit block and in virtual LAN VLAN, do broadcasting according to broadcast flag and transmit.
If do not put broadcast flag then do not do to duplicate and put and look into the ARP1 list notation, send to transmit block at last.
Hang a large amount of main frames even the technical scheme of the embodiment of the invention makes under the member port, can realize that also professional submicrosecond level switches fast; Data surface is transmitted to table look-up and is lacked, and the forwarding performance height is easy to realize; ARP and MAC (access control of Media Access Control medium) table is synchronous without complete machine, reduces the internal memory of single board configuration.
As shown in Figure 2, the embodiment of the invention also provides a kind of changeover apparatus of looped network service message, comprising:
Receiving-member is used to receive the general service message;
Processing unit after being used for described receiving-member and receiving described general service message, is searched routing table, judges that the route of hitting is main frame route or network segment route; If network segment route further judges whether to be equipped with broadcast flag;
Transmit block is equipped with broadcast flag if be used for described processing unit judgement, then does broadcasting according to broadcast flag in virtual LAN VLAN and transmits.
As shown in Figure 3, the embodiment of the invention also provides a kind of changeover apparatus of looped network service message, except having parts shown in Figure 2, also comprises control assembly, generate two parts of ARP list items after being used to receive the ARP response message, a with<outgoing interface, VLAN, IP〉be lookup table index, a with<VPN, IP〉be lookup table index, first part of ARP generates described main frame route, and second part of ARP generates described network segment route.Described control assembly after also being used to perceive ring-network topology and changing, is deleted described first part of ARP and respective host route, and described network segment route is put broadcast flag.Described control assembly also is used for after described network segment route is put broadcast flag ARP being surveyed again, detect new ARP again after, generate new main frame route.
For ease of understanding, will be elaborated to the implementation procedure of the embodiment of the invention in concrete application process below to the embodiment of the invention.
What Fig. 4 illustrated is the processing of receiving-member 100.After receiving message from the outside, judge it is arp response message or general service message 201.Give control assembly 103 203 for the arp response message and handle, send to processing unit 101 after passing through link layer process for the general service message 202.
What Fig. 5 illustrated is the handling process of control assembly 103.After control assembly 103 is received the arp response message from receiving-member 100, generate lookup table index 301 and be<outgoing interface VLAN, IP〉ARP1 and respective hosts route, be<VPN IP in 302 generation lookup table index〉ARP2 and corresponding network segment route.
What Fig. 6 illustrated is the handling process of processing unit 101.Do routing table lookup 401,402 judge whether the route of hitting is the main frame route.Be the main frame route, finish to put 403 and look into the ARP1 list notation, finish sending to transmit block 102 processing then 407.Otherwise what hit is network segment route, then judges to have 404 and does not put broadcast flag.Be to finish the VLAN broadcast replication and put and look into the ARP2 mark, send to transmit block 102 405.Do not put broadcast flag and then do not do to duplicate and put and look into the ARP1 list notation, send to transmit block 102 407 at last 406.
The processing of control assembly 103 when change in topology as described in Figure 7.501 put broadcast flag to network segment route earlier, then in 502 deletion main frame routes, at 503 deletion ARP1.Survey all ARP among the ARP1 item by item in 504 triggerings.After ARP triggers detection among all ARP1 at last, start the ARP probe timers 505.
Fig. 8 is the overtime processing of ARP probe timer.The ARP probe timer is overtime, illustrates that ARP that this change in topology causes refreshes to finish, and then is used for the network segment routing broadcast mark that message duplicates before 601 deletions.
Hang a large amount of main frames even the technical scheme of the embodiment of the invention makes under the member port, can realize that also professional submicrosecond level switches fast; Data surface is transmitted to table look-up and is lacked, and the forwarding performance height is easy to realize; ARP and MAC (access control of Media Access Control medium) table is synchronous without complete machine, reduces the internal memory of single board configuration.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (8)

1. the reverse method of a looped network service message is characterized in that, comprising:
Receive the general service message;
Search routing table, judge that the route of hitting is main frame route or network segment route;
If network segment route further judges whether to be equipped with broadcast flag;
If be equipped with broadcast flag, then in virtual LAN VLAN, do broadcasting and transmit according to broadcast flag.
2. method according to claim 1 is characterized in that, the generative process of described main frame route and network segment route is specially:
Receive and generate two parts of ARP list items after the ARP response message, a with<outgoing interface, VLAN, IP〉be lookup table index, a with<VPN, IP〉be lookup table index, first part of ARP generates described main frame route, and second part of ARP generates described network segment route.
3. method according to claim 2 is characterized in that, the process of being equipped with of described broadcast flag is: after perceiving the ring-network topology variation, delete described first part of ARP and respective host route, described network segment route is put broadcast flag.
4. method according to claim 3 is characterized in that, described method also comprises: after described network segment route is put broadcast flag, ARP is surveyed again, detect new ARP again after, generate new main frame route.
5. the changeover apparatus of a looped network service message is characterized in that, comprising:
Receiving-member is used to receive the general service message;
Processing unit after being used for described receiving-member and receiving described general service message, is searched routing table, judges that the route of hitting is main frame route or network segment route; If network segment route further judges whether to be equipped with broadcast flag;
Transmit block is equipped with broadcast flag if be used for described processing unit judgement, does broadcasting according to broadcast flag in virtual LAN VLAN and transmits.
6. device according to claim 5 is characterized in that, described device also comprises:
Control assembly is used to receive and generates two parts of ARP list items after the ARP response message, and is a with<outgoing interface, VLAN, IP〉be lookup table index, a with<VPN, IP〉be lookup table index, first part of ARP generates described main frame route, and second part of ARP generates described network segment route.
7. device according to claim 6 is characterized in that, described control assembly after also being used to perceive ring-network topology and changing, is deleted described first part of ARP and respective host route, and described network segment route is put broadcast flag.
8. device according to claim 7 is characterized in that, described control assembly also is used for after described network segment route is put broadcast flag ARP being surveyed again, detect new ARP again after, generate new main frame route.
CN201010608364XA 2010-12-24 2010-12-24 Method and device for switching service messages of looped network Pending CN102143061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010608364XA CN102143061A (en) 2010-12-24 2010-12-24 Method and device for switching service messages of looped network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010608364XA CN102143061A (en) 2010-12-24 2010-12-24 Method and device for switching service messages of looped network

Publications (1)

Publication Number Publication Date
CN102143061A true CN102143061A (en) 2011-08-03

Family

ID=44410296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010608364XA Pending CN102143061A (en) 2010-12-24 2010-12-24 Method and device for switching service messages of looped network

Country Status (1)

Country Link
CN (1) CN102143061A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402487A (en) * 2002-10-14 2003-03-12 北京港湾网络有限公司 Method for optimazed configuration of third layer exchange chip of network exchange apparatus
CN101499958A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and routing device for implementing sub-interface by high-speed physical interface
CN101610266A (en) * 2009-07-28 2009-12-23 杭州华三通信技术有限公司 A kind of method and device that detects ARP message validity

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402487A (en) * 2002-10-14 2003-03-12 北京港湾网络有限公司 Method for optimazed configuration of third layer exchange chip of network exchange apparatus
CN101499958A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and routing device for implementing sub-interface by high-speed physical interface
CN101610266A (en) * 2009-07-28 2009-12-23 杭州华三通信技术有限公司 A kind of method and device that detects ARP message validity

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
纪林: "第三层交换技术", 《通信世界》 *

Similar Documents

Publication Publication Date Title
CN102694718B (en) A kind of VPLS fast rerouting method and equipment
CN102291320B (en) MAC (media access control) address learning method and edge device
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN103220215B (en) The retransmission method of FCoE message and device in TRILL network
CN105591974B (en) Message processing method, apparatus and system
CN104378296A (en) Message forwarding method and device
WO2009033428A1 (en) Method, system and device for removing media access control address
WO2011120459A2 (en) Message forwarding method, equipment and network device
CN107547349A (en) A kind of method and device of virtual machine (vm) migration
WO2016086713A1 (en) Equal-cost multi-path outbound interface update method and apparatus
JP6928076B2 (en) Packet monitoring
CN102739526B (en) Realization method of efficient distributed routing list realizing method
CN103516612B (en) Distribution router generates method and the distribution router of route table items
CN102546389A (en) Method and device for flow trusteeship of cross-data center
CN103560961A (en) Method for dynamically updating host routing table entries of Ethernet switch and switch
WO2009003394A1 (en) Method for studying mac address and network element apparatus
CN103249075A (en) Access point (AP) fault detecting and recovering method and device
CN102316014B (en) Load sharing method and router under hierarchical virtual dedicated local area network service environment
WO2011134295A1 (en) Method and device for converging layer 2 multicast network
CN103560962A (en) Method for automatically updating host routing table entries of Ethernet switch and switch
CN104580025A (en) Method for establishing in-band connection in open flow network and switch
US20100027555A1 (en) Method for processing link state advertisement and routing device
CN108540386B (en) Method and device for preventing service flow interruption
CN103731817B (en) Data transmission method and equipment
CN102045233A (en) Method and device for controlling message forwarding in network communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road, No. 3

Applicant after: Beijing Huawei Digital Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road, No. 3

Applicant before: Huawei Digit Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: HUAWEI DIGIT TECHNOLOGY CO., LTD. TO: BEIJING HUAWEI DIGITAL TECHNOLOGY CO., LTD.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110803