CN110266597B - Flow control method, device, equipment and storage medium - Google Patents

Flow control method, device, equipment and storage medium Download PDF

Info

Publication number
CN110266597B
CN110266597B CN201910522039.2A CN201910522039A CN110266597B CN 110266597 B CN110266597 B CN 110266597B CN 201910522039 A CN201910522039 A CN 201910522039A CN 110266597 B CN110266597 B CN 110266597B
Authority
CN
China
Prior art keywords
routing
information
table process
routing table
target
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
CN201910522039.2A
Other languages
Chinese (zh)
Other versions
CN110266597A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910522039.2A priority Critical patent/CN110266597B/en
Publication of CN110266597A publication Critical patent/CN110266597A/en
Application granted granted Critical
Publication of CN110266597B publication Critical patent/CN110266597B/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/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a flow control method, a flow control device, flow control equipment and a storage medium, wherein the method comprises the following steps: acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information; acquiring the routing information of each routing table process as a learning object; and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information. The embodiment of the invention realizes the learning of the routing information among the routing table processes, enables the learning to be deployed in the control layer, solves the problems of black flow, unreachable flow transmission destination, overlarge configuration amount and the like, realizes the flexible control of the flow, and can be flexibly suitable for the control of the flow under various scenes.

Description

Flow control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of flow control technologies, and in particular, to a flow control method, apparatus, device, and storage medium.
Background
Network devices, such as routers, switches, etc., are the cornerstone of interconnection between terminals in today's IP networks. The network device is forwarded based on the routing table, and the selection of the traffic sending direction is all forwarded by searching corresponding routing table entries. The flow control has the functions of managing different service flows according to the requirements of special scenes and making a special routing strategy without the global limitation of a single routing table.
In an actual service scenario, in order to implement flow control, in the prior art, various methods are generally adopted to merge to solve the problems encountered in the respective scenarios, for example, methods such as PBR (policy routing), VPN (virtual private network), MP _ BGP (multi-protocol BGP) are adopted to be mixed. However, these methods can only solve the problems in a specific scenario, and have poor versatility, and some of them may also cause problems such as black holes in traffic, poor flexibility, or high complexity in operation and maintenance.
Disclosure of Invention
The embodiment of the invention provides a flow control method, a flow control device, flow control equipment and a storage medium, which are used for realizing the flexible control of flow and are flexibly suitable for controlling the flow in various scenes.
In a first aspect, an embodiment of the present invention provides a flow control method, where the method includes:
acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information;
acquiring the routing information of each routing table process as a learning object;
and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information.
In a second aspect, an embodiment of the present invention provides a flow control device, including:
the device comprises a configuration information acquisition module, a route mutual conductance configuration module and a route mutual conductance configuration module, wherein the configuration information records at least one route table process as a learning object and a target route table process as a to-be-learned party;
a route information acquisition module for acquiring the route information of each route table process as a learning object;
and the flow forwarding module is used for distributing the routing information of each routing table process as the learning object to the target routing table process so as to enable the target routing table process to forward the flow based on the learned routing information.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the flow control method according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the flow control method according to any one of the embodiments of the present invention.
The embodiment of the invention realizes the learning of the routing information among different routing table processes based on the routing mutual conductance configuration information, wherein at least one routing table process serving as a learning object and a target routing table process serving as a to-be-learned party are recorded in the configuration information. Specifically, based on the obtained route mutual conductance configuration information, the route information of each route table process as a learning object is obtained, and the route information of each route table process as a learning object is distributed to the target route table process, so that the target route table process forwards the traffic based on the learned route information. By the scheme, the learning of the routing information among the routing table processes is realized, the learning is deployed on a control layer, the problems of black flow holes, unreachable flow transmission destinations, overlarge configuration amount and the like are solved, the flexible control of the flow is realized, and the method and the device can be flexibly applied to the condition of controlling the flow in various scenes.
Drawings
Fig. 1 is a flowchart of a flow control method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a flow control method according to a second embodiment of the present invention;
FIG. 3 is a diagram of a common architecture in a network deployment;
FIG. 4 is a schematic diagram of traffic isolation across data center sites when route learning is not supported;
FIG. 5 is a schematic diagram of traffic isolation across data center sites while supporting route learning;
fig. 6 is a schematic structural diagram of a flow control device according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a flow control method according to a first embodiment of the present invention. The flow control method provided in this embodiment is applicable to a case where flow is controlled by a device in various scenarios, and the method may be specifically executed by a flow control apparatus, where the apparatus may be implemented in a software and/or hardware manner, the apparatus may be integrated in a device, and the device may be a Network device, such as a switch, a router, a firewall, an NFV (Network Function Virtualization) device, and other various Network devices, as shown in fig. 1, where the method in the embodiment of the present invention specifically includes:
s110, obtaining route mutual conductance configuration information, wherein at least one route table process as a learning object and a target route table process as a to-be-learned party are recorded in the configuration information.
The route mutual conductance configuration information is information configured in advance by technicians, and at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded, and the route mutual conductance configuration information is used for indicating the learning object and the to-be-learned party in the route table process, and learning is performed on the to-be-learned direction learning object. The routing table process is a program operated in network equipment, at least one routing table process can be created and operated in one network equipment, each routing table process manages at least one routing protocol in each routing table process, and each routing table process correspondingly forms a routing table. The routing table is an electronic table (file) stored in the network device, in which a path pointing to a specific network address is stored, and topology information of the periphery of the network is contained, so as to implement a routing protocol.
And S120, acquiring the routing information of each routing table process as the learning object.
The routing information is information which embodies parameters of a routing process and is included in a routing table process, such as gateway information, interface information, network mask information, network protocol information and the like. For at least one routing table process as a learning object, other routing table processes as a to-be-learned party need to learn the at least one routing table process as the learning object, and therefore, the routing information of each routing table process is acquired so that the routing table process as the to-be-learned party learns according to the routing information. The routing information is obtained through an interface opened in advance in a routing table process.
It should be noted that, in the embodiment of the present invention, in order to improve comprehensiveness of acquiring the routing information, the routing information of each routing table process that is a learning object is acquired, so that it is avoided that routing information of a part of routing table processes that are learning objects is acquired in a targeted manner, which results in incomplete acquiring of routing information and reduces acquisition efficiency. However, not all the route information of the route table process as the learning object is necessarily used for learning, only a part of the route information may be learned, or all the route information may be learned, and may be determined by a demand, and therefore, the embodiment of the present invention does not limit this.
And S130, distributing the routing information of each routing table process as the learning object to a target routing table process, and enabling the target routing table process to forward the flow based on the learned routing information.
In a large enterprise, multiple routing protocols may be used in the same network, and in order to implement the cooperative work of the multiple routing protocols, the network device may use routing redistribution, but the redistribution can only solve the information transfer between different routing protocols based on one routing table, and cannot implement the information transfer between different routing tables. However, if the information in the routing table is directly copied without being associated with the corresponding protocol, the details are lost, and the optimal path cannot be selected.
Therefore, in the embodiment of the present invention, at least one routing table process, which is described in the routing configuration information and is an object to be learned, and a target routing table process, which is an object to be learned, are first acquired, and the network device distributes the routing information of each routing table process, which is an object to be learned, to the target routing table process, so that the learning of the routing information is performed among the routing table processes. Moreover, because the routing information carries the protocol attribute of the original routing protocol, compared with the mode of directly copying the routing table, the mode of introducing the routing information based on the control plane realizes the information transmission and learning in the control plane, so that the transmitted and learned information comprises the detailed attribute information of the protocol, and the target routing table forwards the flow based on the learned routing information, thereby realizing the adaptive flexible flow control in the dynamic routing process.
The target routing table process is used as a party to be learned, and if the routing information obtained from each routing table process used as a learning object is protocol routing information with the same protocol as that in the target routing table process, learning means that the routing information is obtained; if the routing information is protocol routing information different from the protocol in the target routing table process, the learning means that after the routing information is acquired, the routing information is translated into initial routing information which can be understood by the protocol in the target routing table process.
Optionally, the configuration information further records route filtering information; correspondingly, before distributing the routing information of each routing table process as the learning object to the target routing table process and forwarding the traffic based on the learned routing information by the target routing table process, the method further includes: filtering the acquired routing information according to the routing filtering information; correspondingly, distributing the routing information of each routing table process as the learning object to a target routing table process includes: and distributing the filtered routing information in the routing information of each routing table process as the learning object to a target routing table process.
The routing filtering information is information used for indicating to filter routing information. When learning the routing information, it is not necessary to learn all the routing information, and only needs to learn some routing information as required, so as to implement the flexible control of the traffic, therefore, the routing filtering information is recorded in the configuration information in advance, after the routing information of each routing table process as the learning object is obtained, each routing information is first filtered according to the routing filtering information, the routing information which needs to be learned is screened out, then the screened routing information is distributed to the target routing table process, the target routing table process learns the routing information, for example, only 10.0.0.0.0 routing network segment is needed to be issued and output, then the routing information corresponding to 10.0.0.0 network segment is screened out from the obtained routing information output value according to the routing filtering information, the target routing process only learns the routing information corresponding to 10.0.0.0 network segment, thereby avoiding the learning of redundant routing information to reduce the processing efficiency, and the excessive space occupied by the routing table generated by the target routing table process learning a large amount of routing information is avoided.
Optionally, the configuration information further records route attribute modification information; correspondingly, before distributing the routing information of each routing table process as the learning object to the target routing table process and forwarding the traffic based on the learned routing information by the target routing table process, the method further includes: judging whether the obtained routing information contains information needing attribute modification or not according to the routing attribute modification information, and modifying the corresponding routing information attribute when the obtained routing information is judged to be needed; correspondingly, distributing the routing information of each routing table process as the learning object to a target routing table process includes: and distributing the modified routing information in the routing information of each routing table process as the learning object to a target routing table process.
Wherein the route attribute modification information is used for indicating the modification of the attribute of the route information. In some scenarios, a target routing table corresponding to a target routing process may already have a route of a network segment, and when the obtained routing information of each routing process serving as a learning object includes a route of the same network segment, it is necessary to modify an attribute of the routing information, and set the route of the network segment in the routing information and the existing route of the network segment to have different priorities. Therefore, in the embodiment of the present invention, routing attribute modification information is recorded in the configuration information in advance, and after the routing information of each routing table process serving as a learning object is acquired, the routing information is subjected to attribute modification according to the routing attribute modification information, and then the modified routing information is distributed to the target routing process, and the target routing process learns the modified routing information. Illustratively, when a route of 10.0.0.0 segment already exists in a target routing table corresponding to a target routing process, if the routing information of the routing process, which is obtained at this time and is used as a learning object, also includes the route of 10.0.0.0 segment, the routing attribute of the 10.0.0.0 segment included in the routing information is changed to a suboptimal route according to the routing attribute modification information, and then the route is learned by the target routing process and exists as a suboptimal route.
According to the technical scheme of the embodiment of the invention, route mutual conductance configuration information is obtained, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information; acquiring the routing information of each routing table process as a learning object; and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information. By the scheme, the learning of the routing information among the routing table processes is realized, the learning is deployed on a control layer, the problems of black flow holes, unreachable flow transmission destinations, overlarge configuration amount and the like are solved, the flexible control of the flow is realized, and the method and the device can be flexibly applied to the condition of controlling the flow in various scenes.
Example two
Fig. 2 is a flowchart of a flow control method according to a second embodiment of the present invention. The present embodiment is optimized based on the above embodiments, and details not described in detail in the present embodiment are described in the above embodiments. Referring to fig. 2, the flow control method provided in this embodiment may include:
s210, obtaining route mutual conductance configuration information, wherein at least one route table process as a learning object and a target route table process as a to-be-learned party are recorded in the configuration information.
Specifically, each routing table process corresponds to a respective routing table, and at least one routing protocol is run in each routing table process; correspondingly, at least one routing protocol in at least one routing table process as a learning object and at least one routing protocol in a target routing table process as a to-be-learned party are also described in the configuration information.
The routing protocol is an internet protocol for specifying a data packet transfer mode, creates a routing table and describes a network topology structure. The routing protocol runs in a routing table process and is used for determining the arrival path of a data packet. At least one routing protocol may be run in each routing table process, and at least one routing protocol generates a routing table. Correspondingly, the obtained route mutual conductance configuration information contains at least one route protocol operated in each process.
S220, acquiring the routing information of at least one routing protocol in each routing table process as the learning object.
Specifically, the routing information of at least one routing protocol in each routing table process as a learning object is acquired, so that the target routing table process can learn the routing information of at least one routing protocol conveniently, the routing information has the detail attribute of the routing protocol, the routing table can be generated according to the learned detail attribute of the routing protocol, and the flexible control of the flow is realized.
S230, distributing the routing information to at least one routing protocol in the target routing table process, enabling the target routing table process to generate routing entries based on the learned routing information, issuing the routing entries to a target routing table corresponding to the target routing table process, and forwarding the flow based on the target routing table.
Specifically, the routing information is distributed to at least one routing protocol in the target routing table process, the routing information is learned by the at least one routing protocol in the target routing table process, a routing entry is generated according to the routing information, the routing entry is issued and added to a target routing table corresponding to the routing table process, and the flow is forwarded based on the target routing table, so that the flow is adjusted flexibly in the dynamic routing process.
Optionally, the method further includes: identifying the routing information according to different routing protocols; correspondingly, the method for forwarding traffic based on learned routing information in a target routing table process by distributing the routing information of each routing table process as a learning object to the target routing table process further includes: and distributing the routing information to at least one routing protocol in a target routing table process according to the configuration information and the identification.
Specifically, before distributing the acquired routing information of each routing table process as a learning object, it is necessary to know to which target routing table process the current routing information needs to be specifically distributed, so as to implement the transmission of the routing information according to actual needs. Therefore, before the routing information is distributed, the routing information is identified according to the routing protocol to indicate the target routing table process to which the current routing information should be distributed. The distribution of the correspondence of the routing information is realized by setting the identification, so that the target routing table process learns the routing information in a targeted manner as required.
According to the technical scheme of the embodiment of the invention, the detail attribute of the routing protocol in the routing information is learned by acquiring the routing information of at least one routing protocol in each routing table process as a learning object, the routing information is distributed to at least one routing protocol in the target routing table process, so that the target routing table process is issued to the target routing table corresponding to the target routing table process based on the learned routing information and forwards the flow based on the target routing table, and the flow is flexibly adjusted in the dynamic routing process.
EXAMPLE III
The embodiment of the present invention describes the technical solutions in the above embodiments by taking two scenarios as examples, but the technical solutions in the above embodiments are not only applicable to the scenarios in the embodiment of the present invention, but also applicable to the case of controlling the traffic through the network device in various scenarios.
Fig. 3 is a schematic structural diagram of a common network deployment, and as shown in fig. 3, in a normal state, a data packet is transmitted through a firewall, but when a firewall fails, there is often no other network transmission path, which results in interruption of traffic transmission. At this time, by the technical scheme in the embodiment of the invention, the routing process of the public network learns the routing information in the routing process of the private network, or mutual learning is realized between the private network and the public network, the route in the routing protocol of the opposite side is obtained through the learned routing information, and the flow is forwarded according to the route, so that the interruption of flow transmission caused when the firewall breaks down is avoided.
Fig. 4 is a schematic diagram illustrating traffic isolation between sites across a data center when route learning is not supported, and as shown in fig. 4, different branch sites need to be isolated from each other, and a routing table and a planar backbone network need to be maintained independently. When a type of station is added, a routing table and a planar backbone network need to be added, so that the expansibility is weak, and the operation and maintenance complexity is high. Fig. 5 is a schematic view illustrating traffic isolation between data center sites when route learning is supported, and as shown in fig. 5, according to the scheme in the embodiment of the present invention, a common pipeline, that is, a network composed of a plurality of routing nodes, can be established between different branch sites, and the routing nodes in the network can learn each other, and when communication is required between sites in different regions, traffic forwarding between two sites can be realized only by learning between the routing nodes between two sites. By the scheme, the complexity of operation and maintenance is reduced, only the backbone network pipeline needs to be maintained, and a channel and a routing table do not need to be newly added when a type of station is added, so that flexible control of flow is realized, and the adaptability meets the requirements of various scenes.
Example four
Fig. 6 is a schematic structural diagram of a flow control device according to a third embodiment of the present invention. The device is suitable for controlling the flow through the equipment in various scenes, the device can be realized in a software and/or hardware mode, the device can be integrated in the equipment, and the equipment can be Network equipment, such as a switch, a router, a firewall, NFV (Network Function Virtualization) equipment and other various Network equipment. Referring to fig. 6, the apparatus specifically includes:
a configuration information obtaining module 310, configured to obtain route mutual conductance configuration information, where at least one routing table process as a learning object and a target routing table process as a to-be-learned party are described in the configuration information;
a routing information obtaining module 320, configured to obtain routing information of each routing table process as the learning object;
a traffic forwarding module 330, configured to distribute the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
Optionally, the routing information is obtained through a pre-opened interface in the routing table process.
Optionally, each routing table process corresponds to a respective routing table, and at least one routing protocol is run in each routing table process;
correspondingly, at least one routing protocol in at least one routing table process as a learning object and at least one routing protocol in a target routing table process as a to-be-learned party are also recorded in the configuration information;
correspondingly, the routing information obtaining module 320 is specifically configured to:
acquiring the routing information of at least one routing protocol in each routing table process as a learning object;
accordingly, the traffic forwarding module 330 includes:
and the routing protocol distribution unit is used for distributing the routing information to at least one routing protocol in the target routing table process, so that the target routing table process generates a routing entry based on the learned routing information, issues the routing entry to a target routing table corresponding to the target routing table process, and forwards the flow based on the target routing table.
Optionally, the method further includes:
the identification module is used for identifying the routing information according to different routing protocols;
accordingly, the traffic forwarding module 330 includes:
and the per-identifier distribution unit is used for distributing the routing information to at least one routing protocol in a target routing table process according to the identifier.
Optionally, the configuration information further records route filtering information;
correspondingly, the method also comprises the following steps:
the filtering module is used for filtering the acquired routing information according to the routing filtering information;
accordingly, the traffic forwarding module 330 includes:
and the filtering and distributing unit is used for distributing the filtered routing information in the routing information of each routing table process as the learning object to a target routing table process.
Optionally, the configuration information further records route attribute modification information;
correspondingly, the method also comprises the following steps:
the modification module is used for judging whether the acquired routing information contains information needing attribute modification or not according to the routing attribute modification information and modifying the corresponding routing information attribute when the acquired routing information is judged to be needed;
accordingly, the traffic forwarding module 330 includes:
and the modification distribution unit is used for distributing the modified routing information in the routing information of each routing table process as the learning object to the target routing table process.
According to the technical scheme of the embodiment of the invention, a configuration information acquisition module acquires route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information; the route information acquisition module acquires the route information of each route table process as a learning object; and the traffic forwarding module distributes the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the traffic based on the learned routing information. By the scheme, the learning of the routing information among the routing table processes is realized, the learning is deployed in a control layer, the problems of possible flow black holes, unreachable destinations, overlarge configuration amount and the like are solved, the flexible control of the flow is realized, and the method and the system can flexibly adapt to various scenes.
EXAMPLE five
Fig. 7 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present invention. The device 412 shown in fig. 7 is only an example and should not impose any limitation on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 7, the apparatus 412 includes: one or more processors 416; the memory 428 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 416, the one or more processors 416 are enabled to implement the flow control method provided in the embodiment of the present invention, including:
acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information;
acquiring the routing information of each routing table process as a learning object;
and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information.
Is expressed in the form of general-purpose equipment. The components of device 412 may include, but are not limited to: one or more processors or processors 416, a system memory 428, and a bus 418 that couples the various system components (including the system memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 412 typically includes a variety of computer system readable storage media. These storage media may be any available storage media that can be accessed by device 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The system memory 428 may include computer system readable storage media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 7, commonly referred to as "hard drives"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 by one or more data storage media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 462 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 462 generally perform the functions and/or methodologies of the described embodiments of the invention.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 426, etc.), with one or more devices that enable a user to interact with the device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, network adapter 420 communicates with the other modules of device 412 over bus 418. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing at least one of other programs stored in the system memory 428, for example, to implement a flow control method provided by the embodiment of the present invention, including:
acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information;
acquiring the routing information of each routing table process as a learning object;
and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a flow control method, including:
acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information;
acquiring the routing information of each routing table process as a learning object;
and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information.
Computer storage media for embodiments of the present invention can take the form of any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the invention, the computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of flow control, the method comprising:
acquiring route mutual conductance configuration information, wherein at least one route table process serving as a learning object and a target route table process serving as a to-be-learned party are recorded in the configuration information;
acquiring the routing information of each routing table process as a learning object;
and distributing the routing information of each routing table process as the learning object to a target routing table process, so that the target routing table process forwards the flow based on the learned routing information.
2. The method of claim 1, wherein the routing information is obtained through a pre-opened interface in the routing table process.
3. The method of claim 1, wherein each routing table process corresponds to a respective routing table, and wherein each routing table process runs at least one routing protocol;
correspondingly, at least one routing protocol in the at least one routing table process as the learning object and at least one routing protocol in the target routing table process as the to-be-learned party are also recorded in the configuration information;
correspondingly, the acquiring the routing information of each routing table process as the learning object includes:
acquiring the routing information of at least one routing protocol in each routing table process as a learning object;
correspondingly, the distributing the routing information of each routing table process as the learning object to the target routing table process so that the target routing table process forwards the traffic based on the learned routing information includes:
and distributing the routing information to at least one routing protocol in the target routing table process, so that the target routing table process generates routing entries based on the learned routing information, issues the routing entries to a target routing table corresponding to the target routing table process, and forwards the flow based on the target routing table.
4. The method of claim 3, further comprising: identifying the routing information according to different routing protocols;
correspondingly, the distributing the routing information of each routing table process as the learning object to the target routing table process further includes:
and distributing the routing information to at least one routing protocol in a target routing table process according to the configuration information and the identification.
5. The method according to claim 1, wherein the configuration information further includes routing filtering information;
correspondingly, before the distributing the routing information of each routing table process as the learning object to the target routing table process and forwarding the traffic by the target routing table process based on the learned routing information, the method further includes: filtering the acquired routing information according to the routing filtering information;
correspondingly, the distributing the routing information of each routing table process as the learning object to the target routing table process includes: and distributing the filtered routing information in the routing information of each routing table process as the learning object to a target routing table process.
6. The method according to claim 1, wherein the configuration information further describes route attribute modification information;
correspondingly, before the distributing the routing information of each routing table process as the learning object to the target routing table process and forwarding the traffic by the target routing table process based on the learned routing information, the method further includes: judging whether the obtained routing information contains information needing attribute modification or not according to the routing attribute modification information, and modifying the corresponding routing information attribute when the obtained routing information is judged to be needed;
correspondingly, the distributing the routing information of each routing table process as the learning object to the target routing table process includes: and distributing the modified routing information in the routing information of each routing table process as the learning object to a target routing table process.
7. A flow control device, the device comprising:
the device comprises a configuration information acquisition module, a route mutual conductance configuration module and a route mutual conductance configuration module, wherein the configuration information records at least one route table process as a learning object and a target route table process as a to-be-learned party;
a route information acquisition module, configured to acquire route information of each route table process as a learning object;
and the flow forwarding module is used for distributing the routing information of each routing table process as the learning object to the target routing table process so as to enable the target routing table process to forward the flow based on the learned routing information.
8. The apparatus of claim 7, wherein the routing information is obtained through a pre-opened interface in the routing table process.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a flow control method as claimed in any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a flow control method according to any one of claims 1-6.
CN201910522039.2A 2019-06-17 2019-06-17 Flow control method, device, equipment and storage medium Active CN110266597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910522039.2A CN110266597B (en) 2019-06-17 2019-06-17 Flow control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910522039.2A CN110266597B (en) 2019-06-17 2019-06-17 Flow control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110266597A CN110266597A (en) 2019-09-20
CN110266597B true CN110266597B (en) 2021-10-22

