Message sending method and PE device

By introducing MAC aggregation routing and sending function in PE devices, the problem of MAC address table entries and routing table entries management pressure during large-scale deployment of VPLS devices is solved, and resource conservation and business reliability are achieved.

CN119996113APending Publication Date: 2025-05-13NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510221111.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

In the operator's large network, VPLS devices need to learn all the MAC addresses on the entire network, resulting in high pressure on the management of MAC address table entries and routing table entries. Especially when the number of users increases, it may lead to insufficient equipment resources and inability to learn the MAC addresses of some users in the site, resulting in the inability to go online.

Method used

By introducing MAC aggregation routing and sending function in PE devices and replacing the traditional EVPN MAC/IP detailed routing, remote PE devices only need to learn one MAC network segment address, reduce the MAC address scale of the entire network device, and save device routing and MAC address resources.

Benefits of technology

By reducing the size of MAC address and routing table entries, the problem of business failure caused by insufficient equipment resources is avoided, and the time for failure switching is increased.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996113A_ABST
    Figure CN119996113A_ABST
Patent Text Reader

Abstract

The invention provides a message sending method and PE equipment, and the method comprises the steps: receiving a to-be-sent first message, obtaining a first MAC address carried in the first message, replacing the first MAC address with a second MAC address, and sending the first message with the second MAC address replaced to far-end PE equipment, so that the far-end PE equipment sends the first message with the second MAC address replaced to the far-end PE equipment after receiving the first message. And sending the first message to the target device. Through the method, the problem that MAC and routing table entries occupy a large number of resources of equipment can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of communication technology, and in particular to a method for sending a message and a PE device. Background Art

[0002] PE device: Provider Edge, operator edge device, usually used in the edge device of the service provider network, responsible for connecting the service provider's core network with the customer network. PE devices are particularly common in Multi-Protocol Label Switching (MPLS) networks, and are mainly used to handle interactions with customer edge (CE, Customer Edge) devices.

[0003] VSI: (Virtual Switch Instance) VSI is a virtual instance on a PE device that provides Layer 2 switching services for a VPLS instance. VSI can be regarded as a virtual switch on a PE device. It has all the functions of a traditional Ethernet switch, including source MAC address learning, MAC address aging, flooding, etc. VPLS uses VSI to forward Layer 2 data packets within a VPLS instance.

[0004] MAC: (Media Access Control) The address table records the correspondence between MAC addresses and interfaces, as well as information such as the VLAN to which the interface belongs.

[0005] In the large-scale network of operators, personal services such as HSI (High Speed ​​Internet), VoIP (Voice Over IP), and BTV (Broadband TV) usually carry service traffic through the operator's metropolitan area network. Since the service gateway (SR / BRAS, etc.) of personal services is deployed at the metropolitan area egress, it means that the user's Layer 2 message needs to be transparently transmitted to the service gateway (because if the Layer 2 message is terminated on the PE and forwarded by Layer 3 routing, the user information carried in the Layer 2 message will be lost and cannot reach the service gateway, resulting in the service gateway being unable to control the user). EVPN VPLS is needed to carry these services.

[0006] The current VPLS feature is that all devices in the network that have enabled VPLS services will learn all MAC addresses in the entire network. Once the number of users increases, the MAC address table entries of all devices will increase significantly, and the devices will face huge pressure problems caused by the management of routing table entries and MAC address table entries. In particular, when the peer PE is at the aggregation layer, if the MAC address table entries of the aggregation layer PE are saturated, it may not be possible to learn the MAC addresses of some users in the site, resulting in these users being unable to go online. Maintaining these MAC and routing table entries at the same time will occupy a large amount of device resources and affect service switching performance during fault switching. Summary of the invention

[0007] To overcome the problems existing in the related art, this specification provides a method for sending a message and a PE device.

[0008] According to a first aspect of an embodiment of this specification, a method for sending a message is provided, the method being applied to a first operator edge device PE device, the method comprising:

[0009] Receive a first message to be sent, and obtain a first MAC address carried in the first message;

[0010] replacing the first MAC address with a second MAC address, and sending the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message;

[0011] The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

[0012] Optionally, the method further includes:

[0013] The first PE device determines a MAC aggregation route;

[0014] The MAC aggregation route is sent to a remote PE device.

[0015] The method for obtaining the MAC aggregation route includes:

[0016] The MAC aggregation route corresponding to the first PE is calculated according to the set MAC address segment length and the bridge MAC of the first PE or the Tag ID of the first PE.

[0017] The replacing the first MAC address with the second MAC address includes:

[0018] Obtain an unused second MAC address from the MAC aggregation route;

[0019] The correspondence between the second MAC address and the first MAC address is recorded, and the first MAC address is replaced with the second MAC address and encapsulated in the first message.

[0020] Optionally, the method further includes:

[0021] receiving a second message sent by a remote PE device, and obtaining a third MAC address from the second message;

[0022] Acquire a fourth MAC address corresponding to the third MAC address from the corresponding relationship, wherein the fourth MAC address is a source MAC address of the PE device;

[0023] The second message is sent to the corresponding PE device according to the fourth MAC address.

[0024] It can be seen from the above embodiments that by adding a MAC aggregation route sending function, after enabling this function, the PE device no longer sends EVPN MAC / IP detailed routes, but only sends MAC aggregation routes (aggregated MAC / IP routes). The remote PE device only needs to learn one MAC network segment address. Through this method, the MAC address scale of the entire network equipment can be reduced, saving device routing and MAC address resources, avoiding the failure of business to go online due to insufficient device resources, and the resource saving will increase the fault switching time.

[0025] According to a second aspect of an embodiment of this specification, a PE device is provided, the PE device comprising:

[0026] A receiving module, used to receive a first message to be sent, and obtain a first MAC address carried in the first message;

[0027] a processing module, configured to replace the first MAC address with a second MAC address, and send the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message;

[0028] The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

[0029] Wherein, the PE device also includes:

[0030] A sending module, used to send the MAC aggregation route to a remote PE device;

[0031] The MAC aggregation route is determined by the PE device.

[0032] The receiving module is further configured to calculate a MAC aggregation route corresponding to the first PE according to a set length of the MAC address segment and a bridge MAC of the first PE or a Tag ID of the first PE.

[0033] Wherein, the processing module is specifically used to obtain an unused second MAC address from the MAC aggregation route;

[0034] The correspondence between the second MAC address and the first MAC address is recorded, and the first MAC address is replaced with the second MAC address and encapsulated in the first message.

[0035] Among them, the receiving module is also used to receive a second message sent by a remote PE device, obtain a third MAC address from the second message, and obtain a fourth MAC address corresponding to the third MAC address from the correspondence, wherein the fourth MAC address is the source MAC address of the PE device, and send the second message to the corresponding PE device according to the fourth MAC address.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0038] Figure 1 This is a network diagram shown in this specification according to an exemplary embodiment.

[0039] Figure 2 It is a flowchart of a method for sending a message according to an exemplary embodiment of this specification.

[0040] Figure 3 This is a message structure intention of a MAC address advertisement routing shown in this specification according to an exemplary embodiment.

[0041] Figure 4 It is a schematic diagram of a network architecture shown in this specification according to an exemplary embodiment. DETAILED DESCRIPTION

[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0043] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0044] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0045] At present, in order to reduce the number of MAC addresses to be learned, the UMR feature is used to reduce the pressure on route reflectors and aggregation layer devices to learn MAC addresses. Figure 1 As shown in the figure, ALeaf at the access layer generates and publishes a UMR to RR, and no longer publishes MAC detailed routes to RR, thereby reducing the pressure on RR to learn MAC addresses. At the same time, RR only reflects the UMR sent by ALeaf to SLeaf at the aggregation layer to relieve the pressure on SLeaf to learn MAC addresses. In addition, it is necessary to set up that only MAC detailed routes are sent between ALeafs, and RR only reflects the received MAC detailed routes to ALeaf to ensure the normal operation of EVPN VPLS services.

[0046] Since the current reflector will be connected to many access devices, the UMR function can only be configured on a certain access device and cannot be configured on multiple access devices at the same time. Otherwise, after receiving multiple UMR routes on the reflector RR, only one of them will be preferred, thus affecting the VPLS services of other access devices configured with UMR. At the same time, if only one access device can be equipped with UMR, in such a large-scale deployment of VPLS services, the actual reduction in the number of MACs is limited, and the problem is not fundamentally solved.

[0047] To solve the above technical problems, the present disclosure provides a method for sending a message, such as Figure 2 As shown, the method is applied to a first operator edge device PE device, and the method includes:

[0048] S201 receives a first message to be sent, and obtains a first MAC address carried in the first message;

[0049] S202: replacing the first MAC address with a second MAC address, and sending the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message;

[0050] The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

[0051] In this embodiment, the administrator can set the length of the MAC address segment and calculate the MAC aggregation route corresponding to the PE through the bridge MAC of the PE device (first PE device) or the Tag ID of the PE device. In other embodiments, the administrator can directly set a specific MAC address segment and generate a MAC aggregation route based on the specific MAC address segment.

[0052] Specifically, in an example, advertise aggregate-mac+mac segment+length can be directly configured, for example, advertise aggregate-mac 3000-0000-0000 32 is configured in the vsi instance.

[0053] In another example, you can configure aggregate-mac length to automatically generate an aggregate MAC segment. For example, configure advertise aggregate-mac length 32 in the vsi instance. Then, according to the algorithm, the first 24 bits are taken from the first 24 bits of the bridge MAC, and the value of the middle length-24 bits is filled in according to the hash value of the bridge MAC. For example, if the length is 32 bits, the value of the 25th to 32nd (difference n) bits can be the hash value of the bridge MAC of this device. The range of the hash value is (1-255 (2 to the power of n).

[0054] In another example, you can configure aggregate-mac length and then configure aggregate-mactagid. In this way, when aggregating mac, the first 24 bits also need to be the first 24 bits of the bridge mac. The bit values ​​of the middle length-24 (difference n) are identified according to tagid. The tagid value range is 1-(2 to the power of n-1). For example, if the length is 32, the tagid value range is 1-255, the tagid is configured as 1, and the bridge mac is 3000-abcd-0001. The generated aggregate mac is 3000-ab01-0000 / 32 bits.

[0055] In this embodiment, the VSI can be set to announce the MAC address segment externally through commands, so that the EVPN MAC / IP route no longer publishes the local detailed MAC route, but only publishes one MAC aggregation route.

[0056] like Figure 3 As shown, in this embodiment, the MAC Address Length field in the MAC address announcement route can be used. Usually, the field is 48. When the technical solution in the present disclosure is applied, the field can be adjusted according to the length of the determined MAC address segment. For example, when the MAC address segment is large, the field can be 128, 256, etc. When the remote PE receives the MAC address announcement route sent by the local PE, it can determine whether the MAC address announcement route is a specific detailed route or a MAC aggregation route according to the size of the MAC address announcement route. For example, if the size is 48, the remote PE device believes that the MAC address announcement route is a detailed route. When the size of the MAC address announcement route is greater than 48, it is believed that the MAC address announcement route is a MAC aggregation route.

[0057] In step S201, when the first PE device obtains a first message (such as a Client message) sent by a user (Client), it obtains a source MAC address carried in the first message.

[0058] When executing step S202, the first PE selects an unused second MAC address from the MAC aggregation route notified to the remote PE, replaces the first MAC address with the second MAC address and sends it to the remote PE device, and at the same time, establishes a corresponding relationship between the first MAC address and the second MAC address.

[0059] After receiving the first message carrying the second MAC address, the remote PE device obtains the second MAC address and sends the first message to the target device.

[0060] When the first PE receives the second message sent by the remote PE, it obtains the third MAC address carried by the second message, and traverses the corresponding relationship using the third MAC address. When there is a fourth MAC address corresponding to the third MAC address, it can be determined that the third MAC address is the address in the MAC aggregation route, and the third MAC address is replaced with the fourth MAC address. At the same time, the MAC aggregation route recycles the third MAC address, replaces the third MAC address in the second message with the fourth MAC address, and sends the second message to the user.

[0061] For example, in one example, Figure 4 As shown, the access device PE1 (first PE) VSI 100 is configured with a MAC address aggregation function and sends a MAC aggregation route to the remote PE2. For example, it sends a MAC address segment of 3000-0000-0000 / 32 bits, that is, it publishes a route with a MAC Address of 3000-0000-0000 and a MAC Address Length of 32. After receiving the route, the remote PE2 device generates an EVPN MAC address table. Different from the conventional 48-bit MAC address, the PE generates a MAC table entry of 3000-0000-0000 / 32.

[0062] When a user with a local MAC address of 2345-2345-2345 on Device A sends a request message to a remote server and requests data communication, Device A changes the source MAC address in the original data message from 2345-2345-2345 to 3000-0000-0001, which is obtained from the aggregate route 3000-0000-0000 / 32, and sends it to the remote Device C and establishes a MAC mapping table that maps 2345-2345-2345 to 3000-0000-0001. After receiving the SRv6 message, the remote Device C removes the SRH and sends it to the server from the AC port.

[0063] When the server sends a message to the client, Device C finds that the destination MAC address of the original data is 3000-0000-0001. This MAC address matches the EVPN route 3000-0000-0000 / 32 and encapsulates the original message with an SRH header. After the SRv6 message is forwarded to Device A, the SRH header is stripped off and the destination MAC address of the original data is checked. This address belongs to the MAC address of the EVPN aggregation network segment. The local MAC and aggregation MAC address mapping table is checked and the corresponding local MAC is actually 2345-2345-2345. The destination MAC in the original message is changed from 3000-0000-0001 to 2345-2345-2345 and sent from the AC port to the client.

[0064] It can be seen from the above embodiments that a MAC aggregation route sending function is newly added in this embodiment. After enabling this function, the device does not generate EVPN MAC / IP detailed routes, but only sends one aggregated MAC / IP route. The remote device will only learn one MAC network segment address through this route. At the same time, this function can greatly reduce the MAC address scale of the entire network devices, save device routes and MAC address resources, avoid the failure of services to go online due to insufficient device resources, and improve the time of fault switching after resource saving.

[0065] Based on the above method embodiments, the present disclosure further provides a PE device, the PE device comprising:

[0066] A receiving module, used to receive a first message to be sent, and obtain a first MAC address carried in the first message;

[0067] a processing module, configured to replace the first MAC address with a second MAC address, and send the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message;

[0068] The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

[0069] Wherein, the PE device also includes:

[0070] A sending module, used to send the MAC aggregation route to a remote PE device;

[0071] The MAC aggregation route is determined by the PE device.

[0072] The receiving module is further configured to calculate a MAC aggregation route corresponding to the first PE according to a set length of the MAC address segment and a bridge MAC of the first PE or a Tag ID of the first PE.

[0073] Wherein, the processing module is specifically used to obtain an unused second MAC address from the MAC aggregation route;

[0074] The correspondence between the second MAC address and the first MAC address is recorded, and the first MAC address is replaced with the second MAC address and encapsulated in the first message.

[0075] Among them, the receiving module is also used to receive a second message sent by a remote PE device, obtain a third MAC address from the second message, and obtain a fourth MAC address corresponding to the third MAC address from the correspondence, wherein the fourth MAC address is the source MAC address of the PE device, and send the second message to the corresponding PE device according to the fourth MAC address.

[0076] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0077] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0078] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0079] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0080] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for sending a message, characterized in that: The method is applied to a first operator edge device PE device, and the method includes: Receive a first message to be sent, and obtain a first MAC address carried in the first message; replacing the first MAC address with a second MAC address, and sending the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message; The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

