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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com