Method and device of fast shift of forwarding port

A technology for fast switching and port forwarding, which is applied in the field of communication and can solve problems such as CPU occupation, infeasibility, and interruption of business traffic.

Inactive Publication Date: 2012-01-04
HUAWEI TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the prior art, when there are few entries in the entire MAC table, it takes less time to find and delete the exit port entries, and the traffic recovery is faster, but when there are many entries (such as 64K) in the MAC table, it is necessary to search and delete exit ports The entry of the port will occupy the CPU for a long time, resulting in the interruption of service traffic during this period. For large-capacity service specifications, this technology is not feasible.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device of fast shift of forwarding port
  • Method and device of fast shift of forwarding port
  • Method and device of fast shift of forwarding port

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] The embodiment of the present invention provides a method for fast switching of forwarding ports, see figure 1 , the method flow includes:

[0033] 101: Receive a packet to be forwarded, and obtain the destination MAC address and VSI carried in the packet;

[0034] 102: Check whether there is an entry matching the destination MAC address and VSI in the MAC table, if yes, perform step 103, otherwise, perform step 106;

[0035] 103: Search the VSI table for an entry matching the above-mentioned VSI;

[0036] 104: Judging whether the check code in the entry of the MAC table found is the same as the check code in the entry of the VSI table found, if they are the same, then perform step 105, if the check codes are different, perform step 106 ;

[0037] 105: According to the destination outbound port information in the found MAC table entry, forward the message from the destination outbound port to CE, and the process ends;

[0038] 106: Broadcast the message in the above...

Embodiment 2

[0041] The technical problem to be solved by the embodiment of the present invention is how to quickly switch the forwarding port without interrupting the service flow when the corresponding MAC entry is not deleted in time after the CE changes the port in the VPLS network.

[0042] Such as figure 2 As shown, in the VPLS network, CE1 and CE2 belong to VSI 1, and link AC1 is established. If the MAC table on PE2 already has an entry for CE2, when a packet sent from CE1 to CE2 arrives at PE2, the MAC table is queried according to the VSI 1 and destination MAC address carried in the packet, and the destination outbound port is Port1 encapsulates the packet and sends the packet to CE2 through Port1 to complete the packet forwarding on PE2.

[0043] When a user on CE2 switches to CE3, if image 3 As shown in the figure, the port for forwarding packets is switched from Port1 to Port2, and Port1 exits VSI 1. Because the traffic continues to exist, the MAC table will not be aged ou...

Embodiment 3

[0071] see Image 6 , the embodiment of the present invention provides a device for fast switching of forwarding ports, which can be used on PEs in a VPLS network, and the device includes:

[0072] An obtaining module 601, configured to receive a message to be forwarded, and obtain the destination MAC address and VSI carried in the message;

[0073] The search module 602 is used to search in the MAC table whether there is an entry matching the destination MAC address obtained by the obtaining module 601 and the VSI, and if so, search the VSI table for an entry matching the VSI;

[0074] Judging module 603, for judging whether the check code in the entry of the MAC table found by the search module 602 is the same as the check code in the entry of the VSI table found;

[0075] The broadcasting module 604 is configured to broadcast the message in the VSI when the judging module 603 judges that the verification codes are different.

[0076] see Figure 7 , the device also inclu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device of fast shift of a forwarding port, which belong to communication field. The method comprises the steps of receiving message need to be transferred and acquiring a target MAC address and VSI carried by the message; searching whether MAC table has an item matching with the target MAC address and VSI (If yes, searching items matching with the VSI in a VSI table); judging whether the check code in the MAC table is the same as that in the VSI table or not (If no, the message is broadcast in the VSI). Accordingly, the message can be transferred to relative users in time without interrupting the business.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for fast switching of forwarding ports. Background technique [0002] VPLS (Virtual Private Lan Services, Virtual Private LAN Service) is a typical Layer 2 VPN (Virtual Private Network, Virtual Private Network) application, based on Ethernet, providing network services based on Layer 2 multipoint connections between edge devices . From the point of view of CE (Custom Edge, user edge device), the entire network providing VPLS service is invisible, as if these CEs are directly connected to a logical switch. But in fact, CE is connected with PE (Provider Edge Router, the edge router on the backbone network) in the VPLS network. PE is mainly responsible for the access of VPN services. Mapping and forwarding from tunnel to private network. [0003] In a VPLS network, received packets need to be forwarded. When a PE receives a message from a public network tunnel, it s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/56H04L12/46
CPCH04L49/602
Inventor 宣慧
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products