CN112688874A - Flow optimization control method, device, equipment and storage medium - Google Patents
Flow optimization control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112688874A CN112688874A CN201910995299.1A CN201910995299A CN112688874A CN 112688874 A CN112688874 A CN 112688874A CN 201910995299 A CN201910995299 A CN 201910995299A CN 112688874 A CN112688874 A CN 112688874A
- Authority
- CN
- China
- Prior art keywords
- route
- bgp
- controller
- bgp flowspec
- repeater
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a flow optimization control method, a flow optimization control device, flow optimization control equipment and a storage medium. Wherein, the method comprises the following steps: acquiring a route holding strategy, wherein the route holding strategy is used for correspondingly adjusting the holding time of a route after a border gateway protocol flow specification BGP Flowspec neighbor is deleted; obtaining a tuning route sent by a controller, wherein the tuning route is carried by a BGP Flowspec message sent by the controller; after the BGP Flowspec neighbor is determined to be deleted, maintaining the corresponding optimized route based on the corresponding holding time of the corresponding optimized route; and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow. The embodiment of the invention can avoid the premature failure of the tuning strategy, thereby enhancing the tuning reliability in the RR + tuning scene and ensuring the flow tuning effect.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling traffic optimization.
Background
In the related art, in order to schedule traffic, a BGP (Border Gateway Protocol) routing policy is generally adjusted manually, however, a manual adjustment scheme cannot be adjusted in real time, and problems of long time consumption, complex configuration and maintenance, and the like exist, so that an RR + technology appears.
RR + is an abbreviation of enhanced RR (Route Reflector). RR + adds SDN (software defined network) controller in IP (Internet protocol) Core (Core) network, realizes centralized control through the controller, and intelligent flow is transferred and is optimized, has broken the traffic engineering problem of traditional IP network RR.
The controller controls the forwarding path of the repeater by issuing a BGP traffic Specification (Flow Specification, abbreviated as Flowspec) route, and adjusts the traffic next hop according to the traffic quintuple (i.e., a set of five elements, i.e., a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol), traffic delay jitter, and other contents.
Once a controller or a link between the controller and a repeater fails, a BGP Flowspec neighbor between the controller and the repeater is deleted, a corresponding Flowspec tuning route is revoked, a corresponding forwarding flow is switched back to a previous forwarding path for forwarding, a tuning strategy fails, which is not consistent with a user tuning idea, and thus, the forwarding of the current network flow is affected, and traffic congestion and traffic packet loss are easily caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling flow optimization, which aim to improve the effect of flow optimization.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a flow optimization control method, which is applied to a repeater and comprises the following steps:
acquiring a route holding strategy, wherein the route holding strategy is used for correspondingly adjusting the holding time of a route after a border gateway protocol traffic specification (BGP Flowspec) neighbor is deleted;
obtaining a tuning route sent by a controller, wherein the tuning route is carried by a BGP Flowspec message sent by the controller;
after the BGP Flowspec neighbor is determined to be deleted, maintaining the corresponding optimized route based on the corresponding holding time of the corresponding optimized route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
The embodiment of the invention also provides a flow optimization control method, which is applied to a controller and comprises the following steps:
configuring a route keeping strategy, wherein the route keeping strategy is used for determining that a repeater establishing a border gateway protocol traffic specification (BGP Flowspec) neighbor with the controller correspondingly optimizes the keeping time length of the route after the BGP Flowspec neighbor is deleted;
sending a BGP Flowspec message to a repeater based on the route keeping strategy, wherein the BGP Flowspec message comprises the tuned route and a keeping time length corresponding to the tuned route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
The embodiment of the invention also provides a flow tuning control device, which is applied to a repeater, and the device comprises:
the first acquisition module is used for acquiring a route maintenance strategy, and the route maintenance strategy is used for correspondingly adjusting and optimizing the maintenance duration of a route after a border gateway protocol flow specification BGP Flowspec neighbor is deleted;
the second obtaining module is used for obtaining a tuned and optimized route sent by the controller, and the tuned and optimized route is carried by a BGP Flowspec message sent by the controller;
the route updating module is used for maintaining the corresponding tuned route based on the corresponding holding time of the corresponding tuned route after determining that the BGP Flowspec neighbor is deleted;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
The embodiment of the invention also provides a flow optimizing control device, which is applied to a controller, and the device comprises:
a configuration module, configured to configure a route maintenance policy, where the route maintenance policy is used to determine that a repeater that establishes a BGP flowpec neighbor with the controller establishes a BGP flowpec traffic specification, and adjusts the maintenance duration of the route accordingly after the BGP flowpec neighbor is deleted;
a sending module, configured to send a BGP Flowspec message to a forwarder based on the route holding policy, where the BGP Flowspec message includes the tuned route and a holding duration corresponding to the tuned route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
An embodiment of the present invention further provides a repeater, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, is adapted to perform the steps of the method of an embodiment of the invention applied to a transponder.
An embodiment of the present invention further provides a controller, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, is adapted to perform the steps of the method of an embodiment of the invention as applied to a controller.
The embodiment of the present invention further provides a storage medium, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method according to any embodiment of the present invention are implemented.
According to the technical scheme provided by the embodiment of the invention, through the route keeping strategy, the repeater can maintain the preset keeping time of the corresponding tuning route after the BGP Flowspec neighbor is deleted, and the premature failure of the tuning strategy can be avoided, so that the tuning reliability under an RR + tuning scene is enhanced, and the effect of flow tuning is ensured.
Drawings
Fig. 1 is a schematic flow chart of a flow rate tuning control method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a flow rate tuning control method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a flow rate tuning control device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a flow rate optimizing control device according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a repeater according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a controller according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In the related art, after BGP Flowspec neighbors between the controller and the forwarder are deleted, the corresponding tuned and optimized route is cancelled, and the corresponding forwarding traffic is switched back to the previous forwarding path for forwarding, that is, the tuning strategy fails, which affects the current network traffic forwarding and easily causes traffic congestion and traffic packet loss.
Based on this, in various embodiments of the present invention, through the route keeping policy, the repeater may maintain the preset keeping duration of the corresponding tuning route after the BGP Flowspec neighbor is deleted, which may avoid premature failure of the tuning policy, thereby enhancing the tuning reliability in the RR + tuning scenario and ensuring the effect of traffic tuning.
An embodiment of the present invention provides a traffic optimization control method, which is applied to a repeater, and as shown in fig. 1, the method includes:
here, the tuned route is used to instruct the repeater to modify forwarding path information of traffic, so that optimal scheduling of traffic or network security can be achieved. For example, the traffic congestion can be avoided by correcting the forwarding path information of the traffic, thereby reducing the delay of traffic transmission and reducing the loss of traffic data packets; and by correcting the forwarding path information of the flow, the network security control of the SDN can be realized based on BGP Flowspec, and the network security is improved.
102, acquiring a tuning route sent by a controller, wherein the tuning route is carried by a BGP Flowspec message sent by the controller;
here, the controller may create a BGP Flowspec message, which may have various implementations, may be defined by the user himself, or may be defined by the controller itself. For example, a user may configure a Flowspec route (i.e., a tuned route) on the controller, or the controller and the network traffic analysis device cooperate to automatically generate the Flowspec route. For example, a Flowspec route is generated that prevents Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks. BGP Flowspec is a standard routing protocol that provides mechanisms to mitigate DDoS attacks if the routing infrastructure is properly integrated with the local DDoS solution.
103, after determining that the BGP Flowspec neighbor is deleted, maintaining the corresponding tuned and optimized route based on the corresponding holding time of the corresponding tuned and optimized route;
here, after the BGP Flowspec neighborhood is established between the repeater and the controller, if the controller or a link between the repeater and the controller fails, the BGP Flowspec neighborhood between the repeater and the controller is deleted. In the embodiment of the invention, the repeater can maintain the corresponding optimized route holding duration based on the route holding strategy corresponding to the BGP Flowspec neighbor.
According to the embodiment of the invention, through the route holding strategy, the repeater can maintain the preset holding time of the corresponding tuning route after the BGP Flowspec neighbor is deleted, and the premature failure of the tuning strategy can be avoided, so that the tuning reliability under an RR + tuning scene is enhanced, and the effect of flow tuning is ensured.
In this embodiment of the present invention, the obtaining of the route holding policy includes:
determining the route maintenance strategy based on a BGP Flowspec message sent by the controller; alternatively, the route maintenance policy is determined based on configuration information of the forwarder.
In an embodiment, the determining the route maintenance policy based on the BGP Flowspec message sent by the controller includes: and determining the holding time length based on the encoding information of the reserved field of the BGP Flowspec message.
In an application example, the BGP Flowspec message sent by the controller may be set according to an NLRI-TYPE in RFC5575 that defines Flowspec routing, where a reserved field exists in TYPE 12 definition, and a preset holding duration is determined by encoding through the reserved field. For example, if the field is all 0, it indicates that the corresponding route is not reserved, if the field is all 1, it indicates that the route is permanently reserved, if the field is any specific value from 0 to 1110, it indicates how long the route is withdrawn after the corresponding neighbor down (deleted), and illustratively, if the field is 0010, it indicates that the route is reserved for 2 minutes after the BGP flowepc neighbor down.
In an embodiment, the forwarder may determine the route keeping policy based on configuration information of the forwarder itself.
In practical application, the forwarder may set the route retention time after the neighbor down for a route sent by a specific BGP Flowspec neighbor, and the specific command is as follows:
[~sys]bgp 200
[sys-bgp]peer 20.1.1.2as-number 200
[sys-bgp]ipv4-family flow
[sys-bgp-af-ipv4-flow]peer 20.1.1.2PDDR-Time(1-65535or Permanent)
the PDDR-Time is an optional parameter, when the PDDR-Time is not configured, the corresponding route is immediately deleted after the neighbor down is configured as Permanent, the corresponding route of the neighbor down is not deleted, the PDDR-Time is configured as a specific numerical value, and the PDDR-Time indicates that the corresponding neighbor route is deleted after the neighbor down is set for a Time length.
In an embodiment, the method further comprises:
and after the BGP Flowspec neighbor is determined to be reestablished, updating the tuned route based on the newly received BGP Flowspec message.
After the repeater is UP (reestablished) in the BGP Flowspec neighbor, the routing table may be refreshed according to the Flowspec route carried in the newly received BGP Flowspec message.
An embodiment of the present invention further provides a flow rate tuning control method, which is applied to a controller, and as shown in fig. 2, the method includes:
Here, the tuned route is used to instruct the repeater to modify forwarding path information of traffic, so that optimal scheduling of traffic or network security can be achieved. For example, the traffic congestion can be avoided by correcting the forwarding path information of the traffic, thereby reducing the delay of traffic transmission and reducing the loss of traffic data packets; and by correcting the forwarding path information of the flow, the network security control of the SDN can be realized based on BGP Flowspec, and the network security is improved.
In practical application, the controller may create a BGP Flowspec message, which may have various implementation manners, may be defined by the user himself, or may be defined by the controller from the line. For example, a user may configure a Flowspec route (i.e., a tuned route) on the controller, or the controller and the network traffic analysis device cooperate to automatically generate the Flowspec route. For example, a Flowspec route is generated that prevents Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks. BGP Flowspec is a standard routing protocol that provides mechanisms to mitigate DDoS attacks if the routing infrastructure is properly integrated with the local DDoS solution.
In one embodiment, the configuring the route maintenance policy includes: setting the hold duration in a reserved field in the BGP Flowspec message.
In an application example, the BGP Flowspec message sent by the controller may be set according to an NLRI-TYPE in RFC5575 that defines Flowspec routing, where a reserved field exists in TYPE 12 definition, and a preset holding duration is determined by encoding through the reserved field. For example, if the field is all 0, it indicates that the corresponding route is not reserved, if the field is all 1, it indicates that the route is permanently reserved, if the field is any specific value from 0 to 1110, it indicates how long the route is withdrawn after the corresponding neighbor down (deleted), and illustratively, if the field is 0010, it indicates that the route is reserved for 2 minutes after the BGP flowepc neighbor down.
In an embodiment, the method further comprises:
and after determining that the BGP Flowspec neighbor is reestablished, sending a newly generated BGP Flowspec message to the repeater.
The controller may send a newly generated BGP Flowspec message to the forwarder after determining that the BGP Flowspec adjacency is reestablished with the forwarder, so as to instruct the forwarder to refresh the routing information.
The present invention will be described in further detail with reference to the following application examples.
The first application embodiment:
in the embodiment of the application, the controller issues the specific Flowsepc route to the repeater by expanding the BGP Flowspec protocol, and the route revocation time can be set after the fault occurs. The method specifically comprises the following steps:
step 1: the controller and the repeater establish a BGP Flowspec neighbor;
step 2: configuring a corresponding transponder tuning route keeping strategy (comprising permanent reservation, specific reservation time and non-reservation) at the controller;
and step 3: the controller issues a specific tuning route to the repeater, and issues the tuning route according to the protocol extension field;
and 4, step 4: the repeater receives a specific protocol message and corresponds to a routing processing strategy according to a specific field identifier;
and 5: the controller and the repeater BGP Flowspc neighbor down operate the corresponding Flowspc routing table according to the preset retention strategy by the corresponding routing, and keep the permanent retention;
step 6: after the controller and the forwarder BGP Flowspc neighbor UP, the routing table is updated according to the latest strategy of the protocol message.
Application example two:
in this application embodiment, the forwarder sets the route holding time after the neighbor failure for a specific Flowspec neighbor route. The method specifically comprises the following steps:
step 1: the controller and the repeater establish a BGP Flowspec neighbor, and the repeater configures a route keeping strategy corresponding to the neighbor through a command line;
step 2: the controller issues a specific tuning route to the repeater, and the repeater corresponds to a route processing strategy according to the command identification;
and step 3: the controller and the repeater BGP Flowspc neighbor down operate the corresponding Flowspc routing table according to the preset retention strategy by the corresponding routing, and keep the permanent retention;
and 4, step 4: after controllers and forwarders BGP Flowspc neighbors UP, the routing tables are refreshed according to protocol messages.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a traffic optimization control device, which is disposed in a repeater, and as shown in fig. 3, the traffic optimization control device includes:
a first obtaining module 301, configured to obtain a route keeping policy, where the route keeping policy is used to determine that a keeping duration of a route is adjusted correspondingly after a BGP Flowspec neighbor is deleted;
a second obtaining module 302, configured to obtain a tuned and optimized route sent by a controller, where the tuned and optimized route is carried by a BGP Flowspec message sent by the controller;
a route updating module 303, configured to maintain the corresponding tuned route based on a holding duration corresponding to the corresponding tuned route after determining that the BGP Flowspec neighbor is deleted;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
In some embodiments, the first obtaining module 301 is specifically configured to:
determining the route maintenance strategy based on a BGP Flowspec message sent by the controller; alternatively, the route maintenance policy is determined based on configuration information of the forwarder.
In some embodiments, the first obtaining module 301 is specifically configured to: and determining the holding time length based on the encoding information of the reserved field of the BGP Flowspec message.
In some embodiments, the route update module 303 is further configured to: and after the BGP Flowspec neighbor is determined to be reestablished, updating the tuned route based on the newly received BGP Flowspec message.
In practical applications, the first obtaining module 301, the second obtaining module 302, and the route updating module 303 may be implemented by a processor in the traffic optimization control device. Of course, the processor needs to run a computer program in memory to implement its functions.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a flow rate tuning control device, which is applied to a controller, and as shown in fig. 4, the flow rate tuning control device includes:
a configuration module 401, configured to configure a route keeping policy, where the route keeping policy is used to determine that a repeater that establishes a BGP flowpec neighbor with the controller establishes a border gateway protocol traffic specification, and after the BGP flowpec neighbor is deleted, correspondingly adjusts a keeping duration of a route;
a sending module 402, configured to send a BGP Flowspec message to a forwarder based on the route maintaining policy, where the BGP Flowspec message includes the tuned route and a maintaining duration corresponding to the tuned route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
In some embodiments, the configuration module 401 is specifically configured to: setting the hold duration in a reserved field in the BGP Flowspec message.
In some embodiments, the sending module 402 is further configured to: and after determining that the BGP Flowspec neighbor is reestablished, sending a newly generated BGP Flowspec message to the repeater.
In practical applications, the configuration module 401 and the sending module 402 can be implemented by a processor in the traffic optimization control device. Of course, the processor needs to run a computer program in memory to implement its functions.
It should be noted that: in the flow rate optimization control device provided in the above embodiment, when performing flow rate optimization control, only the division of the above program modules is taken as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the above described processing. In addition, the flow rate tuning and optimizing control device and the flow rate tuning and optimizing control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides a repeater. Fig. 5 shows only an exemplary structure of the repeater, not the entire structure, and a part or the entire structure shown in fig. 5 may be implemented as necessary.
As shown in fig. 5, the repeater 500 provided in the embodiment of the present invention includes: at least one processor 501, memory 502, and at least one network interface 503. The various components in the repeater 500 are coupled together by a bus system 504. It will be appreciated that the bus system 504 is used to enable communications among the components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the repeater 500. Examples of such data include: any computer program for operating on the repeater 500.
The flow rate tuning control method disclosed by the embodiment of the invention can be applied to the processor 501, or can be implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the traffic optimization control method may be implemented by hardware integrated logic circuits or instructions in software in the processor 501. The Processor 501 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the traffic optimization control method provided in the embodiment of the present invention in combination with the hardware thereof.
In an exemplary embodiment, the repeater may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), FPGAs, general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a controller. Fig. 6 shows only an exemplary structure of the repeater, not the entire structure, and a part or the entire structure shown in fig. 6 may be implemented as necessary.
As shown in fig. 6, a controller 600 according to an embodiment of the present invention includes: at least one processor 601, memory 602, and at least one network interface 603. The various components in the controller 600 are coupled together by a bus system 604. It will be appreciated that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 6.
The memory 602 in the embodiments of the present invention is used to store various types of data to support the operation of the controller 600. Examples of such data include: any computer program for operating on the controller 600.
The flow rate tuning control method disclosed by the embodiment of the invention can be applied to the processor 601, or can be implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the traffic optimization control method may be implemented by hardware integrated logic circuits or instructions in software in the processor 601. The Processor 601 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 601 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the traffic optimization control method provided by the embodiment of the present invention in combination with the hardware thereof.
In an exemplary embodiment, the controller 600 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components for performing the aforementioned methods.
It will be appreciated that the memories 502, 602 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the embodiment of the present invention further provides a storage medium, that is, a computer storage medium, which may be specifically a computer readable storage medium, for example, including memories 502 and 602 storing computer programs, which may be executed by processors 501 and 601 to complete the steps of the method according to the embodiment of the present invention. The computer readable storage medium may be a ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM, among others.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (12)
1. A traffic optimization control method is applied to a repeater and comprises the following steps:
acquiring a route holding strategy, wherein the route holding strategy is used for correspondingly adjusting the holding time of a route after a border gateway protocol flow specification BGP Flowspec neighbor is deleted;
obtaining a tuning route sent by a controller, wherein the tuning route is carried by a BGP Flowspec message sent by the controller;
after the BGP Flowspec neighbor is determined to be deleted, maintaining the corresponding optimized route based on the corresponding holding time of the corresponding optimized route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
2. The method of claim 1, wherein obtaining the route maintenance policy comprises:
determining the route maintenance strategy based on a BGP Flowspec message sent by the controller; alternatively, the first and second electrodes may be,
determining the route maintenance policy based on configuration information of the forwarder.
3. The method of claim 2, wherein determining the route maintenance policy based on a BGP Flowspec message sent by the controller comprises:
and determining the holding time length based on the encoding information of the reserved field of the BGP Flowspec message.
4. The method of claim 1, further comprising:
and after the BGP Flowspec neighbor is determined to be reestablished, updating the tuned route based on the newly received BGP Flowspec message.
5. A flow optimization control method is applied to a controller and comprises the following steps:
configuring a route keeping strategy, wherein the route keeping strategy is used for determining that a repeater establishing a BGP (border gateway protocol) flow specification BGP Flowspec neighbor with the controller correspondingly optimizes the keeping time length of the route after the BGP Flowspec neighbor is deleted;
sending a BGP Flowspec message to a repeater based on the route keeping strategy, wherein the BGP Flowspec message comprises the tuned route and a keeping time length corresponding to the tuned route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
6. The method of claim 5, wherein the configuring the route maintenance policy comprises:
setting the hold duration in a reserved field in the BGP Flowspec message.
7. The method of claim 5, further comprising:
and after determining that the BGP Flowspec neighbor is reestablished, sending a newly generated BGP Flowspec message to the repeater.
8. A traffic optimization control apparatus, applied to a repeater, the apparatus comprising:
the first acquisition module is used for acquiring a route maintenance strategy, and the route maintenance strategy is used for correspondingly adjusting and optimizing the maintenance duration of a route after a border gateway protocol flow specification BGP Flowspec neighbor is deleted;
the second obtaining module is used for obtaining a tuned and optimized route sent by the controller, and the tuned and optimized route is carried by a BGP Flowspec message sent by the controller;
the route updating module is used for maintaining the corresponding tuned route based on the corresponding holding time of the corresponding tuned route after determining that the BGP Flowspec neighbor is deleted;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
9. A flow rate adjusting and controlling device is applied to a controller, and the device comprises:
a configuration module, configured to configure a route maintenance policy, where the route maintenance policy is used to determine that a repeater that establishes a BGP flowpec neighbor with the controller establishes a BGP flowpec traffic specification, and adjusts the maintenance duration of the route accordingly after the BGP flowpec neighbor is deleted;
a sending module, configured to send a BGP Flowspec message to a forwarder based on the route holding policy, where the BGP Flowspec message includes the tuned route and a holding duration corresponding to the tuned route;
and the tuning route is used for indicating the repeater to correct the forwarding path information of the flow.
10. A repeater, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 4.
11. A controller, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein,
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 5 to 7.
12. A storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910995299.1A CN112688874B (en) | 2019-10-18 | 2019-10-18 | Flow optimization control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910995299.1A CN112688874B (en) | 2019-10-18 | 2019-10-18 | Flow optimization control method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112688874A true CN112688874A (en) | 2021-04-20 |
CN112688874B CN112688874B (en) | 2022-12-16 |
Family
ID=75445673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910995299.1A Active CN112688874B (en) | 2019-10-18 | 2019-10-18 | Flow optimization control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112688874B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114389991A (en) * | 2021-12-20 | 2022-04-22 | 中盈优创资讯科技有限公司 | Intelligent network traffic scheduling management method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080089348A1 (en) * | 2006-10-13 | 2008-04-17 | Chandrashekhar Appanna | Fast border gateway protocol synchronization |
CN101984600A (en) * | 2010-11-05 | 2011-03-09 | 华为技术有限公司 | Graceful restart method, equipment and system of routing protocol |
CN102315969A (en) * | 2011-09-22 | 2012-01-11 | 中兴通讯股份有限公司南京分公司 | Neighbor discovery protocol graceful restart (GR) processing method and device |
CN105763477A (en) * | 2016-02-03 | 2016-07-13 | 杭州华三通信技术有限公司 | Flow control strategy processing method and device |
EP3065353A1 (en) * | 2015-03-02 | 2016-09-07 | Cisco Technology, Inc. | Symmetric routing enforcement |
CN106254152A (en) * | 2016-09-19 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of flow control policy treating method and apparatus |
CN106603417A (en) * | 2015-10-16 | 2017-04-26 | 华为技术有限公司 | Route processing method, equipments and system |
CN108206780A (en) * | 2016-12-19 | 2018-06-26 | 中国电信股份有限公司 | Flow scheduling strategy report method, autonomy field system and SDN network system |
CN108616451A (en) * | 2018-04-25 | 2018-10-02 | 新华三技术有限公司 | A kind of Flow Spec routing take-effective method, device and the network equipment |
CN108924049A (en) * | 2018-06-27 | 2018-11-30 | 新华三技术有限公司合肥分公司 | Traffic specification routing scheduling method and device |
CN109309624A (en) * | 2017-07-28 | 2019-02-05 | 中国电信股份有限公司 | Traffic scheduling method and system, software defined network controller |
-
2019
- 2019-10-18 CN CN201910995299.1A patent/CN112688874B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080089348A1 (en) * | 2006-10-13 | 2008-04-17 | Chandrashekhar Appanna | Fast border gateway protocol synchronization |
CN101984600A (en) * | 2010-11-05 | 2011-03-09 | 华为技术有限公司 | Graceful restart method, equipment and system of routing protocol |
CN102315969A (en) * | 2011-09-22 | 2012-01-11 | 中兴通讯股份有限公司南京分公司 | Neighbor discovery protocol graceful restart (GR) processing method and device |
EP3065353A1 (en) * | 2015-03-02 | 2016-09-07 | Cisco Technology, Inc. | Symmetric routing enforcement |
CN106603417A (en) * | 2015-10-16 | 2017-04-26 | 华为技术有限公司 | Route processing method, equipments and system |
CN105763477A (en) * | 2016-02-03 | 2016-07-13 | 杭州华三通信技术有限公司 | Flow control strategy processing method and device |
CN106254152A (en) * | 2016-09-19 | 2016-12-21 | 杭州华三通信技术有限公司 | A kind of flow control policy treating method and apparatus |
CN108206780A (en) * | 2016-12-19 | 2018-06-26 | 中国电信股份有限公司 | Flow scheduling strategy report method, autonomy field system and SDN network system |
CN109309624A (en) * | 2017-07-28 | 2019-02-05 | 中国电信股份有限公司 | Traffic scheduling method and system, software defined network controller |
CN108616451A (en) * | 2018-04-25 | 2018-10-02 | 新华三技术有限公司 | A kind of Flow Spec routing take-effective method, device and the network equipment |
CN108924049A (en) * | 2018-06-27 | 2018-11-30 | 新华三技术有限公司合肥分公司 | Traffic specification routing scheduling method and device |
Non-Patent Citations (2)
Title |
---|
FRANCESCO PAOLUCCI: "Network service chaining using segment routing in multi-layer networks", 《JOURNAL OF OPTICAL COMMUNICATIONS AND NETWORKING》 * |
罗雨佳等: "基于BGP增强的流量调度技术", 《电信科学》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114389991A (en) * | 2021-12-20 | 2022-04-22 | 中盈优创资讯科技有限公司 | Intelligent network traffic scheduling management method and device |
CN114389991B (en) * | 2021-12-20 | 2023-09-29 | 中盈优创资讯科技有限公司 | Intelligent network flow scheduling management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112688874B (en) | 2022-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111385165B (en) | Method and device for configuring seamless bidirectional forwarding detection (SBFD) mechanism | |
US11909657B2 (en) | Route processing method, device, and system | |
US9787632B2 (en) | Centralized configuration with dynamic distributed address management | |
US8897134B2 (en) | Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel | |
US20150103841A1 (en) | Intelligent Host Route Distribution for Low Latency Forwarding and Ubiquitous Virtual Machine Mobility in Interconnected Data Centers | |
CN112187647B (en) | Message forwarding method, message forwarding equipment and computer readable storage medium | |
WO2009067865A2 (en) | Method, router, line card and active master card for realizng a link state database synchronization | |
US20200162307A1 (en) | Information notification method and device | |
CN109104364B (en) | Designated forwarder election method and device | |
CN108234314B (en) | Service scheduling method and device | |
US20100211544A1 (en) | System with session synchronization | |
US20020131602A1 (en) | Key distribution system for protection of route-update notification in micromobility networks | |
CN115037624A (en) | Global network state management | |
JP2021505066A (en) | Remote and dynamic route injection into IP networks | |
CN106059917B (en) | Routing information processing method and device | |
CN112688874B (en) | Flow optimization control method, device, equipment and storage medium | |
CN111682968B (en) | Network access management method and system for communication equipment | |
US20190334814A1 (en) | Path establishment method and device, and network node | |
WO2011150835A1 (en) | Method for requesting to obtain route information and corresponding route device thereof | |
US10798195B2 (en) | Fast roaming with shared services in enterprise fabric based networks | |
CN106878173B (en) | Route sending method and device | |
CN114422427B (en) | Flow balancing method and device, electronic equipment and storage medium | |
CN113194019B (en) | Data transmission control method and electronic equipment | |
WO2021017619A1 (en) | Dmvpn control method, network device, communication system and storage medium | |
CN108259292B (en) | Method and device for establishing tunnel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |