CN106059917B - Routing information processing method and device - Google Patents

Routing information processing method and device Download PDF

Info

Publication number
CN106059917B
CN106059917B CN201610439432.1A CN201610439432A CN106059917B CN 106059917 B CN106059917 B CN 106059917B CN 201610439432 A CN201610439432 A CN 201610439432A CN 106059917 B CN106059917 B CN 106059917B
Authority
CN
China
Prior art keywords
current
routing
information
routing information
sending
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.)
Active
Application number
CN201610439432.1A
Other languages
Chinese (zh)
Other versions
CN106059917A (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 Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610439432.1A priority Critical patent/CN106059917B/en
Publication of CN106059917A publication Critical patent/CN106059917A/en
Application granted granted Critical
Publication of CN106059917B publication Critical patent/CN106059917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a method and a device for processing routing information. The method comprises the following steps: acquiring a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information aiming at target neighbor information; judging whether the current routing information, the target neighbor information and the current mapping relation between the current routing sending attributes are matched with a pre-stored mapping relation or not; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute; and when the current mapping relation is not matched with the pre-stored mapping relation, sending the current routing information to BGP neighbor equipment corresponding to the target neighbor information. The embodiment of the application can improve the sending efficiency of the routing information and reduce the network link load for transmitting the routing information.

Description

Routing information processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing routing information.
Background
BGP (Border Gateway Protocol) is a dynamic routing Protocol that can be used between different ASs (Autonomous systems) or within the same AS, and can implement exchange of routing information between the Autonomous System and an external Autonomous System.
After the BGP neighbor relationship is established, the BGP device may send all the routing information of the local end to the BGP neighbor device through an update message. Referring to fig. 1, a schematic structural diagram of a conventional BGP networking is shown. The RTA and the RTB are two BGP devices in the same AS, and after the BGP neighbors are established by the RTA and the RTB, the RTA can send all routing information of the local terminal to the RTB through an update message.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present application are provided to provide a method and an apparatus for processing routing information, which overcome the foregoing problems or at least partially solve the foregoing problems, and can improve efficiency of sending routing information by a BGP device and reduce a load of a BGP network link.
The embodiment of the application discloses a routing information processing method, which is applied to BGP equipment and comprises the following steps:
acquiring a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information aiming at target neighbor information;
judging whether the current routing information, the target neighbor information and the current mapping relation between the current routing sending attributes are matched with a pre-stored mapping relation or not; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
and when the current mapping relation is not matched with the pre-stored mapping relation, sending the current routing information to BGP neighbor equipment corresponding to the target neighbor information.
On the other hand, an embodiment of the present application discloses a routing information processing apparatus, which is applied to a BGP device, and includes:
the first acquisition module is used for acquiring the sending attribute of the current route corresponding to the current route information according to the outgoing direction route strategy corresponding to the current route information aiming at the target neighbor information;
the judging module is used for judging whether the current mapping relation among the current routing information, the target neighbor information and the current routing sending attribute is matched with the pre-stored mapping relation or not; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
and a sending module, configured to send the current routing information to a BGP neighbor device corresponding to the target neighbor information when the current mapping relationship is not matched with the pre-stored mapping relationship.
The embodiment of the application has the following advantages:
according to the routing strategy of the current routing information corresponding to the target neighbor information, the routing sending attribute of the current routing information is acquired, and when the current routing information, the target neighbor information and the current mapping relation between the routing sending attributes are not matched with the mapping relation stored in advance, the routing sending attribute of the current routing information can be determined to be changed, or the current routing information is not sent to the target neighbor equipment, and the current routing information can be sent to the target neighbor equipment. Therefore, the embodiment of the application can filter the current routing information which needs to be sent to the target neighbor device, so that the BGP device only sends the routing information with the changed routing sending attribute to the target neighbor device instead of sending all the routing information, thereby improving the efficiency of sending the routing information and reducing the network link burden of transmitting the routing information.
Drawings
Fig. 1 is a schematic structural diagram of a conventional BGP networking;
FIG. 2 is a flow chart of steps of a method for routing information processing according to one embodiment of the present application;
FIG. 3 is a flow chart of steps of a method of routing information processing according to another embodiment of the present application;
fig. 4 is a schematic diagram illustrating a hardware structure of a BGP device applied to a routing information processing apparatus according to an exemplary embodiment of the present application;
fig. 5 is a block diagram of a routing information processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
With the rapid development of networks, the exchange amount of routing information is increasing, and when BGP devices send all the routing information of their own peers to BGP neighbor devices, it takes a while to complete the sending of the routing information, which results in low efficiency of sending the routing information. In addition, the transmission of a large number of update messages also increases the burden on the network link.
One of the core ideas of the application is that a current routing sending attribute corresponding to current routing information of target neighbor information is obtained, and whether the current mapping relation among the current routing information, the target neighbor information and the current routing sending attribute is matched with a pre-stored mapping relation is judged by inquiring the pre-stored mapping relation; if not, it may be determined that the route transmission attribute of the current route information has changed, or the current route information has not been transmitted to the target neighbor device, and the current route information may be transmitted to the target neighbor device. Therefore, the embodiment of the application can filter the current routing information which needs to be sent to the target neighbor device, so that the BGP device only sends the routing information which has the changed routing sending attribute or has not been sent to the target neighbor device, but not sends all the routing information, thereby improving the efficiency of sending the routing information and reducing the network link burden of transmitting the routing information.
Referring to fig. 2, a flowchart illustrating steps of a method for processing routing information according to an embodiment of the present application is shown, where the method is applied to a BGP device, and the method may specifically include the following steps:
step 201, obtaining a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information of target neighbor information;
the embodiment of the application can be applied to BGP route switching equipment (such AS BGP routers, hereinafter referred to AS BGP equipment for short), and the BGP equipment can be positioned among different ASs or in the same AS. It should be noted that, in the embodiments of the present application, BGP devices in the same AS are used AS an example for description, and routing information processing processes of BGP devices between different ASs are similar and refer to each other.
The target neighbor information may specifically be identification information such as a device name or a Media Access Control (MAC) address of the target neighbor device. In a specific application, an outbound routing policy for BGP devices to send routing information to corresponding target neighbor devices may be configured, where the routing policy may be used to configure a routing attribute corresponding to the routing information. When the outbound routing policy changes, the corresponding routing attributes may also change. In addition, when an ACL (Access Control List), a route itself, or the like changes, a route transmission attribute also changes. The routing transmission attribute in the embodiment of the present application refers to a routing attribute that is required to be transmitted to the outside after the routing information of the BGP device is filtered by the current outgoing direction routing policy.
According to the embodiment of the application, when the BGP equipment needs to send the routing information to the target neighbor equipment, the current routing information can be filtered, so that the BGP equipment only sends the routing information with the changed routing sending attribute or which is not sent yet to the target neighbor equipment, and the problem that all routing information needs to be sent to the target neighbor equipment again when an outgoing routing strategy or an ACL and the like of the BGP equipment sending the routing information to the target neighbor equipment are changed is solved.
Optionally, the outbound routing policy includes, but is not limited to, any one or any combination of the following:
ORIGIN policy, AS _ PATH policy, NEXT _ HOP policy, MULTI _ EXIT _ DISC policy, LOCAL _ PREF policy, Community policy, Extcomunity policy.
Wherein, the ORIGIN of the route is indicated by the ORIGIN of the ORIGIN policy, which can be obtained from the inside of the autonomous domain, from the outside of the autonomous domain, or through other ways; AS _ PATH policy, i.e. a list of autonomous domains that the route passes through; NEXT _ HOP policy, i.e. NEXT HOP address of the route; the MULTI _ EXIT _ DISC strategy is that the routing with lower MED value is preferentially selected when routing selection is carried out, namely the weight of the routing from outside the autonomous domain; LOCAL _ PREF strategy, the preferred grade of the route in the autonomous domain, when selecting the route, the route with higher value is preferentially selected; community policies, i.e., Community properties; extcommunity policy, i.e., extending community attributes.
In an application example of the present application, the BGP networking shown in fig. 1 is taken as an example. Assume that the following 100 pieces of static routing information are configured in the RTA: 1.1.1.1/32, 1.1.1.2/32 up to 1.1.1.100/32. The static routing information is introduced into a BGP protocol on the RTA, the static routing information can be sent to BGP neighbor equipment RTB through the BGP protocol, and meanwhile, the RTB can configure a directional routing strategy on the RTA for controlling routing sending attributes when the static routing information is sent to the RTB. Assuming that the outbound routing policy configured by the static routing information includes a LOCAL _ PREF policy, and the current routing transmission attribute corresponding to the current routing information (1.1.1.1/32) is modified to be LOCAL-reference equal to 100 according to the configured LOCAL _ PREF routing policy, it can be known that the current routing transmission attribute corresponding to the current routing information (1.1.1.1/32) is: local-prediction is 100.
Step 202, judging whether the current mapping relation among the current routing information, the target neighbor information and the current routing sending attribute is matched with a pre-stored mapping relation; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
step 203, when the current mapping relation is not matched with the pre-stored mapping relation, sending the current routing information to the BGP neighbor device corresponding to the target neighbor information.
In the embodiment of the present application, after configuring the corresponding outgoing direction routing policy for the routing information, the mapping relationship between the routing information, the target neighbor information, and the preset routing sending attribute may be stored. The preset routing transmission attribute may represent a routing attribute when the routing information set when the direction routing policy is configured is transmitted to the target neighbor. When the current mapping relationship is not matched with the pre-stored mapping relationship, it may be determined that a route transmission attribute of the current routing information has changed, or the current routing information has not been transmitted to the target neighbor device, and the current routing information may be transmitted to the target neighbor device.
In an optional embodiment of the present application, it may be determined that the current mapping relationship and the pre-stored mapping relationship do not match through the following steps:
and when the mapping relation aiming at the target neighbor information does not exist in the pre-stored mapping relation, judging that the current mapping relation is not matched with the pre-stored mapping relation.
In a specific application, if the mapping relationship for the target neighbor information does not exist in the pre-stored mapping relationships, which indicates that the BGP device has not sent the current routing information to the target neighbor device, the current routing information may be sent to the target neighbor device.
In the first application example of the present application, the BGP networking shown in fig. 1 is still taken as an example. Assume that 100 pieces of static routing information are configured in the RTA, including: 1.1.1.1/32, 1.1.1.2/32 up to 1.1.1.100/32. After configuring the LOCAL _ PREF routing policy for the 100 pieces of static routing information, the mapping relationship between the routing information, the target neighbor information, and the preset routing sending attribute may be stored. Referring to table 1, a specific illustration of a mapping relationship between routing information, target neighbor information, and a preset routing attribute according to the present application is shown.
TABLE 1
Routing information Target neighbor information Preset routing delivery attributes
1.1.1.1/32 Neighbor RTB local-preference=100
1.1.1.2/32 Neighbor RTB local-preference=100
…… …… ……
1.1.1.100/32 Neighbor RTB local-preference=100
Assuming that the current routing information is 1.1.1.101/32, the target neighbor information is a neighbor RTB, and the current routing transmission attribute is local-reference equal to 100, by looking up the mapping relationship shown in table 1, where there is no mapping relationship matching the current routing information 1.1.1.101/32 and the target neighbor information neighbor RTB, it indicates that the BGP device has not transmitted the routing information to the neighbor RTB, and may transmit the routing information 1.1.1.101/32 to the RTB.
Optionally, after sending the current routing information to the target neighbor device, the BGP device may further newly create, in the pre-stored mapping relationship, a mapping relationship corresponding to the current routing information, the target neighbor information, and the current routing transmission attribute. Therefore, when the BGP device receives the current routing information the next time, the corresponding mapping relationship may be matched, and if the policy of the current routing information is not changed, the current routing information may not be sent to the target neighbor device any more, so as to reduce the network link load.
In the first application example, after the BGP device sends the routing information 1.1.1.101/32 to the target neighbor device (neighbor RTB), a corresponding mapping relationship may be newly established in table 1, and a specific illustration after a mapping relationship is newly added to table 1 is shown with reference to table 2.
TABLE 2
Figure BDA0001020861860000061
Figure BDA0001020861860000071
In another optional embodiment of the present application, it may be further determined that the current mapping relationship and the pre-stored mapping relationship do not match through the following steps:
when a mapping relation aiming at the target neighbor information exists in a pre-stored mapping relation, acquiring preset routing sending attributes corresponding to the current routing information and the target neighbor information from the pre-stored mapping relation;
and when the current routing sending attribute is inconsistent with the preset routing sending attribute, judging that the current mapping relation is not matched with the pre-stored mapping relation.
In a specific application, after the outbound routing policy is changed, a current routing sending attribute corresponding to current routing information obtained according to the changed outbound routing policy is also changed, and at this time, the current routing sending attribute is inconsistent with a pre-stored preset routing sending attribute, and it is determined that the current mapping relationship is not matched with the pre-stored mapping relationship. At this point, the current routing information may be sent to the target neighbor device.
In application example two of the present application, the BGP networking shown in fig. 1 is still taken as an example. As shown in table 1, it is assumed that the preset routing transmission attribute of the above 100 pieces of static routing information defaults to: the local-prediction is 100, the user modifies the outgoing direction routing strategy corresponding to the neighbor RTB, the routing sending attribute corresponding to the routing information 1.1.1.1/32 is modified into 200, and the outgoing direction routing strategy of other routing information keeps the default value unchanged.
When the RTA needs to send routing information to the neighbor RTB, taking routing information 1.1.1/32 as the current routing information as an example, according to the outgoing direction routing policy corresponding to the current routing information, the current routing sending attribute corresponding to the current routing information (1.1.1.1/32) can be obtained as follows: local-prediction is 200. And by looking up the mapping relationship shown in table 1 by the current routing information (1.1.1.1/32) and the target neighbor information (neighbor RTB), it can obtain that the corresponding preset routing transmission attribute is local-reference which is 100. Since the current routing transmission attribute is not consistent with the preset routing transmission attribute, it can be determined that the routing transmission attribute of the current routing information (1.1.1.1/32) is changed, and thus, the current routing information (1.1.1.1/32) can be transmitted to the target neighbor device (neighbor RTB). Because the route sending attribute of the other 99 pieces of route information is not changed, the 99 pieces of route information are not needed to be sent, so that the quantity of route information sent by BGP equipment to neighbor equipment can be greatly reduced, the route information sending efficiency can be improved, and the network link burden of transmitting the route information can be reduced.
In yet another optional embodiment of the present application, the method may further comprise:
and updating preset routing sending attributes corresponding to the current routing information and the target neighbor information according to the current routing sending attributes.
In the second application example, after the BGP device sends the current routing information (1.1.1.1/32) to the target neighbor device (neighbor RTB), since the routing attribute of the routing information has changed, the mapping relationship shown in table 1 may be updated, and the preset routing attribute corresponding to the routing information (1.1.1.1/32) is updated to local-prediction ═ 200. Referring to table 3, a detailed illustration of the updated table 1 is shown.
TABLE 3
Routing information Target neighbor information Preset routing delivery attributes
1.1.1.1/32 Neighbor RTB local-preference=200
1.1.1.2/32 Neighbor RTB local-preference=100
…… …… ……
1.1.1.100/32 Neighbor RTB local-preference=100
In this embodiment, the mapping relationship may specifically be a triple. In a specific application, a triple (referred to as a sending triple in this embodiment) may be established and maintained in the BGP device, where the triple may be used to filter current routing information that the BGP device needs to send to a target neighbor device, and record routing information that the BGP device has sent. The composition of the triplet may specifically be as follows: < routing information, target neighbor information, preset routing transmission attribute >.
In an application example three of the present application, as shown in fig. 1, assuming that the preset routing transmission attribute of all routing information configured on the RTA and sent to the RTB is attribute a, the following 100 sending triples may be stored on the RTA: <1.1.1.1/32, neighbor RTB, Attribute A >, <1.1.1.2/32, neighbor RTB, Attribute A > up to <1.1.1.100/32, neighbor RTB, Attribute A >. And the outbound routing policy of the RTA sending the routing information to the RTB changes, for example, the routing sending attribute corresponding to the routing information 1.1.1.1/32 is modified to attribute B.
Taking the current routing information as 1.1.1.1/32 as an example, the current routing sending attribute corresponding to the current routing information (1.1.1.1/32) obtained according to the modified outgoing direction routing policy is attribute B. And inquiring in the sending triple according to the current routing information (1.1.1.1/32) and the target neighbor information (neighbor RTB) to obtain that the corresponding preset routing sending attribute is attribute A, if the current routing sending attribute of the current routing information (1.1.1.1/32) is not consistent with the preset routing sending attribute, the current routing information (1.1.1.1/32) can be sent to the neighbor RTB. Next, the next piece of routing information (e.g., 1.1.1.2/32) is used as the current routing information to perform the above operation.
After acquiring a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information, taking the current routing information and target neighbor information as query keywords to query in an existing sending triple. If there is no matching sending triple, which indicates that the BGP device has not sent the current routing information to the target neighbor device, the BGP device may send the current routing information to the target neighbor device. After sending, a corresponding sending triplet may be newly created according to the current routing information, the target neighbor information, and the current routing sending attribute, for example, the following sending triplets are newly created: <1.1.1.1/32, neighbor RTB, Attribute B >, which indicates that the BGP device has sent routing information including Attribute B1.1.1/32 to neighbor RTB. And if the BGP equipment sends the routing information to the neighbor RTB again, if the routing sending attribute of the routing information 1.1.1.1/32 still keeps the attribute B unchanged, the BGP equipment does not need to send the routing information to the neighbor RTB again.
It is to be understood that the above description of representing the mapping relationship by using the triplet is only an application example of the present application, and the present application does not limit the specific form of the mapping relationship.
To sum up, according to the outbound routing policy corresponding to the current routing information of the target neighbor information, the embodiment of the present application obtains the current routing sending attribute corresponding to the current routing information, and by querying the mapping relationship stored in advance, when the current routing information, the target neighbor information, and the current mapping relationship between the current routing sending attributes are not matched with the mapping relationship stored in advance, it may be determined that the routing sending attribute of the current routing information has changed, or the current routing information has not been sent to the target neighbor device, and then the current routing information may be sent to the target neighbor device. Therefore, the embodiment of the application can filter the current routing information which needs to be sent to the target neighbor device, so that the BGP device only sends the routing information with the changed routing sending attribute to the target neighbor device instead of sending all the routing information, thereby improving the efficiency of sending the routing information and reducing the network link burden of transmitting the routing information.
In another embodiment of the present application, when the current mapping relationship is not matched with the pre-stored mapping relationship, the current routing information may be added to a to-be-sent list and then packaged and sent, so as to improve the efficiency of sending the routing information, referring to fig. 3, a flowchart of steps of a routing information processing method according to another embodiment of the present application is shown, and specifically, the method may include the following steps:
301, obtaining a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information of target neighbor information;
step 302, judging whether the current mapping relation among the current routing information, the target neighbor information and the current routing sending attribute is matched with a pre-stored mapping relation; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
step 303, adding the current routing information into a to-be-sent list when the current mapping relationship is not matched with the pre-stored mapping relationship;
and step 304, sending the current routing information in the list to be sent to the BGP neighbor device corresponding to the target neighbor information.
In this embodiment of the present application, when the BGP device needs to send routing information to a target neighbor device, the routing information to be sent may be added to a list to be sent corresponding to the target neighbor device. The list to be sent may be a linked list or a queue, and the specific form of the list to be sent is not limited in the embodiment of the present application. Taking a linked List as an example, assuming that the BGP device RTA needs to send routing information to the target neighbor device RTB and the RTC, a linked List1 may be established in the RTA, where the List1 may include routing information to be sent to the RTB, and a linked List2 may be established, and the List2 may include routing information to be sent to the RTC.
Therefore, after the BGP device filters the current routing information that needs to be sent to the target neighbor device, the filtered current routing information to be sent is added to the list to be sent, and then the current routing information in the list to be sent can be packed and sent to the target neighbor device. Specifically, when the current mapping relationship is not matched with the pre-stored mapping relationship, the current routing information may be added to a to-be-sent list, and the current routing information in the to-be-sent list is packed into an update message, and the BGP device sends the packed update message to the target neighbor device without sending each piece of routing information one by one, so as to improve the efficiency of sending the routing information.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Corresponding to the embodiment of the routing information processing method, the application also provides an embodiment of the routing information processing device. Referring to fig. 4, an embodiment of the routing information processing apparatus 60 of the present application may be applied to a BGP device for processing routing information. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, as a logical means, the apparatus is formed by reading, by the processor 10 of the BGP device, corresponding computer program instructions in the non-volatile memory 50 into the memory 40 for execution. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a BGP device where the routing information processing apparatus 60 is located in this application is shown, except for the processor 10, the internal bus 20, the network interface 30, the memory 40, and the nonvolatile memory 50 shown in fig. 4, the BGP device where the apparatus is located in the embodiment may also include other hardware according to its actual function, which is not described again.
Referring to fig. 5, a block diagram of a routing information processing apparatus according to an embodiment of the present application is shown, where the apparatus is applied to a BGP device. In this embodiment, the apparatus may specifically include:
a first obtaining module 501, configured to obtain, according to an outgoing direction routing policy corresponding to current routing information of target neighbor information, a current routing sending attribute corresponding to the current routing information;
a judging module 502, configured to judge whether a current mapping relationship between the current routing information, the target neighbor information, and the current routing sending attribute matches a pre-stored mapping relationship; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
a sending module 503, configured to send the current routing information to the BGP neighbor device corresponding to the target neighbor information when the current mapping relationship is not matched with the pre-stored mapping relationship.
In an optional embodiment of the present application, the determining module may be further configured to determine that the current mapping relationship is not matched with the pre-stored mapping relationship when the mapping relationship for the target neighbor information does not exist in the pre-stored mapping relationship.
In another optional embodiment of the present application, the apparatus may further include:
and the new establishing module is used for establishing a mapping relation corresponding to the current routing information, the target neighbor information and the current routing sending attribute in the pre-stored mapping relation.
In yet another optional embodiment of the present application, the apparatus may further include:
a second obtaining module, configured to obtain, when a mapping relationship for the target neighbor information exists in a pre-stored mapping relationship, the current routing information and a preset routing sending attribute corresponding to the target neighbor information from the pre-stored mapping relationship;
the determining module may be further configured to determine that the current mapping relationship is not matched with the pre-stored mapping relationship when the current routing sending attribute is not consistent with the preset routing sending attribute.
In yet another optional embodiment of the present application, the apparatus may further include:
and the updating module is used for updating the preset routing sending attribute corresponding to the current routing information and the target neighbor information according to the current routing sending attribute in the pre-stored mapping relation.
In yet another optional embodiment of the present application, the apparatus may further include:
the adding module is used for adding the current routing information into a list to be sent when the current mapping relation is not matched with the pre-stored mapping relation;
the sending module is further configured to send the current routing information in the to-be-sent list to the BGP neighbor device corresponding to the target neighbor information.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the attached claims
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
The foregoing describes in detail a method and an apparatus for processing routing information provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A method for processing routing information is applied to BGP equipment, and is characterized in that the method comprises the following steps:
acquiring a current routing sending attribute corresponding to current routing information according to an outgoing direction routing strategy corresponding to the current routing information aiming at target neighbor information; the current routing transmission attribute is a routing attribute which is transmitted to the outside after the routing information of the BGP equipment is filtered by a current outgoing direction routing strategy; the current routing information is routing information which is changed in routing transmission attribute or has not been transmitted to BGP neighbor equipment corresponding to the target neighbor information;
judging whether the current routing information, the target neighbor information and the current mapping relation between the current routing sending attributes are matched with a pre-stored mapping relation or not; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
and when the current mapping relation is not matched with the pre-stored mapping relation, sending the current routing information to BGP neighbor equipment corresponding to the target neighbor information.
2. The method of claim 1, wherein the current mapping relationship and the pre-stored mapping relationship are determined not to match by:
and when the mapping relation aiming at the target neighbor information does not exist in the pre-stored mapping relation, judging that the current mapping relation is not matched with the pre-stored mapping relation.
3. The method of claim 2, further comprising:
and in the pre-stored mapping relationship, establishing a mapping relationship corresponding to the current routing information, the target neighbor information and the current routing sending attribute.
4. The method of claim 1, wherein the current mapping relationship and the pre-stored mapping relationship are determined not to match by:
when a mapping relation aiming at the target neighbor information exists in a pre-stored mapping relation, acquiring preset routing sending attributes corresponding to the current routing information and the target neighbor information from the pre-stored mapping relation;
and when the current routing sending attribute is inconsistent with the preset routing sending attribute, judging that the current mapping relation is not matched with the pre-stored mapping relation.
5. The method of claim 4, further comprising:
and updating preset routing sending attributes corresponding to the current routing information and the target neighbor information according to the current routing sending attribute in the pre-stored mapping relation.
6. The method according to any one of claims 1 to 5, further comprising:
when the current mapping relation is not matched with the pre-stored mapping relation, adding the current routing information into a list to be sent;
the step of sending the current routing information to the BGP neighbor device corresponding to the target neighbor information includes:
and sending the current routing information in the list to be sent to BGP neighbor equipment corresponding to the target neighbor information.
7. A routing information processing apparatus applied to a BGP device, comprising:
the first acquisition module is used for acquiring the sending attribute of the current route corresponding to the current route information according to the outgoing direction route strategy corresponding to the current route information aiming at the target neighbor information; the current routing transmission attribute is a routing attribute which is transmitted to the outside after the routing information of the BGP equipment is filtered by a current outgoing direction routing strategy; the current routing information is routing information which is changed in routing transmission attribute or has not been transmitted to BGP neighbor equipment corresponding to the target neighbor information;
the judging module is used for judging whether the current mapping relation among the current routing information, the target neighbor information and the current routing sending attribute is matched with the pre-stored mapping relation or not; the pre-stored mapping relationship comprises a mapping relationship among routing information, target neighbor information and a preset routing sending attribute;
and a sending module, configured to send the current routing information to a BGP neighbor device corresponding to the target neighbor information when the current mapping relationship is not matched with the pre-stored mapping relationship.
8. The apparatus according to claim 7, wherein the determining module is further configured to determine that the current mapping relationship does not match the pre-stored mapping relationship when there is no mapping relationship for the target neighbor information in the pre-stored mapping relationship.
9. The apparatus of claim 8, further comprising:
and the new establishing module is used for establishing a mapping relation corresponding to the current routing information, the target neighbor information and the current routing sending attribute in the pre-stored mapping relation.
10. The apparatus of claim 7, further comprising:
a second obtaining module, configured to obtain, when a mapping relationship for the target neighbor information exists in a pre-stored mapping relationship, the current routing information and a preset routing sending attribute corresponding to the target neighbor information from the pre-stored mapping relationship;
the judging module is further configured to judge that the current mapping relationship is not matched with the pre-stored mapping relationship when the current routing sending attribute is not consistent with the preset routing sending attribute.
11. The apparatus of claim 10, further comprising:
and the updating module is used for updating the preset routing sending attribute corresponding to the current routing information and the target neighbor information according to the current routing sending attribute in the pre-stored mapping relation.
12. The apparatus of any of claims 7 to 11, further comprising:
the adding module is used for adding the current routing information into a list to be sent when the current mapping relation is not matched with the pre-stored mapping relation;
the sending module is further configured to send the current routing information in the to-be-sent list to the BGP neighbor device corresponding to the target neighbor information.
CN201610439432.1A 2016-06-17 2016-06-17 Routing information processing method and device Active CN106059917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610439432.1A CN106059917B (en) 2016-06-17 2016-06-17 Routing information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610439432.1A CN106059917B (en) 2016-06-17 2016-06-17 Routing information processing method and device

Publications (2)

Publication Number Publication Date
CN106059917A CN106059917A (en) 2016-10-26
CN106059917B true CN106059917B (en) 2020-01-07

Family

ID=57169289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610439432.1A Active CN106059917B (en) 2016-06-17 2016-06-17 Routing information processing method and device

Country Status (1)

Country Link
CN (1) CN106059917B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070787B (en) * 2017-04-25 2020-10-27 新华三技术有限公司 Default route revocation method and device
CN107547411B (en) * 2017-06-30 2021-01-08 新华三技术有限公司 Route processing method and device, electronic equipment and machine-readable storage medium
CN111385246B (en) * 2018-12-28 2021-09-21 华为技术有限公司 Secure route identification method and device
CN115720207A (en) * 2020-02-28 2023-02-28 华为技术有限公司 Method, network equipment and system for updating routing attribute
CN113438159B (en) * 2020-03-23 2023-04-18 华为技术有限公司 Transmission method and device of segmented routing strategy and network transmission system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848157A (en) * 2010-05-14 2010-09-29 北京星网锐捷网络技术有限公司 Method for controlling generation of routing update message and network equipment thereof
CN104038427A (en) * 2014-06-30 2014-09-10 杭州华三通信技术有限公司 Router renewing method and device
CN104486228A (en) * 2014-12-25 2015-04-01 杭州华三通信技术有限公司 Route updating method and route updating device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848157A (en) * 2010-05-14 2010-09-29 北京星网锐捷网络技术有限公司 Method for controlling generation of routing update message and network equipment thereof
CN104038427A (en) * 2014-06-30 2014-09-10 杭州华三通信技术有限公司 Router renewing method and device
CN104486228A (en) * 2014-12-25 2015-04-01 杭州华三通信技术有限公司 Route updating method and route updating device

Also Published As

Publication number Publication date
CN106059917A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN106059917B (en) Routing information processing method and device
US9887902B2 (en) Traffic switching method, device, and system
US8817798B2 (en) Constraining topology size and recursively calculating routes in large networks
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
US10333790B2 (en) Method and system for selective route download in network devices
CN113794609A (en) Home gateway and method for forwarding service thereof
CN114172842B (en) Data transmission processing method, device, equipment and readable storage medium
CN104158736B (en) A kind of method and apparatus for determining next-hop, issuing routing iinformation
US10887216B2 (en) Managing default route advertisements by an area border router in an open shortest path first network
CN106209671A (en) A kind of method and device determining that routing overhead is shared
CN108259205B (en) Route publishing method and network equipment
US20200336385A1 (en) BGP Logical Topology Generation Method, and Device
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
US20190334814A1 (en) Path establishment method and device, and network node
CN102833172B (en) Route processing method and routing forwarding equipment
CN113194019B (en) Data transmission control method and electronic equipment
WO2021259111A1 (en) Message processing method and device, and computer readable storage medium
CN106789757B (en) Access control method and device
CN111917868A (en) Addressing method and device for block chain node, routing equipment and storage medium
WO2015145953A1 (en) Communication terminal, communication method, and program-containing storage medium
CN108462639B (en) Flow transmission control method and system in autonomous system
CN108259292B (en) Method and device for establishing tunnel
EP3920485A1 (en) Protocol processing method and apparatus, and storage medium
CN114301913B (en) Request processing method and system
JP7091847B2 (en) Data distribution system, data distribution method, communication control device, communication control program, distribution source node, distribution processing program, receiving node, and receiving processing program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant