CN110266597A - Flow control method, device, equipment and storage medium - Google Patents
Flow control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN110266597A CN110266597A CN201910522039.2A CN201910522039A CN110266597A CN 110266597 A CN110266597 A CN 110266597A CN 201910522039 A CN201910522039 A CN 201910522039A CN 110266597 A CN110266597 A CN 110266597A
- Authority
- CN
- China
- Prior art keywords
- routing
- target
- routing table
- table process
- information
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/08—Learning-based routing, e.g. using neural networks or artificial intelligence
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow 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 present invention discloses a flow control method, device, device and storage medium, the method comprising: obtaining routing mutual guidance configuration information, wherein at least one routing table process as a learning object is recorded in the configuration information, and As the target routing table process of the party to be learned; Obtain the routing information of each routing table process as the learning object; The routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process is based on The learned routing information forwards the traffic. The embodiment of the present invention realizes the learning of routing information between routing table processes, makes the learning deployed at the control level, solves the problems of traffic black holes, unreachable traffic transmission destinations, and excessive configuration volume, and realizes elastic control of traffic , which can be flexibly applied to traffic control in various scenarios.
Description
技术领域technical field
本发明实施例涉及流量控制技术领域,尤其涉及一种流量控制方法、装置、设备及存储介质。Embodiments of the present invention relate to the technical field of flow control, and in particular, to a flow control method, device, equipment, and storage medium.
背景技术Background technique
网络设备,如路由器、交换机等,是当今IP网络中终端之间互联的基石。网络设备是基于路由表转发,流量发送方向选择都是通过查找对应路由表条目转发。流量控制的作用就是针对特殊场景的需求来管理不同的业务流量,制定特殊的路由策略,不受单一路由表的全局限制。Network devices, such as routers and switches, are the cornerstone of interconnection between terminals in today's IP network. The network device forwards based on the routing table, and the selection of the sending direction of the traffic is forwarded by looking up the corresponding routing table entry. The role of traffic control is to manage different business traffic according to the needs of special scenarios, formulate special routing policies, and not be subject to the global restrictions of a single routing table.
在实际业务场景中,为了实现流量控制,现有技术通常是采用各种方法融合来解决各自场景中遇到的问题,例如采用PBR(策略路由)、VPN(虚拟专有网络)、MP_BGP(多协议BGP)等方法混用。然而这些方法只能解决特定场景下的问题,通用性差,而且,有些还会导致例如流量黑洞、灵活性差或者运维复杂度高等问题。In actual business scenarios, in order to achieve traffic control, the existing technologies usually adopt various methods to solve the problems encountered in the respective scenarios, such as PBR (Policy Routing), VPN (Virtual Private Network), MP_BGP (Multiple Protocol BGP) and other methods are mixed. However, these methods can only solve problems in specific scenarios, and have poor versatility. Moreover, some of them may cause problems such as traffic black holes, poor flexibility, or high operation and maintenance complexity.
发明内容Contents of the invention
本发明实施例提供一种流量控制方法、装置、设备及存储介质,以实现流量的弹性控制,灵活适应各类场景中对流量的控制。Embodiments of the present invention provide a flow control method, device, device, and storage medium, so as to realize flexible flow control and flexibly adapt to flow control in various scenarios.
第一方面,本发明实施例提供了一种流量控制方法,该方法包括:In a first aspect, an embodiment of the present invention provides a flow control method, the method comprising:
获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;Obtain routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as a learning object, and a target routing table process as a party to be learned;
获取所述作为学习对象的各路由表进程的路由信息;Obtain the routing information of each routing table process as the learning object;
将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
第二方面,本发明实施例提供了一种流量控制装置,该装置包括:In a second aspect, an embodiment of the present invention provides a flow control device, which includes:
配置信息获取模块,用于获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;A configuration information acquisition module, configured to acquire routing mutual guidance configuration information, wherein at least one routing table process as a learning object and a target routing table process as a party to be learned are recorded in the configuration information;
路由信息获取模块,用于获取作为学习对象的各路由表进程的路由信息;A routing information acquisition module, configured to acquire the routing information of each routing table process as a learning object;
流量转发模块,用于将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The traffic forwarding module is configured to distribute 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.
第三方面,本发明实施例还提供了一种设备,该设备包括:In a third aspect, an embodiment of the present invention also provides a device, which includes:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;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 are made to implement the flow control method described in any one of the embodiments of the present invention.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例中任一所述的流量控制方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the flow control method described in any one of the embodiments of the present invention is implemented.
本发明实施例基于路由互导配置信息实现不同路由表进程之间的路由信息的学习,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程。具体的,基于获取的路由互导配置信息,获取作为学习对象的各路由表进程的路由信息,并将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。通过上述方案,实现了在路由表进程之间路由信息的学习,使学习部署于控制层面,解决了存在流量黑洞、流量传输目的地不可达以及配置量过大等问题,实现了流量的弹性控制,能够灵活适用于各类场景下对流量进行控制的情况。The embodiment of the present invention realizes the learning of routing information between different routing table processes based on routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as the learning object and the target route as the party to be learned. table process. Specifically, based on the obtained routing mutual guidance configuration information, the routing information of each routing table process as a learning object is obtained, and the routing information of each routing table process as a learning object is distributed to the target routing table process, so that the target routing The table process forwards traffic based on the learned routing information. Through the above solution, the learning of routing information between routing table processes is realized, and the learning is deployed at the control level, which solves the problems of traffic black holes, unreachable traffic transmission destinations, and excessive configuration volume, and realizes elastic control of traffic , which can be flexibly applied to traffic control in various scenarios.
附图说明Description of drawings
图1是本发明实施例一中的一种流量控制方法的流程图;FIG. 1 is a flowchart of a flow control method in Embodiment 1 of the present invention;
图2是本发明实施例二中的一种流量控制方法的流程图;FIG. 2 is a flowchart of a flow control method in Embodiment 2 of the present invention;
图3为网络部署中常见结构示意图;Figure 3 is a schematic diagram of a common structure in network deployment;
图4为不支持路由学习时跨数据中心站点之间流量隔离示意图;Figure 4 is a schematic diagram of traffic isolation between cross-data center sites when route learning is not supported;
图5为支持路由学习时跨数据中心站点之间流量隔离示意图;Figure 5 is a schematic diagram of traffic isolation between cross-data center sites when routing learning is supported;
图6是本发明实施例四中的一种流量控制装置结构示意图;Fig. 6 is a schematic structural diagram of a flow control device in Embodiment 4 of the present invention;
图7是本发明实施例五中的一种设备的结构示意图。Fig. 7 is a schematic structural diagram of a device in Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图1是本发明实施例一中的一种流量控制方法的流程图。本实施例提供的流量控制方法可适用于各类场景中通过设备对流量进行控制的情况,该方法具体可以由流量控制装置来执行,该装置可以由软件和/或硬件的方式实现,该装置可以集成在设备中,设备可以是网络设备,例如交换机、路由器、防火墙、NFV(Network Function Virtualization,网络功能虚拟化)设备等多种网络设备,参见图1,本发明实施例的方法具体包括:FIG. 1 is a flow chart of a flow control method in Embodiment 1 of the present invention. The traffic control method provided in this embodiment is applicable to the situation where traffic is controlled by equipment in various scenarios. The method can be specifically executed by a traffic control device, which can be implemented by software and/or hardware. The device Can be integrated in the device, the device can be a network device, such as a switch, router, firewall, NFV (Network Function Virtualization, network function virtualization) device and other network devices, referring to Figure 1, the method of the embodiment of the present invention specifically includes:
S110、获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程。S110. Acquire configuration information of routing mutual guidance, where at least one routing table process as a learning object and a target routing table process as a party to be learned are recorded in the configuration information.
其中,所述路由互导配置信息为由技术人员预先配置的信息,其中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程,用于指示路由表进程中的学习对象和待学习方,待学习方向学习对象进行学习。所述路由表进程为网络设备中运行的程序,一个网络设备中可以创建并运行至少一个路由表进程,每个路由表进程管理各自内部的至少一个路由协议,并且每个路由表进程对应形成一个路由表。所述路由表为一个存储在网络设备中的电子表格(文件),其中存储有指向特定网络地址的路径,含有网络周边的拓扑信息,用于实现路由协议。Wherein, the routing mutual guidance configuration information is information pre-configured by technicians, which records at least one routing table process as a learning object, and a target routing table process as a party to be learned, which is used to indicate the routing table process in the routing table process. The learning object and the party to be learned, and the learning object of the direction to be learned to learn. The routing table process is a program running in a network device. At least one routing table process can be created and run in a network device. Each routing table process manages at least one internal routing protocol, and each routing table process corresponds to form a routing table process. routing table. The routing table is an electronic form (file) stored in the network device, which stores a path pointing to a specific network address, contains topology information of the network periphery, and is used to implement a routing protocol.
S120、获取所述作为学习对象的各路由表进程的路由信息。S120. Obtain routing information of each routing table process that is a learning object.
其中,所述路由信息为路由表进程中所包含的体现路由过程参数的信息,例如网关信息、接口信息、网络掩码信息、网络协议信息等。对于作为学习对象的至少一个路由表进程,其他作为待学习方的路由表进程需要对作为学习对象的至少一个路由表进程进行学习,因此,获取各路由表进程的路由信息,以便作为待学习方的路由表进程根据所述路由信息进行学习。所述路由信息是通过路由表进程中预先开放的接口获取。Wherein, the routing information is the information included in the routing table process that reflects the parameters of the routing process, such as gateway information, interface information, network mask information, network protocol information, and the like. For at least one routing table process as the learning object, other routing table processes as the party to be learned need to learn at least one routing table process as the learning object, therefore, obtain the routing information of each routing table process, so as to serve as the party to be learned The routing table process learns according to the routing information. The routing information is acquired through a pre-opened interface in the routing table process.
需要说明的是,在本发明实施例中,为了提高获取路由信息的全面性,因此获取作为学习对象的各路由表进程的路由信息,避免针对性地获取部分作为学习对象的路由表进程的路由信息,导致获取路由信息不全面,并降低获取效率。但是,并不是所有作为学习对象的路由表进程的路由信息都必须被用于学习,可以只对所述路由信息中的部分进行学习,也可以对全部所述路由信息进行学习,可以由需求决定,因此,本发明实施例中对此不作任何限定。It should be noted that, in the embodiment of the present invention, in order to improve the comprehensiveness of obtaining routing information, the routing information of each routing table process as a learning object is obtained, so as to avoid obtaining the routing information of some routing table processes as a learning object. information, resulting in incomplete route information acquisition and reduced acquisition efficiency. However, not all the routing information of the routing table process as the learning object must be used for learning, and only part of the routing information can be learned, or all the routing information can be learned, which can be determined by demand , therefore, no limitation is set in this embodiment of the present invention.
S130、将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。S130. Distribute the routing information of each routing table process as a learning object to a target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
在大型的企业中,可能在同一网内使用到多种路由协议,为了实现多种路由协议的协同工作,网络设备可以使用路由重分发,但是重分发只能解决基于一张路由表的不同路由协议之间的信息传递,无法实现不同路由表之间的信息传递。而若直接将路由表中的信息进行拷贝,而没有与相对应的协议相关联,则会导致细节丢失无法进行最优路径的选择。In a large enterprise, multiple routing protocols may be used in the same network. In order to realize the collaborative work of multiple routing protocols, network devices can use route redistribution, but redistribution can only solve different routes based on one routing table. The information transfer between protocols cannot realize the information transfer between different routing tables. However, if the information in the routing table is directly copied without associating with the corresponding protocol, the details will be lost and the optimal path cannot be selected.
因此,在本发明实施例中,首先获取路由配置信息中记载的作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程,网络设备将作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使路由信息的学习在路由表进程之间进行。而且,由于路由信息中携带有原本的路由协议的协议属性,因此,这种基于控制层面引入路由信息的方式与直接拷贝路由表的方式相比,实现了在控制层面的信息传递和学习,使传递和学习的信息中包括协议的细节属性信息,目标路由表再基于学习到的路由信息对流量进行转发,从而在动态路由的过程中实现适应性弹性控制流量。Therefore, in the embodiment of the present invention, first obtain at least one routing table process as the learning object recorded in the routing configuration information, and the target routing table process as the party to be learned, and the network device uses the routing table process of each routing table process as the learning object The routing information is distributed to the target routing table process, so that the learning of the routing information is performed between the routing table processes. Moreover, since the routing information carries the protocol attributes of the original routing protocol, compared with the method of directly copying the routing table, this method of introducing routing information based on the control plane realizes information transmission and learning at the control plane, making The transmitted and learned information includes detailed attribute information of the protocol, and the target routing table forwards the traffic based on the learned routing information, so as to realize adaptive and elastic traffic control in the process of dynamic routing.
其中,目标路由表进程作为待学习方,其获取的来自作为学习对象的各路由表进程的路由信息中,如果是与目标路由表进程中的协议相同的协议路由信息,那么学习就是指获取到该路由信息;如果是与目标路由表进程中的协议不同的协议路由信息,那么学习就是指获取到该路由信息后,再将其翻译为目标路由表进程中的协议可理解的初始路由信息。Wherein, the target routing table process is used as the party to be learned, and among the routing information obtained from each routing table process as the learning object, if it is the same protocol routing information as the protocol in the target routing table process, then learning refers to obtaining The routing information; if it is protocol routing information different from the protocol in the target routing table process, then learning means that after obtaining the routing information, it is translated into initial routing information that can be understood by the protocol in the target routing table process.
可选的,所述配置信息中还记载有路由过滤信息;相应的,将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发之前,所述方法还包括:根据所述路由过滤信息对所述获取到的路由信息进行过滤;相应的,将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,包括:将所述作为学习对象的各路由表进程的路由信息中经过滤后的路由信息分发至目标路由表进程。Optionally, route filtering information is also recorded in the configuration information; correspondingly, the routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process is based on the learned route Before the information forwards the traffic, the method further includes: filtering the obtained routing information according to the routing filtering information; correspondingly, distributing the routing information of each routing table process as the learning object to the target The routing table process includes: distributing the filtered routing information among the routing information of the routing table processes serving as learning objects to the target routing table process.
其中,所述路由过滤信息为用于指示对路由信息进行过滤的信息。在对路由信息进行学习时,往往并不需要对所有的路由信息进行学习,只需要按需学习其中部分路由信息,即可以实现流量的弹性控制,因此,预先于配置信息中记载有路由过滤信息,当获取到作为学习对象的各路由表进程的路由信息后,首先对各路由信息根据路由过滤信息进行过滤,筛选出需要对其学习的路由信息,再将筛选出的路由信息分发至目标路由表进程,由目标路由表进程对路由信息进行学习,例如,只需要对10.0.0.0网段路由发布输出,则根据路由过滤信息,从获取的路由信息出值筛选出10.0.0.0网段对应的路由信息,目标路由进程只学习10.0.0.0网段对应的路由信息,从而避免学习多余路由信息降低处理效率,并且避免目标路由表进程学习大量路由信息生成的路由表占用过多空间。Wherein, the route filtering information is information used to indicate to filter the routing information. When learning the routing information, it is often not necessary to learn all the routing information, but only part of the routing information needs to be learned to achieve flexible traffic control. Therefore, the routing filtering information is recorded in the configuration information in advance , after obtaining the routing information of each routing table process as the learning object, first filter each routing information according to the routing filtering information, filter out the routing information that needs to be learned, and then distribute the filtered routing information to the target routing Table process, the routing information is learned by the target routing table process, for example, only the 10.0.0.0 network segment route publishing output is required, then the information is filtered according to the route, and the value corresponding to the 10.0.0.0 network segment is filtered out from the obtained routing information output value Routing information, the target routing process only learns the routing information corresponding to the 10.0.0.0 network segment, so as to avoid learning redundant routing information to reduce processing efficiency, and avoid the routing table generated by the target routing table process learning a large amount of routing information from occupying too much space.
可选的,所述配置信息中还记载有路由属性修改信息;相应的,将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发之前,所述方法还包括:根据所述路由属性修改信息判断所述获取到的路由信息中是否存在需要进行属性修改的信息,并在判断为需要时,对相应的路由信息属性进行修改;相应的,将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,包括:将所述作为学习对象的各路由表进程的路由信息中经修改后的路由信息分发至目标路由表进程。Optionally, routing attribute modification information is also recorded in the configuration information; correspondingly, the routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process is based on the learned Before the routing information forwards the traffic, the method further includes: judging according to the routing attribute modification information whether there is information that needs attribute modification in the obtained routing information, and when it is judged necessary, modifying the corresponding routing information The information attribute is modified; correspondingly, the routing information of each routing table process as the learning object is distributed to the target routing table process, including: the modified routing information of each routing table process as the learning object Routing information is distributed to the target routing table process.
其中,所述路由属性修改信息用于指示对路由信息的属性进行修改。在部分场景下,目标路由进程对应的目标路由表中可能已经存在有一个网段的路由,当获取的作为学习对象的各路由进程的路由信息中包含同一网段的路由时,则需要修改所述路由信息的属性,设置所述路由信息中该网段的路由与已存在的该网段的路由为不同优先级。因此,在本发明实施例中,预先于配置信息中记载有路由属性修改信息,当获取到作为学习对象的各路由表进程的路由信息后,先根据路由属性修改信息对所述路由信息进行属性修改,再将修改后的路由信息分发至目标路由进程,由目标路由进程对修改后的路由信息进行学习。示例性的,当目标路由进程对应的目标路由表中已存在10.0.0.0网段的路由时,若此时获取的作为学习对象的路由进程的路由信息中也包含10.0.0.0网段的路由,此时根据路由属性修改信息将路由信息中包含的10.0.0.0网段的路由属性改为次优路由,则经目标路由进程学习后作为一条次优路由存在。Wherein, the routing attribute modification information is used to indicate modification of the routing information attribute. In some scenarios, a route for a network segment may already exist in the target routing table corresponding to the target routing process. The attribute of the above-mentioned routing information, and the routing of the network segment in the routing information is set to have different priorities from the existing routing of the network segment. Therefore, in the embodiment of the present invention, the routing attribute modification information is pre-recorded in the configuration information. After the routing information of each routing table process as the learning object is obtained, the routing information is firstly modified according to the routing attribute modification information. modify, and then distribute the modified routing information to the target routing process, and the target routing process learns the modified routing information. Exemplarily, when the route of the 10.0.0.0 network segment already exists in the target routing table corresponding to the target routing process, if the routing information of the routing process obtained as the learning object also includes the route of the 10.0.0.0 network segment, At this time, according to the routing attribute modification information, the routing attribute of the 10.0.0.0 network segment included in the routing information is changed to a suboptimal route, and then it exists as a suboptimal route after being learned by the target routing process.
本发明实施例的技术方案,获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;获取作为学习对象的各路由表进程的路由信息;将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。通过上述方案,实现了在路由表进程之间路由信息的学习,使学习部署于控制层面,解决了存在流量黑洞、流量传输目的地不可达以及配置量过大等问题,实现了流量的弹性控制,能够灵活适用于各类场景下对流量进行控制的情况。The technical solution of the embodiment of the present invention is to obtain routing mutual guidance configuration information, wherein at least one routing table process as a learning object is recorded in the configuration information, and a target routing table process as a party to be learned; Routing information of each routing table process; distributing the routing information of each routing table process as a learning object to a target routing table process, so that the target routing table process forwards traffic based on the learned routing information. Through the above solution, the learning of routing information between routing table processes is realized, and the learning is deployed at the control level, which solves the problems of traffic black holes, unreachable traffic transmission destinations, and excessive configuration volume, and realizes elastic control of traffic , which can be flexibly applied to traffic control in various scenarios.
实施例二Embodiment two
图2是本发明实施例二中的一种流量控制方法的流程图。本实施例在上述实施例的基础上进行了优化,未在本实施例中详细描述的细节详见上述实施例。参见图2,本实施例提供的流量控制方法可以包括:Fig. 2 is a flow chart of a flow control method in Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments, details not described in detail in this embodiment can be found in the above embodiments. Referring to Figure 2, the flow control method provided in this embodiment may include:
S210、获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程。S210. Acquire configuration information of routing mutual guidance, where at least one routing table process as a learning object and a target routing table process as a party to be learned are recorded in the configuration information.
具体的,每个路由表进程对应有各自的路由表,且每个路由表进程中运行至少一种路由协议;相应的,所述配置信息中还记载有作为学习对象的至少一个路由表进程中的至少一种路由协议,以及作为待学习方的目标路由表进程中的至少一种路由协议。Specifically, each routing table process corresponds to its own routing table, and at least one routing protocol runs in each routing table process; correspondingly, the configuration information also records at least one routing table process as a learning object at least one routing protocol, and at least one routing protocol in the target routing table process of the party to be learned.
其中,路由协议为指定数据包转送方式的网上协议,路由协议创建了路由表,描述了网络拓扑结构。路由协议运行于路由表进程中,用来确定数据包到达路径。每个路由表进程中可以运行至少一个路由协议,至少一个路由协议生成一个路由表。相应的,获取的路由互导配置信息中包含有各进程中运行的至少一个路由协议。Among them, the routing protocol is an online protocol that specifies the data packet forwarding method, and the routing protocol creates a routing table and describes the network topology. Routing protocols run in the routing table process to determine the arrival path of data packets. At least one routing protocol can run in each routing table process, and at least one routing protocol generates a routing table. Correspondingly, at least one routing protocol running in each process is included in the acquired routing mutual guidance configuration information.
S220、获取所述作为学习对象的各路由表进程中的至少一种路由协议的路由信息。S220. Obtain routing information of at least one routing protocol in each routing table process serving as a learning object.
具体的,获取作为学习对象的各路由表进程中的至少一种路由协议的路由信息,便于目标路由表进程对至少一种路由协议的路由信息进行学习,从而学习到路由信息中具有路由协议的细节属性,能够根据学习到的路由协议的细节属性生成路由表,实现对流量的弹性控制。Specifically, the routing information of at least one routing protocol in each routing table process as the learning object is obtained, so that the target routing table process can learn the routing information of at least one routing protocol, so as to learn the routing information with the routing protocol in the routing information. Detail attribute, which can generate a routing table according to the learned detail attribute of the routing protocol to achieve flexible control of traffic.
S230、将所述路由信息分发至目标路由表进程中的至少一种路由协议,使目标路由表进程基于学习到的路由信息生成路由条目,并将所述路由条目下发到目标路由表进程对应的目标路由表,并基于所述目标路由表对流量进行转发。S230. Distribute the routing information to at least one routing protocol in the target routing table process, make the target routing table process generate routing entries based on the learned routing information, and deliver the routing entries to the corresponding destination routing table, and forward traffic based on the destination 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 at least one routing protocol in the target routing table process, and routing entries are generated according to the routing information, and the routing entries are It is sent and added to the target routing table corresponding to the routing table process, and the traffic is forwarded based on the target routing table, so that the traffic can be elastically adjusted during the dynamic routing process.
可选的,所述方法还包括:按照不同的路由协议对所述路由信息进行标识;相应的,将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发,还包括:依据所述配置信息,将所述路由信息按照所述标识分发至目标路由表进程中的至少一种路由协议。Optionally, the method further includes: identifying the routing information according to different routing protocols; correspondingly, distributing the routing information of each routing table process as the learning object to the target routing table process, so that the target routing The table process forwards the traffic based on the learned routing information, and further includes: according to the configuration information, distributing the routing information to at least one routing protocol in the target routing table process according to the identifier.
具体的,在对获取的作为学习对象的各路由表进程的路由信息进行分发之前,需要获知当前的路由信息需要针对性地分发给哪个目标路由表进程,以实现根据实际需要对路由信息进行传递。因此,在对路由信息进行分发之前,先按照路由协议对路由信息进行标识,以指示当前的路由信息应分发的目标路由表进程。通过设置标识从而实现路由信息对应性的分发,使目标路由表进程按需针对性地学习路由信息。Specifically, before distributing the routing information of each routing table process obtained as a learning object, it is necessary to know which target routing table process the current routing information needs to be distributed to, so as to realize the routing information according to actual needs. . Therefore, before distributing the routing information, the routing information is first identified according to the routing protocol, so as to indicate the target routing table process to which the current routing information should be distributed. The corresponding distribution of routing information is realized by setting the identifier, so that the target routing table process can learn routing information on demand.
本发明实施例的技术方案,通过获取作为学习对象的各路由表进程中的至少一种路由协议的路由信息,从而学习到路由信息中路由协议的细节属性,通过将所述路由信息分发至目标路由表进程中的至少一种路由协议,使目标路由表进程基于学习到的路由信息下发到目标路由表进程对应的目标路由表,并基于该目标路由表对流量进行转发,从而实现了在动态路由过程中弹性地对流量进行调节。In the technical solution of the embodiment of the present invention, by acquiring the routing information of at least one routing protocol in each routing table process as the learning object, the detailed attributes of the routing protocol in the routing information are learned, and the routing information is distributed to the target At least one routing protocol in the routing table process enables the target routing table process to send the target routing table process to the target routing table corresponding to the target routing table process based on the learned routing information, and forwards the traffic based on the target routing table. Elastically adjust traffic during dynamic routing.
实施例三Embodiment three
本发明实施例以两个场景为例对上述实施例中的技术方案进行介绍,但上述实施例中的技术方案并不仅适用于本发明实施例中的场景,其能够适用于各类场景中通过网络设备对流量进行控制的情况。The embodiment of the present invention uses two scenarios as examples to introduce the technical solutions in the above embodiments, but the technical solutions in the above embodiments are not only applicable to the scenarios in the embodiments of the present invention, but can be applied to various scenarios through A situation where a network device controls traffic.
图3为网络部署中常见结构示意图,如图3所示,在常态下,数据包通过防火墙进行传递,但是,目前当防火墙出现故障时,往往没有其他网络传输路径,导致流量传递的中断。此时,通过本发明实施例中的技术方案,令公网的路由进程学习私网的路由进程中的路由信息,或者在私网和公网之间实现互相学习,通过学习到的路由信息得到对方路由协议中的路由,根据路由进行流量的转发,从而避免了当防火墙出现故障时造成的流量传输中断。Figure 3 is a schematic diagram of a common structure in network deployment. As shown in Figure 3, under normal conditions, data packets are transmitted through the firewall. However, when the firewall fails, there are often no other network transmission paths, resulting in interruption of traffic transmission. At this time, through the technical solution in the embodiment of the present invention, the routing process of the public network can learn the routing information in the routing process of the private network, or realize mutual learning between the private network and the public network, and obtain The route in the other party's routing protocol forwards traffic according to the route, thus avoiding the interruption of traffic transmission when the firewall fails.
图4为不支持路由学习时跨数据中心站点之间流量隔离示意图,如图4所示,不同的分支站点流量要相互隔离,需要各自独立维护一张路由表和一个平面的骨干网。每增加一个类型的站点需要新增一张路由表和一个平面的骨干网,扩展性弱、运维复杂度高。图5为支持路由学习时跨数据中心站点之间流量隔离示意图,如图5所示,通过本发明实施例中的方案,可以于不同分支站点之间建立公共管道,即由多个路由节点组成的网络,各分支站点与网络中的路由节点之间可以相互学习,当不同地区的站点之间需要进行通讯时,只需要将两个站点之间的路由节点之间进行学习,即可实现两个站点之间的流量转发。通过上述方案,降低了运维的复杂度,只需要维护骨干网管道,在增加一个类型的站点时不需要新增通道和路由表,从而实现流量的而弹性控制,适应性满足各个场景的需求。Figure 4 is a schematic diagram of traffic isolation between cross-data center sites when route learning is not supported. As shown in Figure 4, the traffic of different branch sites must be isolated from each other, and a routing table and a flat backbone network need to be maintained independently. Each additional type of site requires a new routing table and a flat backbone network, which has poor scalability and high O&M complexity. Figure 5 is a schematic diagram of traffic isolation between cross-data center sites when routing learning is supported. As shown in Figure 5, through the solution in the embodiment of the present invention, a common pipeline can be established between different branch sites, that is, it is composed of multiple routing nodes In the network, each branch site and the routing nodes in the network can learn from each other. When the sites in different regions need to communicate, they only need to learn from the routing nodes between the two sites to realize two Traffic forwarding between sites. Through the above solution, the complexity of operation and maintenance is reduced. Only the backbone network pipeline needs to be maintained. When adding a type of site, there is no need to add new channels and routing tables, so as to achieve flexible traffic control and adaptability to meet the needs of various scenarios. .
实施例四Embodiment four
图6为本发明实施例三提供的一种流量控制装置结构示意图。该装置适用于各类场景中通过设备对流量进行控制的情况,该装置可以由软件和/或硬件的方式实现,该装置可以集成在设备中,设备可以是网络设备,例如交换机、路由器、防火墙、NFV(NetworkFunction Virtualization,网络功能虚拟化)设备等多种网络设备。参见图6,该装置具体包括:FIG. 6 is a schematic structural diagram of a flow control device provided by Embodiment 3 of the present invention. The device is suitable for controlling traffic through devices in various scenarios. The device can be implemented by software and/or hardware, and the device can be integrated in the device. The device can be a network device, such as a switch, a router, a firewall , NFV (NetworkFunction Virtualization, network function virtualization) equipment and other network equipment. Referring to Figure 6, the device specifically includes:
配置信息获取模块310,用于获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;The configuration information acquisition module 310 is configured to acquire routing mutual guidance configuration information, wherein at least one routing table process as a learning object and a target routing table process as a party to be learned are recorded in the configuration information;
路由信息获取模块320,用于获取所述作为学习对象的各路由表进程的路由信息;A routing information acquisition module 320, configured to acquire the routing information of each routing table process as a learning object;
流量转发模块330,用于将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The traffic forwarding module 330 is configured to distribute the routing information of each routing table process as a learning object to a target routing table process, so that the target routing table process forwards traffic based on the learned routing information.
可选的,所述路由信息是通过所述路由表进程中预先开放的接口获取。Optionally, the routing information is acquired through a pre-opened interface in the routing table process.
可选的,每个路由表进程对应有各自的路由表,且每个路由表进程中运行至少一种路由协议;Optionally, each routing table process corresponds to its own routing table, and at least one routing protocol runs in each routing table process;
相应的,所述配置信息中还记载有作为学习对象的至少一个路由表进程中的至少一种路由协议,以及作为待学习方的目标路由表进程中的至少一种路由协议;Correspondingly, the configuration information also records at least one routing protocol in at least one routing table process as the learning object, and at least one routing protocol in the target routing table process as the party to be learned;
相应的,所述路由信息获取模块320,具体用于:Correspondingly, the routing information obtaining module 320 is specifically used for:
获取作为学习对象的各路由表进程中的至少一种路由协议的路由信息;Obtain the routing information of at least one routing protocol in each routing table process as a learning object;
相应的,所述流量转发模块330,包括:Correspondingly, the traffic forwarding module 330 includes:
向路由协议分发单元,用于将所述路由信息分发至目标路由表进程中的至少一种路由协议,使目标路由表进程基于学习到的路由信息生成路由条目,并将所述路由条目下发到目标路由表进程对应的目标路由表,并基于所述目标路由表对流量进行转发。To the routing protocol distribution unit, configured to distribute the routing information to at least one routing protocol in the target routing table process, make the target routing table process generate routing entries based on the learned routing information, and send the routing entries Go to the target routing table corresponding to the target routing table process, and forward the traffic based on the target routing table.
可选的,还包括:Optionally, also include:
标识模块,用于按照不同的路由协议对所述路由信息进行标识;An identification module, configured to identify the routing information according to different routing protocols;
相应的,所述流量转发模块330,包括:Correspondingly, the traffic forwarding module 330 includes:
按标识分发单元,用于依据所述配置信息,将所述路由信息按照所述标识分发至目标路由表进程中的至少一种路由协议。The distributing unit according to the identifier is configured to distribute the routing information to at least one routing protocol in the target routing table process according to the identifier according to the configuration information.
可选的,所述配置信息中还记载有路由过滤信息;Optionally, routing filtering information is also recorded in the configuration information;
相应的,还包括:Correspondingly, it also includes:
过滤模块,用于根据所述路由过滤信息对所述获取到的路由信息进行过滤;a filtering module, configured to filter the acquired routing information according to the routing filtering information;
相应的,所述流量转发模块330,包括:Correspondingly, the traffic forwarding module 330 includes:
过滤分发单元,用于将所述作为学习对象的各路由表进程的路由信息中经过滤后的路由信息分发至目标路由表进程。The filtering and distributing unit is configured to distribute the filtered routing information among the routing information of each routing table process as the learning object to the target routing table process.
可选的,所述配置信息中还记载有路由属性修改信息;Optionally, routing attribute modification information is also recorded in the configuration information;
相应的,还包括:Correspondingly, it also includes:
修改模块,用于根据所述路由属性修改信息判断所述获取到的路由信息中是否存在需要进行属性修改的信息,并在判断为需要时,对相应的路由信息属性进行修改;A modification module, configured to judge whether there is information that needs to be modified in the obtained routing information according to the routing attribute modification information, and modify the corresponding routing information attributes when it is judged to be necessary;
相应的,所述流量转发模块330,包括:Correspondingly, the traffic forwarding module 330 includes:
修改分发单元,用于将所述作为学习对象的各路由表进程的路由信息中经修改后的路由信息分发至目标路由表进程。The modification distribution unit is configured to distribute the modified routing information among the routing information of each routing table process as the learning object to the target routing table process.
本发明实施例的技术方案,配置信息获取模块获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;路由信息获取模块获取作为学习对象的各路由表进程的路由信息;流量转发模块将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。通过上述方案,实现了在路由表进程之间路由信息的学习,使学习部署于控制层面,解决了可能存在的流量黑洞、目的地不可达以及配置量过大等问题,实现了流量的弹性控制,能够灵活适应各类场景。According to the technical solution of the embodiment of the present invention, the configuration information acquisition module acquires routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as a learning object, and a target routing table process as a party to be learned; The information acquisition module obtains the routing information of each routing table process as the learning object; the traffic forwarding module distributes 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 is based on the learned route. The information forwards the traffic. Through the above solution, the learning of routing information between routing table processes is realized, and the learning is deployed at the control level, which solves the possible problems of traffic black holes, unreachable destinations, and excessive configuration volume, and realizes elastic control of traffic , can flexibly adapt to various scenarios.
实施例五Embodiment five
图7是本发明实施例五提供的一种设备的结构示意图。图7示出了适于用来实现本发明实施例的示例性设备412的框图。图7显示的设备412仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Fig. 7 is a schematic structural diagram of a device provided by Embodiment 5 of the present invention. FIG. 7 shows a block diagram of an exemplary device 412 suitable for implementing embodiments of the invention. The device 412 shown in FIG. 7 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.
如图7所示,设备412包括:一个或多个处理器416;存储器428,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器416执行,使得所述一个或多个处理器416实现本发明实施例所提供的流量控制方法,包括:As shown in Figure 7, the device 412 includes: one or more processors 416; a memory 428 for storing one or more programs, when the one or more programs are executed by the one or more processors 416, Enabling the one or more processors 416 to implement the flow control method provided in the embodiment of the present invention includes:
获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;Obtain routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as a learning object, and a target routing table process as a party to be learned;
获取所述作为学习对象的各路由表进程的路由信息;Obtain the routing information of each routing table process as the learning object;
将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
以通用设备的形式表现。设备412的组件可以包括但不限于:一个或者多个处理器或者处理器416,系统存储器428,连接不同系统组件(包括系统存储器428和处理器416)的总线418。Expressed as a generic device. Components of device 412 may include, but are not limited to: one or more processors or processor 416 , system memory 428 , bus 418 connecting various system components including system memory 428 and processor 416 .
总线418表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. These architectures include, by way of example, 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.
设备412典型地包括多种计算机系统可读存储介质。这些存储介质可以是任何能够被设备412访问的可用存储介质,包括易失性和非易失性存储介质,可移动的和不可移动的存储介质。Device 412 typically includes various computer system readable storage media. These storage media may be any available storage media that can be accessed by device 412, including volatile and nonvolatile storage media, removable and non-removable storage media.
系统存储器428可以包括易失性存储器形式的计算机系统可读存储介质,例如随机存取存储器(RAM)430和/或高速缓存存储器432。设备412可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统434可以用于读写不可移动的、非易失性磁存储介质(图7未显示,通常称为“硬盘驱动器”)。尽管图7中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光存储介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据存储介质接口与总线418相连。存储器428可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。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 . 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 and write to non-removable, non-volatile magnetic storage media (not shown in FIG. 7, commonly referred to as "hard drives"). Although not shown in FIG. 7, a disk drive for reading and writing to removable nonvolatile disks (e.g., "floppy disks") may be provided, as well as for removable nonvolatile optical disks (e.g., CD-ROM, DVD-ROM Or other optical storage media) CD-ROM drive. In these cases, each drive may be connected to bus 418 through one or more data storage media interfaces. Memory 428 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块442的程序/实用工具440,可以存储在例如存储器428中,这样的程序模块462包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块462通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 440 having a set (at least one) of program modules 442 may be stored, for example, in memory 428. Such program modules 462 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data , each or some combination of these examples may include implementations of network environments. Program modules 462 generally perform the functions and/or methodologies of the described embodiments of the invention.
设备412也可以与一个或多个外部设备414(例如键盘、指向设备、显示器426等)通信,还可与一个或者多个使得用户能与该设备412交互的设备通信,和/或与使得该设备412能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口422进行。并且,设备412还可以通过网络适配器420与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器420通过总线418与设备412的其它模块通信。应当明白,尽管图7中未示出,可以结合设备412使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Device 412 may also communicate with one or more external devices 414 (e.g., a keyboard, pointing device, display 426, etc.), and with one or more devices that enable a user to interact with Device 412 is capable of communicating with any device (eg, network card, modem, etc.) that communicates with one or more other computing devices. Such communication may occur through input/output (I/O) interface 422 . Also, device 412 may also communicate with one or more networks (eg, local area network (LAN), wide area network (WAN), and/or public networks, such as the Internet) via network adapter 420 . As shown, network adapter 420 communicates with 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 system, etc.
处理器416通过运行存储在系统存储器428中的多个程序中其他程序的至少一个,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的一种流量控制方法,包括:The processor 416 executes at least one of the other programs stored in the system memory 428 to perform various functional applications and data processing, for example, to implement a traffic control method provided by an embodiment of the present invention, including:
获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;Obtain routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as a learning object, and a target routing table process as a party to be learned;
获取所述作为学习对象的各路由表进程的路由信息;Obtain the routing information of each routing table process as the learning object;
将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
实施例六Embodiment six
本发明实施例六还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种流量控制方法,包括:Embodiment 6 of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a flow control method when executed by a computer processor, including:
获取路由互导配置信息,其中,所述配置信息中记载有作为学习对象的至少一个路由表进程,以及作为待学习方的目标路由表进程;Obtain routing mutual guidance configuration information, wherein the configuration information records at least one routing table process as a learning object, and a target routing table process as a party to be learned;
获取所述作为学习对象的各路由表进程的路由信息;Obtain the routing information of each routing table process as the learning object;
将所述作为学习对象的各路由表进程的路由信息分发至目标路由表进程,使目标路由表进程基于学习到的路由信息对流量进行转发。The routing information of each routing table process as the learning object is distributed to the target routing table process, so that the target routing table process forwards the traffic based on the learned routing information.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的存储介质的任意组合。计算机可读存储介质可以是计算机可读信号存储介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明实施例中,计算机可读存储介质可以是任何包含或存储程序的有形存储介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may use 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present invention, a computer-readable storage medium may be any tangible storage medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.
计算机可读的信号存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号存储介质还可以是计算机可读存储介质以外的任何计算机可读存储介质,该计算机可读存储介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal storage medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave traveling as a data signal. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal storage medium may also be any computer-readable storage medium other than a computer-readable storage medium that can be sent, propagated, or transported for use by or in conjunction with an instruction execution system, apparatus, or device the program used.
计算机可读存储介质上包含的程序代码可以用任何适当的存储介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。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.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或设备上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. 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 cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910522039.2A CN110266597B (en) | 2019-06-17 | 2019-06-17 | Flow control method, device, device 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, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110266597A true CN110266597A (en) | 2019-09-20 |
CN110266597B 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, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110266597B (en) |
Citations (6)
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 | 中兴通讯股份有限公司 | A method and system for simulating large-scale network topology |
CN103428085A (en) * | 2013-08-12 | 2013-12-04 | 杭州华三通信技术有限公司 | Method and device for rapidly switching RIP (routing information protocol) routings |
US20160063475A1 (en) * | 2014-08-28 | 2016-03-03 | Lance Yule | Facilitating Transactions Between Buyers And Sellers |
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 |
-
2019
- 2019-06-17 CN CN201910522039.2A patent/CN110266597B/en active Active
Patent Citations (6)
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 | 中兴通讯股份有限公司 | A method and system for simulating large-scale network topology |
CN103428085A (en) * | 2013-08-12 | 2013-12-04 | 杭州华三通信技术有限公司 | Method and device for rapidly switching RIP (routing information protocol) routings |
US20160063475A1 (en) * | 2014-08-28 | 2016-03-03 | Lance Yule | Facilitating Transactions Between Buyers And Sellers |
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 |
---|---|
CN110266597B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10116556B2 (en) | Techniques for routing and forwarding between multiple virtual routers implemented by a single device | |
US9025468B1 (en) | Custom routing decisions | |
CN104954245B (en) | Business function chain processing method and device | |
CN116235482A (en) | virtual layer 2 network | |
CN105191215A (en) | Data plane learning of bi-directional service chains | |
CN107547439B (en) | Network flow control method and computing node | |
US10050859B2 (en) | Apparatus for processing network packet using service function chaining and method for controlling the same | |
CN107733795B (en) | Ethernet virtual private network EVPN and public network intercommunication method and device | |
CN111556110B (en) | Automatic adaptation method for different physical service networks of private cloud system | |
US11757853B2 (en) | Method for restricting access to a management interface using standard management protocols and software | |
CN109922074B (en) | Method and apparatus for accessing out-of-band management network, management method, device, and medium | |
JP2017224895A (en) | Communication control program, communication control method and communication control device | |
CN109361602B (en) | A method and system for forwarding packets based on OpenStack cloud platform | |
CN108429652A (en) | SDN-based remote flow mirroring control method, implementation method and related equipment | |
CN104065553B (en) | Virtual network moving method and relevant device | |
US11121969B2 (en) | Routing between software defined networks and physical networks | |
US11444843B2 (en) | Simulating a system of computing systems | |
CN111884863B (en) | VPC service chain implementation method and system for cloud computing environment | |
CN111130978B (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
US10574481B2 (en) | Heterogeneous capabilities in an overlay fabric | |
CN114301839A (en) | A kind of multicast message transmission method and device | |
CN117880097A (en) | Cloud tenant EIP migration method, device, computer equipment and storage medium | |
CN115225708B (en) | Message forwarding method computer equipment and storage medium | |
CN110266597A (en) | Flow control method, device, equipment and storage medium | |
US20210119826A1 (en) | Layer-2 dedicated line network system and configuration method |
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 |