Family

ID=67918635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910522039.2A Active CN110266597B (en) 2019-06-17 2019-06-17 Flow control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110266597B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076029A (en) * 2007-07-12 2007-11-21 中兴通讯股份有限公司 Method for updating boundary gate protocol recursion router
CN101330411A (en) * 2008-07-30 2008-12-24 中兴通讯股份有限公司 Method and system for simulating large-scale network topological
CN103428085A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for rapidly switching RIP (routing information protocol) routings
CN106130790A (en) * 2016-08-10 2016-11-16 杭州华三通信技术有限公司 A kind of fault handling method and device
CN107483340A (en) * 2017-08-22 2017-12-15 迈普通信技术股份有限公司 A kind of dynamic routing notifying method and SDN controllers and network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160063475A1 (en) * 2014-08-28 2016-03-03 Lance Yule Facilitating Transactions Between Buyers And Sellers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076029A (en) * 2007-07-12 2007-11-21 中兴通讯股份有限公司 Method for updating boundary gate protocol recursion router
CN101330411A (en) * 2008-07-30 2008-12-24 中兴通讯股份有限公司 Method and system for simulating large-scale network topological
CN103428085A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for rapidly switching RIP (routing information protocol) routings
CN106130790A (en) * 2016-08-10 2016-11-16 杭州华三通信技术有限公司 A kind of fault handling method and device
CN107483340A (en) * 2017-08-22 2017-12-15 迈普通信技术股份有限公司 A kind of dynamic routing notifying method and SDN controllers and network system