2. The method according to claim 1, characterized in that The method further comprises: The first PE device determines a MAC aggregation route; The MAC aggregation route is sent to a remote PE device.

3. The method according to claim 1, characterized in that The method for obtaining the MAC aggregation route includes: The MAC aggregation route corresponding to the first PE is calculated according to the set MAC address segment length and the bridge MAC of the first PE or the Tag ID of the first PE.

4. The method according to claim 1, characterized in that: The replacing the first MAC address with the second MAC address includes: Obtain an unused second MAC address from the MAC aggregation route; The correspondence between the second MAC address and the first MAC address is recorded, and the first MAC address is replaced with the second MAC address and encapsulated in the first message.

5. The method according to claim 4, characterized in that The method further comprises: receiving a second message sent by a remote PE device, and obtaining a third MAC address from the second message; Acquire a fourth MAC address corresponding to the third MAC address from the corresponding relationship, wherein the fourth MAC address is a source MAC address of the PE device; The second message is sent to the corresponding PE device according to the fourth MAC address.

6. A PE device, characterized in that: The PE equipment includes: A receiving module, used to receive a first message to be sent, and obtain a first MAC address carried in the first message; a processing module, configured to replace the first MAC address with a second MAC address, and send the first message with the second MAC address replaced to a remote PE device, so that the remote PE device sends the first message to a target device after receiving the first message; The second MAC address is an address in a MAC aggregation route sent by the first PE device to a remote PE device.

7. The PE device according to claim 6, characterized in that: The PE device further includes: A sending module, used to send the MAC aggregation route to a remote PE device; The MAC aggregation route is determined by the PE device.

8. The PE device according to claim 6, characterized in that: The receiving module is further used to calculate the MAC aggregation route corresponding to the first PE according to the set MAC address segment length and the bridge MAC of the first PE or the Tag ID of the first PE.

9. The PE device according to claim 6, characterized in that: The processing module is specifically used to obtain an unused second MAC address from the MAC aggregation route; The correspondence between the second MAC address and the first MAC address is recorded, and the first MAC address is replaced with the second MAC address and encapsulated in the first message.

10. The PE device according to claim 9, characterized in that: The receiving module is also used to receive a second message sent by a remote PE device, obtain a third MAC address from the second message, and obtain a fourth MAC address corresponding to the third MAC address from the corresponding relationship, wherein the fourth MAC address is the source MAC address of the PE device, and send the second message to the corresponding PE device according to the fourth MAC address.