Also Published As

Publication number Publication date
CN110266597A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN107465590B (en) Network infrastructure system, method of routing network traffic and computer readable medium
EP2696537B1 (en) Network system, switch, and connection terminal detection method
CN107547439B (en) Network flow control method and computing node
CN107733795B (en) Ethernet virtual private network EVPN and public network intercommunication method and device
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN106576074A (en) Routing rule acquisition method, device and system
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
US11121969B2 (en) Routing between software defined networks and physical networks
CN111556110B (en) Automatic adaptation method for different physical service networks of private cloud system
US20060268853A1 (en) Methods and apparatus for distributing label information
US11671361B2 (en) Centralized management and distributed enforcement of policies for network segmentation
CN113542099B (en) Data transmission method, device, electronic equipment, medium and product
US20220141080A1 (en) Availability-enhancing gateways for network traffic in virtualized computing environments
CN112385194A (en) Status packet transmission between remote networks
CN110266597B (en) Flow control method, device, equipment and storage medium
CN105939262B (en) Label distribution method and device
CN111884863A (en) VPC service chain implementation method and system for cloud computing environment
US10574481B2 (en) Heterogeneous capabilities in an overlay fabric
CN112351050A (en) Method, device, communication equipment and storage medium for mirroring data stream
US20150100625A1 (en) Data Transmission System
US20210119826A1 (en) Layer-2 dedicated line network system and configuration method
CN109257372B (en) Message forwarding method, device, storage medium and apparatus based on network convergence
CN111355599B (en) Hybrid network topology discovery method and device
US20230421499A1 (en) Packet transmission method and apparatus
CN114363239B (en) Routing information updating method, device, equipment and storage medium

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