CN116366528A - Routing data generating method, electronic device, and computer-readable storage medium - Google Patents
Routing data generating method, electronic device, and computer-readable storage medium Download PDFInfo
- Publication number
- CN116366528A CN116366528A CN202310347991.XA CN202310347991A CN116366528A CN 116366528 A CN116366528 A CN 116366528A CN 202310347991 A CN202310347991 A CN 202310347991A CN 116366528 A CN116366528 A CN 116366528A
- Authority
- CN
- China
- Prior art keywords
- routing
- information
- shared
- private
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本公开的实施例公开了一种路由数据生成方法、电子设备及计算机可读存储介质。该方法包括:响应于待生成路由数据具有第一路由标识和第一路由组标识,从已存储路由信息中,获取第一路由组标识对应的第一共享路由属性信息,以及第一路由标识对应的第一私有路由属性信息;对第一共享路由属性信息和第一私有路由属性信息进行信息组装,以生成待生成路由数据。本公开的实施例能够减少冗余信息的存储,从而减少资源的浪费。
The embodiment of the present disclosure discloses a method for generating route data, an electronic device and a computer-readable storage medium. The method includes: in response to the fact that the routing data to be generated has a first routing identifier and a first routing group identifier, from the stored routing information, obtain the first shared routing attribute information corresponding to the first routing group identifier, and the first routing identifier corresponding to The first private routing attribute information; performing information assembly on the first shared routing attribute information and the first private routing attribute information to generate routing data to be generated. The embodiments of the present disclosure can reduce the storage of redundant information, thereby reducing waste of resources.
Description
技术领域technical field
本公开涉及通信技术领域,尤其涉及一种路由数据生成方法、电子设备及计算机可读存储介质。The present disclosure relates to the technical field of communication, and in particular, to a method for generating routing data, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
路由数据是网关设备提供网关服务的核心数据,因此,对路由数据的管理非常重要。Routing data is the core data for gateway devices to provide gateway services, therefore, the management of routing data is very important.
一般而言,网关数据由网关配置后台进行管理,具体地,可以将所有的路由配置信息均存储在网关配置后台中,网关配置后台可以定时或者不定时地依据自身存储的路由配置信息,进行路由数据的生成,并将生成的路由数据提供给网关设备。Generally speaking, gateway data is managed by the gateway configuration background. Specifically, all routing configuration information can be stored in the gateway configuration background. The gateway configuration background can perform routing according to the routing configuration information stored by itself at regular or irregular intervals. Data generation, and provide the generated routing data to the gateway device.
需要说明的是,采用上述方式,网关配置后台中会存储大量的冗余信息,这会造成资源的浪费。It should be noted that, with the above method, a large amount of redundant information will be stored in the gateway configuration background, which will cause waste of resources.
发明内容Contents of the invention
为了解决上述技术问题,提出了本公开。本公开的实施例提供了一种路由数据生成方法、电子设备及计算机可读存储介质。In order to solve the above-mentioned technical problems, the present disclosure is proposed. Embodiments of the present disclosure provide a method for generating routing data, electronic equipment, and a computer-readable storage medium.
根据本公开实施例的一个方面,提供了一种路由数据生成方法,包括:According to an aspect of an embodiment of the present disclosure, a method for generating routing data is provided, including:
响应于待生成路由数据具有第一路由标识和第一路由组标识,从已存储路由信息中,获取所述第一路由组标识对应的第一共享路由属性信息,以及所述第一路由标识对应的第一私有路由属性信息;In response to the fact that the routing data to be generated has a first routing identifier and a first routing group identifier, from the stored routing information, obtain first shared routing attribute information corresponding to the first routing group identifier, and the first routing identifier corresponding to The attribute information of the first private route;
对所述第一共享路由属性信息和所述第一私有路由属性信息进行信息组装,以生成所述待生成路由数据。Information assembly is performed on the first shared routing attribute information and the first private routing attribute information to generate the to-be-generated routing data.
根据本公开实施例的另一个方面,提供了一种路由数据生成装置,包括:According to another aspect of the embodiments of the present disclosure, a routing data generation device is provided, including:
获取模块,用于响应于待生成路由数据具有第一路由标识和第一路由组标识,从已存储路由信息中,获取所述第一路由组标识对应的第一共享路由属性信息,以及所述第一路由标识对应的第一私有路由属性信息;An acquisition module, configured to respond to the fact that the routing data to be generated has a first routing identifier and a first routing group identifier, from stored routing information, acquire the first shared routing attribute information corresponding to the first routing group identifier, and the First private route attribute information corresponding to the first route identifier;
生成模块,用于对所述第一共享路由属性信息和所述第一私有路由属性信息进行信息组装,以生成所述待生成路由数据。A generating module, configured to perform information assembly on the first shared routing attribute information and the first private routing attribute information to generate the to-be-generated routing data.
根据本公开实施例的再一个方面,提供了一种电子设备,包括:According to another aspect of the embodiments of the present disclosure, an electronic device is provided, including:
存储器,用于存储计算机程序产品;memory for storing computer program products;
处理器,用于执行所述存储器中存储的计算机程序产品,且所述计算机程序产品被执行时,实现上述路由数据生成方法。The processor is configured to execute the computer program product stored in the memory, and when the computer program product is executed, realize the above method for generating routing data.
根据本公开实施例的又一个方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时,实现上述路由数据生成方法。According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored, wherein, when the computer program instructions are executed by a processor, the above method for generating routing data is implemented.
根据本公开实施例的又一个方面,提供了一种计算机程序产品,包括计算机程序指令,所述计算机程序指令被处理器执行时实现上述路由数据生成方法。According to yet another aspect of the embodiments of the present disclosure, a computer program product is provided, including computer program instructions, and when the computer program instructions are executed by a processor, the above method for generating routing data is implemented.
本公开的实施例中,在待生成路由数据具有第一路由标识和第一路由组标识的情况下,可以从已存储路由信息中,获取第一路由组标识对应的第一共享路由属性信息,以及第一路由标识对应的第一私有路由属性信息,通过对第一共享路由属性信息和第一私有路由属性信息进行信息组装,即可生成待生成路由数据。这样,通过将路由数据进行分组,可以将同一路由数据组中的所有路由数据的相同属性抽取出来作为共享路由属性信息进行存储,并另外针对各个路由数据独有的属性进行私有路由属性信息的存储,因此,已存储路由信息中不会存在大量的冗余信息,已存储路由信息中存储的信息非常精简,从而有利于减少资源的浪费。In the embodiment of the present disclosure, when the routing data to be generated has a first routing identifier and a first routing group identifier, the first shared routing attribute information corresponding to the first routing group identifier can be obtained from the stored routing information, As well as the first private routing attribute information corresponding to the first routing identifier, the routing data to be generated can be generated by assembling the information of the first shared routing attribute information and the first private routing attribute information. In this way, by grouping routing data, the same attributes of all routing data in the same routing data group can be extracted and stored as shared routing attribute information, and private routing attribute information can be stored for the unique attributes of each routing data , therefore, there will not be a large amount of redundant information in the stored routing information, and the information stored in the stored routing information is very concise, thereby helping to reduce waste of resources.
下面通过附图和实施例,对本公开的技术方案做进一步的详细描述。The technical solution of the present disclosure will be described in further detail below with reference to the drawings and embodiments.
附图说明Description of drawings
通过结合附图对本公开实施例进行更详细的描述,本公开的上述以及其他目的、特征和优势将变得更加明显。附图用来提供对本公开实施例的进一步理解,并且构成说明书的一部分,与本公开实施例一起用于解释本公开,并不构成对本公开的限制。在附图中,相同的参考标号通常代表相同部件或步骤。The above and other objects, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail with reference to the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure, and constitute a part of the specification, and are used together with the embodiments of the present disclosure to explain the present disclosure, and do not constitute limitations to the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
图1是本公开一示例性实施例提供的路由数据生成方法的流程示意图。Fig. 1 is a schematic flowchart of a method for generating routing data provided by an exemplary embodiment of the present disclosure.
图2是本公开另一示例性实施例提供的路由数据生成方法的流程示意图。Fig. 2 is a schematic flowchart of a method for generating routing data provided by another exemplary embodiment of the present disclosure.
图3是本公开再一示例性实施例提供的路由数据生成方法的流程示意图。Fig. 3 is a schematic flowchart of a method for generating routing data provided by yet another exemplary embodiment of the present disclosure.
图4是本公开又一示例性实施例提供的路由数据生成方法的流程示意图。Fig. 4 is a schematic flowchart of a method for generating routing data provided by another exemplary embodiment of the present disclosure.
图5是本公开又一示例性实施例提供的路由数据生成方法中用户输入选定参数的示意图。Fig. 5 is a schematic diagram of a user inputting selected parameters in a routing data generation method provided by another exemplary embodiment of the present disclosure.
图6是本公开又一示例性实施例提供的路由数据生成方法的流程示意图。Fig. 6 is a schematic flowchart of a method for generating routing data provided by another exemplary embodiment of the present disclosure.
图7是本公开一示例性实施例提供的路由数据生成装置的结构示意图。Fig. 7 is a schematic structural diagram of a routing data generation device provided by an exemplary embodiment of the present disclosure.
图8是本公开一示例性实施例提供的电子设备的结构图。Fig. 8 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
下面,将参考附图详细地描述根据本公开的示例实施例。显然,所描述的实施例仅仅是本公开的一部分实施例,而不是本公开的全部实施例,应理解,本公开不受这里描述的示例实施例的限制。Hereinafter, exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited by the exemplary embodiments described here.
应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开的范围。It should be noted that relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
本领域技术人员可以理解,本公开实施例中的“第一”、“第二”等术语仅用于区别不同步骤、设备或模块等,不代表特定技术含义,也不表示必然逻辑顺序。Those skilled in the art can understand that terms such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and do not represent specific technical meanings, nor do they represent a necessary logical order.
还应理解,在本公开实施例中,“多个”可以指两个或两个以上,“至少一个”可以指一个、两个或两个以上。It should also be understood that in the embodiments of the present disclosure, "plurality" may refer to two or more than two, and "at least one" may refer to one, two or more than two.
还应理解,对于本公开实施例中提及的任一部件、数据或结构,在没有明确限定或者在前后文给出相反启示的情况下,一般可以理解为一个或多个。It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more unless there is a clear limitation or a contrary suggestion is given in the context.
另外,本公开中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本公开中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in the present disclosure is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, and A and B exist at the same time , there are three cases of B alone. In addition, the character "/" in the present disclosure generally indicates that the contextual objects are an "or" relationship.
还应理解,本公开对各个实施例的描述着重强调各个实施例之间的不同之处,其相同或相似之处可以相互参考,为了简洁,不再一一赘述。It should also be understood that the description of the various embodiments in the present disclosure emphasizes the differences between the various embodiments, and the same or similar points can be referred to each other, and for the sake of brevity, details are not repeated here.
同时,应当明白,为了便于描述,附图中所示出的各个部分的尺寸并不是按照实际的比例关系绘制的。At the same time, it should be understood that, for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way intended as any limitation of the disclosure, its application or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.
本公开实施例可以应用于终端设备、计算机系统、服务器等电子设备,其可与众多其它通用或专用计算系统环境或配置一起操作。适于与终端设备、计算机系统、服务器等电子设备一起使用的众所周知的终端设备、计算系统、环境和/或配置的例子包括但不限于:个人计算机系统、服务器计算机系统、瘦客户机、厚客户机、手持或膝上设备、基于微处理器的系统、机顶盒、可编程消费电子产品、网络个人电脑、小型计算机系统、大型计算机系统和包括上述任何系统的分布式云计算技术环境,等等。Embodiments of the present disclosure may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which may operate with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments and/or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick client computers, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, and distributed cloud computing technology environments including any of the foregoing, among others.
终端设备、计算机系统、服务器等电子设备可以在由计算机系统执行的计算机系统可执行指令(诸如程序模块)的一般语境下描述。程序模块可以包括例程、程序、目标程序、组件、逻辑、数据结构等等,它们执行特定的任务或者实现特定的抽象数据类型。计算机系统/服务器可以在分布式云计算环境中实施,分布式云计算环境中,任务是由通过通信网络链接的远程处理设备执行的。在分布式云计算环境中,程序模块可以位于包括存储设备的本地或远程计算系统存储介质上。Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by the computer system. Program modules may include routines, programs, objects, components, logic, data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system/server can be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computing system storage media including storage devices.
示例性方法exemplary method
图1是本公开一示例性实施例提供的路由数据生成方法的流程示意图。图1所示的方法可以应用于网关配置后台等电子设备,图1所示的方法可以包括步骤110和步骤120,下面对各步骤分别进行说明。Fig. 1 is a schematic flowchart of a method for generating routing data provided by an exemplary embodiment of the present disclosure. The method shown in FIG. 1 can be applied to electronic devices such as a gateway configuration background, and the method shown in FIG. 1 can include step 110 and step 120, and each step will be described separately below.
步骤110,响应于待生成路由数据具有第一路由标识和第一路由组标识,从已存储路由信息中,获取第一路由组标识对应的第一共享路由属性信息,以及第一路由标识对应的第一私有路由属性信息。
需要说明的是,本公开的实施例中涉及的任一路由数据可以均具有路由标识,例如具有路由id,路由标识可以用于区分不同路由数据;本公开的实施例中涉及的至少部分路由数据可以具有路由组标识,例如具有路由组id,路由组标识可以用于区分不同路由数据组。It should be noted that any routing data involved in the embodiments of the present disclosure may have a routing identifier, such as a routing id, and the routing identifier can be used to distinguish different routing data; at least part of the routing data involved in the embodiments of the present disclosure There may be a routing group identifier, for example, a routing group id, and the routing group identifier can be used to distinguish different routing data groups.
可选地,已存储路由信息可以包括生成任一路由数据必不可少的信息,已存储路由信息可以采用数据表的形式进行存储,为了布局清楚,后续再对已存储路由信息的组成进行详细介绍。Optionally, the stored routing information may include information necessary to generate any routing data, and the stored routing information may be stored in the form of a data table. For a clear layout, the composition of the stored routing information will be described in detail later .
可选地,第一路由组标识对应的第一共享路由属性信息可以是指:具有第一路由组标识的路由数据组中的所有路由数据共享的路由属性信息。Optionally, the first shared routing attribute information corresponding to the first routing group identifier may refer to: routing attribute information shared by all routing data in the routing data group with the first routing group identifier.
可选地,第一路由标识对应的第一私有路由属性信息可以是指:待生成路由数据独有,而具有第一路由组标识的路由数据组中的其余路由数据所不具有的路由属性信息。Optionally, the first private routing attribute information corresponding to the first routing identifier may refer to routing attribute information that is unique to the routing data to be generated but not possessed by the rest of the routing data in the routing data group with the first routing group identifier .
步骤120,对第一共享路由属性信息和第一私有路由属性信息进行信息组装,以生成待生成路由数据。
在步骤120中,通过对第一共享路由属性信息和第一私有路由属性信息进行信息组装,可以生成JSON格式(其是一种轻量级的数据交换格式)的路由数据,该路由数据可以作为待生成路由数据。In
需要说明的是,通过执行上述的步骤110至步骤120,可以得到一个待处理路由数据,通过多次执行上述的步骤110至步骤120,可以得到大量的路由数据,网关配置后台可以将这些路由数据均提供给网关设备,这样,利用网关配置后台提供的这些路由数据,网关设备能够提供可靠的网关服务。It should be noted that by executing the
本公开的实施例中,在待生成路由数据具有第一路由标识和第一路由组标识的情况下,可以从已存储路由信息中,获取第一路由组标识对应的第一共享路由属性信息,以及第一路由标识对应的第一私有路由属性信息,通过对第一共享路由属性信息和第一私有路由属性信息进行信息组装,即可生成待生成路由数据。这样,通过将路由数据进行分组,可以将同一路由数据组中的所有路由数据的相同属性抽取出来作为共享路由属性信息进行存储,并另外针对各个路由数据独有的属性进行私有路由属性信息的存储,因此,已存储路由信息中不会存在大量的冗余信息,已存储路由信息中存储的信息非常精简,从而有利于减少资源的浪费。In the embodiment of the present disclosure, when the routing data to be generated has a first routing identifier and a first routing group identifier, the first shared routing attribute information corresponding to the first routing group identifier can be obtained from the stored routing information, As well as the first private routing attribute information corresponding to the first routing identifier, the routing data to be generated can be generated by assembling the information of the first shared routing attribute information and the first private routing attribute information. In this way, by grouping routing data, the same attributes of all routing data in the same routing data group can be extracted and stored as shared routing attribute information, and private routing attribute information can be stored for the unique attributes of each routing data , therefore, there will not be a large amount of redundant information in the stored routing information, and the information stored in the stored routing information is very concise, thereby helping to reduce waste of resources.
在一个可选示例中,已存储路由信息包括:第一信息集合、第二信息集合和第三信息集合,第一信息集合中记载有路由组标识与共享路由定义路径前缀之间的对应关系,第二信息集合中记载有多个路由规则信息,第二信息集合中的每个路由规则信息对应一个路由标识或者一个路由组标识,第三信息集合中记载有多个路由基础信息,每个基础路由基础信息对应一个路由标识或者一个路由组标识;In an optional example, the stored routing information includes: a first information set, a second information set, and a third information set, the first information set records the correspondence between the routing group identifier and the path prefix of the shared route definition, A plurality of routing rule information is recorded in the second information set, each routing rule information in the second information set corresponds to a routing identifier or a routing group identifier, and a plurality of routing basic information is recorded in the third information set, each basic The routing basic information corresponds to a routing identifier or a routing group identifier;
在图1所示实施例的基础上,如图2所示,步骤110,包括:On the basis of the embodiment shown in Figure 1, as shown in Figure 2,
步骤1101,基于第一信息集合,确定第一路由组标识对应的第一共享路由定义路径前缀;
步骤1103,基于第二信息集合,确定第一路由组标识对应的第一共享路由规则信息,以及第一路由标识对应的第一私有路由规则信息;
步骤1105,基于第三信息集合,确定第一路由标识对应的第一路由基础信息,并从第一路由基础信息中,获取第一路由标识对应的第一私有路由定义路径后缀;
其中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息。Wherein, the first shared route attribute information includes: first shared route definition path prefix and first shared route rule information, and the first private route attribute information includes: first private route definition path suffix and first private route rule information.
可选地,第一信息集合、第二信息集合、第三信息集合均可以呈数据表的形式。Optionally, the first information set, the second information set, and the third information set may all be in the form of data tables.
可选地,第二信息集合的数量可以为两个,其中一个第二信息集合用于记载多个断言器,另外一个第二信息集合用于记载多个过滤器,多个断言器中的每个断言器可以作为一条路由规则信息,多个过滤器中的每个过滤器也可以作为一条路由规则信息。Optionally, the number of the second information sets may be two, wherein one second information set is used to record multiple asserters, and the other second information set is used to record multiple filters, and each of the multiple asserters An asserter can be used as a routing rule information, and each filter in multiple filters can also be used as a routing rule information.
需要说明的是,如果两个第二信息集合均呈数据表的形式,则两个第二信息集合可以分别称为断言器表和过滤器表。另外,第二信息集合的数量也可以仅为一个,这个第二信息集合中可以同时记载多个断言器和多个过滤器。It should be noted that, if the two second information sets are both in the form of data tables, the two second information sets may be called an asserter table and a filter table respectively. In addition, the number of the second information set may be only one, and multiple asserters and multiple filters may be recorded in this second information set at the same time.
可选地,第三信息集合中的每个路由基础信息可以包括以下至少一项:信息标识(例如用于表征该路由基础信息在第三信息集合中的排序位置的序号)、创建时间、创建人、修改时间、修改人、用于表征该路由基础信息对应路由数据还是路由数据组的字段。如果该路由基础信息对应路由数据组,该路由基础信息还可以包括该路由数据组的路由组标识。如果该路由基础信息对应路由数据,该路由基础信息还可以包括该路由数据的路由标识,并且,如果该路由数据还属于某一路由数据组,该路由基础信息还可以包括该路由数据组的路由组标识,以及该路由数据在该路由数据组下的子标识,这样,通过该路由标识、该路由组标识以及该子标识,能够较好地表征该路由数据与该路由数据组之间的关联,由此能够高效可靠地识别同时具有路由标识和路由组标识的路由数据。Optionally, each routing basic information in the third information set may include at least one of the following: information identifier (such as a sequence number used to characterize the sorting position of the routing basic information in the third information set), creation time, creation Person, modification time, modification person, a field used to indicate whether the routing basic information corresponds to routing data or routing data group. If the basic routing information corresponds to a routing data group, the basic routing information may also include a routing group identifier of the routing data group. If the routing basic information corresponds to routing data, the routing basic information may also include the routing identifier of the routing data, and if the routing data also belongs to a certain routing data group, the routing basic information may also include the route of the routing data group Group identifier, and the sub-identification of the routing data under the routing data group, so that through the routing identifier, the routing group identifier and the sub-identification, the association between the routing data and the routing data group can be better represented , thus efficiently and reliably identifying routing data that has both routing identifiers and routing group identifiers.
在一个例子中,第一信息集合中可以记载有表1中所示的信息:In an example, the information shown in Table 1 may be recorded in the first information set:
表1Table 1
第二信息集合的数量可以为两个,其中一个第二信息集合中可以记载有表2中所示的信息,另一个第二信息集合中可以记载有表3所示的信息:The quantity of the second information set can be two, and one of the second information sets can record the information shown in Table 2, and the other second information set can record the information shown in Table 3:
表2Table 2
表3table 3
第三信息集合中可以记载有表4所示的信息:The information shown in Table 4 may be recorded in the third information set:
表4Table 4
假设第一路由标识为r1,第一路由组标识为Z1,则由上面的表1可知,与Z1对应的第一共享路由定义路径前缀为/console/marketing/authorization;由上面的表2和表3可知,与Z1对应的第一共享路由规则信息可以包括断言器a、断言器b、过滤器c,与r1对应的第一私有路由规则信息可以包括断言器m、过滤器g;由上面的表4可知,与r1对应的第一路由基础信息为路由基础信息2,路由基础信息2中可以包括一私有路由定义路径后缀,该私有路由定义路径后缀即可作为第一私有路由定义路径后缀。至此,第一共享路由定义路径前缀、第一共享路由规则信息、第一私有路由规则信息、第一私有路由定义路径后缀均成功获得,之后通过信息组装即可生成r1对应的路由数据(即待生成路由数据)。Assuming that the first routing ID is r1 and the first routing group ID is Z1, it can be seen from Table 1 above that the first shared routing definition path prefix corresponding to Z1 is /console/marketing/authorization; from the above Table 2 and Table 3, it can be seen that the first shared routing rule information corresponding to Z1 may include asserter a, asserter b, and filter c, and the first private routing rule information corresponding to r1 may include asserter m and filter g; from the above Table 4 shows that the first routing basic information corresponding to r1 is routing basic information 2, and routing basic information 2 may include a private routing definition path suffix, and the private routing definition path suffix can be used as the first private routing definition path suffix. So far, the path prefix of the first shared routing definition, the first shared routing rule information, the first private routing rule information, and the first private routing definition path suffix have all been successfully obtained, and then the routing data corresponding to r1 can be generated through information assembly (that is, to be generate routing data).
本公开的实施例中,参考第一信息集合、第二信息集合和第三信息集合,能够高效可靠地确定第一共享路由定义路径前缀、第一共享路由规则信息、第一私有路由规则信息、第一私有路由定义路径后缀,以便据此实现待生成路由数据的生成,并且,通过利用第一信息集合存储共享路由定义路径前缀,利用第二信息集合存储路由规则信息,并利用第三信息集合存储路由基础信息,能够使路由相关信息的存储较为规整,便于信息查找,有利于保证路由数据的生成速度。In the embodiments of the present disclosure, referring to the first information set, the second information set and the third information set, it is possible to efficiently and reliably determine the first shared routing definition path prefix, the first shared routing rule information, the first private routing rule information, The first private route defines a path suffix, so as to realize the generation of routing data to be generated accordingly, and, by using the first information set to store the shared route definition path prefix, use the second information set to store routing rule information, and use the third information set Storing the routing basic information can make the storage of routing-related information more regular, facilitate information search, and help ensure the generation speed of routing data.
在图2所示实施例的基础上,如图3所示,该方法还包括步骤130、步骤140、步骤150、步骤160和步骤170。On the basis of the embodiment shown in FIG. 2 , as shown in FIG. 3 , the method further includes
步骤130,接收用户对第二信息集合或者第三信息集合的操作请求。
可选地,用户可以通过触控输入、键盘输入、鼠标输入、语音输入等方式,发起对第二信息集合或者第三信息集合的操作请求;其中,操作请求可以用于请求对第二信息集合或者第三信息集合进行增、删、改、查等。Optionally, the user can initiate an operation request for the second information set or the third information set through touch input, keyboard input, mouse input, voice input, etc.; where the operation request can be used to request the second information set Or the third information set is added, deleted, modified, checked, etc.
步骤140,接收用户输入的验证信息。
可选地,用户可以通过键盘输入、鼠标输入、语音输入等方式,进行验证信息的输入;验证信息可以包括用户的标识信息,例如包括用户的UCID(Universal CallIdentifier)。Optionally, the user may input verification information through keyboard input, mouse input, voice input, etc.; the verification information may include the user's identification information, for example, the user's UCID (Universal Call Identifier).
步骤150,确定用户选择的第一微服务。
可选地,用户可以通过键盘输入、鼠标输入、语音输入等方式,从多个微服务中选择一个微服务,用户选择的微服务即可作为第一微服务。Optionally, the user can select a microservice from multiple microservices through keyboard input, mouse input, voice input, etc., and the microservice selected by the user can be used as the first microservice.
可选地,在房屋租售场景下,新房可以作为一个微服务,二手房可以作为另一个微服务,厂房可以作为再一个微服务。Optionally, in the housing rental and sales scenario, the new house can be used as a microservice, the second-hand house can be used as another microservice, and the factory building can be used as another microservice.
需要说明的是,本公开的实施例中涉及的任一路由数据均可以归属于一个微服务,该路由数据所属的微服务可以通过相应路由基础信息中的application_id字段进行表示。It should be noted that any routing data involved in the embodiments of the present disclosure can belong to a microservice, and the microservice to which the routing data belongs can be represented by the application_id field in the corresponding routing basic information.
步骤160,基于验证信息,确定用户对应于第一微服务的权限信息。
可选地,可以预先存储第一微服务对应的管理员列表,管理员列表可以包括至少一个管理员各自的UCID;其中,至少一个管理员可以包括以下至少一项:普通管理员、超级管理员。Optionally, a list of administrators corresponding to the first microservice may be stored in advance, and the list of administrators may include the respective UCIDs of at least one administrator; where at least one administrator may include at least one of the following: ordinary administrators, super administrators .
验证信息可以包括用户的UCID,如果用户的UCID位于管理员列表中,则可以判定用户不具有第一微服务对应的操作权限,如果用户的UCID位于管理员列表中,则可以确定用户具有第一微服务对应的操作权限,进一步地,还可以确定用户具体具有第一微服务对应的何种操作权限,由此可以得到用户对应于第一微服务的权限信息。The verification information may include the user's UCID. If the user's UCID is in the administrator list, it can be determined that the user does not have the operation authority corresponding to the first microservice. If the user's UCID is in the administrator list, it can be determined that the user has the first microservice. The operation authority corresponding to the microservice, and further, it can also be determined what kind of operation authority the user has corresponding to the first microservice, so that the authority information of the user corresponding to the first microservice can be obtained.
步骤170,基于权限信息,对操作请求进行处理。
在一种可选的实施方式中,In an alternative embodiment,
在步骤170之前,该方法还包括:Before
获取第一微服务对应的第一服务公共信息;Obtaining the public information of the first service corresponding to the first microservice;
步骤170,包括以下至少一项:
响应于权限信息表征用户不具有第一微服务对应的操作权限,不响应操作请求,且显示第一服务公共信息和第一微服务对应的管理员列表;Responding to the authority information indicating that the user does not have the operation authority corresponding to the first microservice, does not respond to the operation request, and displays the public information of the first service and a list of administrators corresponding to the first microservice;
响应于权限信息表征用户具有第一微服务对应的第一类操作权限,响应操作请求,并显示第一服务公共信息;Responding to the authority information indicating that the user has the first type of operation authority corresponding to the first microservice, responding to the operation request, and displaying the first service public information;
响应于权限信息表征用户具有第一微服务对应的第二类操作权限,响应操作请求,并显示第一服务公共信息和第一微服务对应的预设配置页面。In response to the permission information indicating that the user has the second type of operation permission corresponding to the first microservice, respond to the operation request, and display the public information of the first service and a preset configuration page corresponding to the first microservice.
可选地,可以预先设置第四信息集合,第四信息集合中可以记载有微服务与服务公共信息之间的对应关系,服务公共信息可以包括以下至少一项:服务标识、转发地址;其中,服务标识包括但不限于服务ID、服务名称等。Optionally, a fourth information set may be preset, and the fourth information set may record the correspondence between microservices and service public information, and the service public information may include at least one of the following: service identifier, forwarding address; wherein, Service identifiers include but are not limited to service IDs, service names, and so on.
可选地,第四信息集合既可以位于已存储路由信息中,也可以位于已存储路由信息之外。Optionally, the fourth information set may be located in the stored routing information, or located outside the stored routing information.
可选地,第一类操作权限可以为普通管理员对应的操作权限,第二类操作权限可以为超级管理员对应的操作权限。Optionally, the first type of operation authority may be the operation authority corresponding to the ordinary administrator, and the second type of operation authority may be the operation authority corresponding to the super administrator.
这种实施方式中,根据第四信息集合中记载的对应关系,可以高效可靠地确定第一微服务对应的第一服务公共信息。In this implementation manner, according to the corresponding relationship recorded in the fourth information set, the first service public information corresponding to the first microservice can be determined efficiently and reliably.
如果用户对应于第一微服务的权限信息表征用户不具有第一微服务对应的操作权限,可以不对操作请求进行响应,例如,假设第三信息集合中的某一路由基础信息中的application_id字段指示当前路由基础信息对应的路由数据归属于第一微服务,则不允许用户对该路由基础信息进行增、删、改、查等,另外,还可以向用户呈现第一服务公共信息和第一微服务对应的管理员列表,以方便用户查看第一服务公共信息,并且,用户可以联系第一微服务的管理员给自己开通与第一微服务对应的操作权限。If the authority information of the user corresponding to the first microservice indicates that the user does not have the operation authority corresponding to the first microservice, the user may not respond to the operation request, for example, assuming that the application_id field in a certain routing basic information in the third information set indicates The routing data corresponding to the current basic routing information belongs to the first microservice, so users are not allowed to add, delete, modify, and check the basic routing information. In addition, the public information of the first service and the first microservice can also be presented to the user The administrator list corresponding to the service is convenient for the user to view the public information of the first service, and the user can contact the administrator of the first microservice to enable the operation authority corresponding to the first microservice.
如果用户对应于第一微服务的权限信息表征用户具有第一微服务对应的第一操作权限,可以对操作请求进行响应,即允许用户对第二信息集合或者第三信息集合进行增、删、改、查等,另外,还可以向用户呈现第一服务公共信息。If the permission information of the user corresponding to the first microservice indicates that the user has the first operation permission corresponding to the first microservice, the user can respond to the operation request, that is, allow the user to add, delete, and delete the second information set or the third information set. In addition, the public information of the first service can also be presented to the user.
如果用户对应于第一微服务的权限信息表征用户具有第一微服务对应的第二类操作权限,除了对操作请求进行响应以及向用户呈现第一服务公共信息之外,还可以向用户呈现第一微服务对应的预设配置页面,预设配置页面可以为第一微服务的高级配置页面,用户可以根据实际需求,在高级配置页面进行操作,以针对第二信息集合或者第三信息集合进行高级配置,例如,在第一类操作权限下,用户可能仅在一定数值范围内修改第三信息集合中的某一数值,而在第二类操作权限下,通过高级配置页面,用户能够将第三信息集合中的该数值修改为自身所需的任意数值。If the authority information of the user corresponding to the first microservice indicates that the user has the second type of operation authority corresponding to the first microservice, in addition to responding to the operation request and presenting the public information of the first service to the user, it is also possible to present the second service authority to the user. A preset configuration page corresponding to a microservice. The preset configuration page can be the advanced configuration page of the first microservice. Users can operate on the advanced configuration page according to actual needs, so as to perform operations on the second information set or the third information set. For advanced configuration, for example, under the first type of operation authority, the user may only modify a certain value in the third information set within a certain value range, while under the second type of operation authority, through the advanced configuration page, the user can modify the first The value in the three information sets is modified to any value required by itself.
本公开的实施例中,在接收用户对第二信息集合或者第三信息集合的操作请求的情况下,可以参考用户输入的验证信息,确定用户对应于待生成路由数据所属的第一微服务的权限信息,以便参考所确定的权限信息,以合适的方式对操作请求进行处理,这样,通过权限控制,可以保证只有经过授权的人员才能对已存储路由信息中相应服务下的路由信息进行操作,从而有利于保证已存储路由信息的安全性和可靠性。此外,每个路由数据均归属于对应的微服务,这样有利于实现不同业务之间的路由数据隔离,从而避免不同业务之间相互影响。In the embodiment of the present disclosure, when receiving the user's operation request for the second information set or the third information set, it can be determined that the user corresponds to the first microservice to which the routing data to be generated belongs by referring to the verification information input by the user. Authority information, in order to refer to the determined authority information, and process the operation request in an appropriate way. In this way, through authority control, it can be ensured that only authorized personnel can operate the routing information under the corresponding service in the stored routing information. Therefore, it is beneficial to ensure the security and reliability of the stored routing information. In addition, each routing data belongs to the corresponding microservice, which is conducive to the isolation of routing data between different businesses, thereby avoiding mutual influence between different businesses.
在图2所示实施例的基础上,如图4所示,该方法还包括步骤175、步骤180、步骤185和步骤190。On the basis of the embodiment shown in FIG. 2 , as shown in FIG. 4 , the method further includes
步骤175,显示多个路由属性选项。
可选地,如图5所示,多个路由属性选项可以包括接口统一资源标识符(UniformResource Identifier,URI)选项、登录选项、权限点选项等。Optionally, as shown in FIG. 5 , the multiple route attribute options may include an interface Uniform Resource Identifier (UniformResource Identifier, URI) option, a login option, an authority point option, and the like.
步骤180,接收用户输入的路由配置操作;其中,路由配置操作用于针对多个路由属性选项分别输入选定参数。
可选地,用户可以通过键盘输入、鼠标输入、语音输入等方式,执行路由配置操作,例如,用户可以在图5中“接口uri”后方的矩形框中填写某一接口URI,选中图5中“是否需要登录”后方的“是”或者“否”,在图5中“权限点”后方的矩形框中的下拉菜单中选择所需的权限点,用户填写的接口URI可以作为针对接口URI选项输入的选定参数,用户选中的“是”或者“否”可以作为针对登录选项输入的选定参数,用户选择的权限点可以作为针对权限点选项输入的选定参数。Optionally, users can perform routing configuration operations through keyboard input, mouse input, voice input, etc. For example, users can fill in a certain interface URI in the rectangular box behind "Interface Uri" in Figure 5, and select the "Yes" or "No" behind "Do you need to log in", select the required permission point from the drop-down menu in the rectangular box behind "Permission Point" in Figure 5, and the interface URI filled in by the user can be used as an option for the interface URI The selected parameter input, "Yes" or "No" selected by the user may be used as the selected parameter input for the login option, and the permission point selected by the user may be used as the selected parameter input for the permission point option.
步骤185,对应于路由配置操作确定第二路由标识。
在步骤185中,可以对第三信息集合中的所有标识进行遍历,并按照预设规则,生成不同于第三信息集合中的所有标识的另一标识,生成的该标识即可作为第二路由标识。In
假设第三信息集合中的所有标识均呈数值ID形式,则可以确定第三信息集合中数值最大的ID,将该数值最大的ID与1的和值作为第二路由标识。Assuming that all the identifiers in the third information set are in the form of numerical IDs, the ID with the largest numerical value in the third information set may be determined, and the sum of the ID with the largest numerical value and 1 is used as the second routing identifier.
步骤190,基于多个路由属性选项各自对应的选定参数,以及第二路由标识,分别向第二信息集合和第三信息集合中添加相应信息。Step 190: Add corresponding information to the second information set and the third information set respectively based on the selected parameters corresponding to the plurality of routing attribute options and the second routing identifier.
延续上述针对图5的例子,假设用户填写的接口URI为“/api/v1/frame”,用户选中“是”,则可以向第三信息集合中添加一条新的路由基础信息,该路由基础信息与第二路由标识对应,且该路由基础信息中的某一位置放置有“/api/v1/frame”,并且,可以向第二信息集合中添加一新的路由规则信息,该路由规则信息与第二路由标识对应,且该路由规则信息用于表示需要进行登录。Continuing the above example for Figure 5, assuming that the interface URI filled in by the user is "/api/v1/frame", and the user selects "Yes", a new piece of basic routing information can be added to the third information set. The basic routing information Corresponding to the second routing identifier, and "/api/v1/frame" is placed in a certain position in the routing basic information, and a new routing rule information can be added to the second information set, and the routing rule information is the same as The second routing identifier corresponds, and the routing rule information is used to indicate that login is required.
本公开的实施例中,通过以可视化方式向用户呈现多个路由属性选项,用户可以根据实际需求,针对多个路由属性选项进行选定参数的输入,通过简单的输入操作,可以自动向第二信息集合和第三信息集合中添加相应信息,后续可以根据添加的这些信息,自动生成复杂的JSON格式的路由数据。In the embodiment of the present disclosure, by presenting multiple routing attribute options to the user in a visual manner, the user can input selected parameters for multiple routing attribute options according to actual needs, and through a simple input operation, it can automatically send to the second Corresponding information is added to the information set and the third information set, and complex routing data in JSON format can be automatically generated subsequently based on the added information.
在一个可选示例中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息;In an optional example, the first shared route attribute information includes: the first shared route definition path prefix and the first shared route rule information, and the first private route attribute information includes: the first private route definition path suffix and the first private route rule information;
对第一共享路由属性信息和第一私有路由属性信息进行信息组装,以生成待生成路由数据,包括:Information assembly is performed on the first shared routing attribute information and the first private routing attribute information to generate routing data to be generated, including:
响应于第一共享路由规则信息中的第一路由规则信息与第一私有路由规则信息中的第二路由规则信息相冲突,对第一共享路由定义路径前缀、第一共享路由规则信息中除了第一路由规则信息之外的路由规则信息、第一私有路由定义路径后缀、第一私有路由规则信息进行信息组装,以生成待生成路由数据。In response to the conflict between the first routing rule information in the first shared routing rule information and the second routing rule information in the first private routing rule information, define a path prefix for the first shared route, except the first shared routing rule information in the first shared routing rule information Routing rule information other than the routing rule information, the first private routing definition path suffix, and the first private routing rule information are assembled to generate routing data to be generated.
需要说明的是,第一共享路由定义路径前缀、第一共享路由规则信息、第一私有路由定义路径后缀和第一私有路由规则信息的确定方式参照上文中的相关介绍即可,在此不再赘述。It should be noted that the determination method of the first shared route definition path prefix, the first shared route rule information, the first private route definition path suffix and the first private route rule information can refer to the relevant introduction above, and will not be repeated here. repeat.
假设第一共享路由规则信息中存在第一路由规则信息,第一路由规则信息表征需要进行登录,第一私有路由规则信息中存在第二路由规则信息,第二路由规则信息表征不需要进行登录,则可以认为第一路由规则信息和第二路由规则信息相冲突,此时,可以丢弃第一共享路由规则信息中的第一路由规则信息,将第一共享路由规则信息的剩余信息用于待生成路由数据的生成,这样有利于避免生成的路由数据中存在相冲突的路由规则信息,从而保证生成的路由数据的正确性。Assuming that there is first routing rule information in the first shared routing rule information, the first routing rule information indicates that login is required, the first private routing rule information contains second routing rule information, and the second routing rule information indicates that login is not required, Then it can be considered that the first routing rule information conflicts with the second routing rule information. At this time, the first routing rule information in the first shared routing rule information can be discarded, and the remaining information of the first shared routing rule information can be used to generate The generation of routing data is beneficial to avoid conflicting routing rule information in the generated routing data, thereby ensuring the correctness of the generated routing data.
在图1所示实施例的基础上,如图6所示,在步骤120之前,该方法还包括:On the basis of the embodiment shown in Figure 1, as shown in Figure 6, before
步骤112,确定待生成路由数据所属的第二微服务。
在步骤112中,可以参考待生成路由数据对应的路由基础信息中的application_id字段,确定待生成路由数据所属的第二微服务。In
步骤114,获取第二微服务对应的第二服务公共信息。
需要说明的是,步骤114的具体实施过程参照上文中对第一服务公共信息的获取方式的相关介绍即可,在此不再赘述。It should be noted that, for the specific implementation process of
步骤120,包括步骤1201。Step 120 includes
步骤1201,对第一共享路由属性信息、第一私有路由属性信息和第二服务公共信息进行信息组装,以生成待生成路由数据。
在一种可选的实施方式中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息,第二服务公共信息包括:第一服务标识和第一转发地址;In an optional implementation manner, the first shared route attribute information includes: the first shared route definition path prefix and the first shared route rule information, and the first private route attribute information includes: the first private route definition path suffix and the first A private routing rule information, the second service public information includes: the first service identifier and the first forwarding address;
步骤1201,包括:
对第一服务标识、第一共享路由定义路径前缀、第一私有路由定义路径后缀进行信息组装,以生成第一目标数据;performing information assembly on the first service identifier, the first shared route definition path prefix, and the first private route definition path suffix to generate the first target data;
对第一转发地址、第一共享路由定义路径前缀、第一私有路由定义路径后缀进行信息组装,以生成第二目标数据;performing information assembly on the first forwarding address, the first shared route definition path prefix, and the first private route definition path suffix to generate second target data;
对第一共享路由规则信息和第一私有路由规则信息进行信息组装,以生成第三目标数据;performing information assembly on the first shared routing rule information and the first private routing rule information to generate third target data;
生成包括第一目标数据、第二目标数据和第三目标数据的待生成路由数据。The routing data to be generated including the first target data, the second target data and the third target data is generated.
假设第一共享路由定义路径前缀为console/marketing/authorization,第一共享路由规则信息包括断言器a、断言器b、过滤器c,第一私有路由定义路径后缀为/update,第一私有路由规则信息包括断言器m、过滤器g,第一服务标识为serviceId,第一转发地址为lb://xxx.com,则第一目标数据可以表示为如下形式:serviceId/console/marketing/authorization/update,第二目标数据可以表示为如下形式:lb://xxx.com/console/marketing/authorization/update,第三目标数据可以包括两部分,其中一部分是断言器a、断言器b、断言器m,另一部分是过滤器c和过滤器g,由此可以得到包括第一目标数据、第二目标数据和第三目标数据的待生成路由数据,待生成路由数据具体包括四部分,分别是:Suppose the path prefix of the first shared route definition is console/marketing/authorization, the first shared route rule information includes asserter a, asserter b, and filter c, the path suffix of the first private route definition is /update, and the first private route rule The information includes asserter m, filter g, the first service identifier is serviceId, and the first forwarding address is lb://xxx.com, then the first target data can be represented as follows: serviceId/console/marketing/authorization/update , the second target data can be represented as follows: lb://xxx.com/console/marketing/authorization/update, the third target data can include two parts, one of which is asserter a, asserter b, asserter m , the other part is filter c and filter g, from which the routing data to be generated including the first target data, the second target data and the third target data can be obtained. The routing data to be generated specifically includes four parts, which are:
一、前端请求的path(对应第一目标数据)1. The path requested by the front end (corresponding to the first target data)
二、转发到的目标服务地址(对应第二目标数据)2. The target service address to be forwarded to (corresponding to the second target data)
三、断言器(对应第三目标数据中的一部分)3. Assertor (corresponding to a part of the third target data)
四、过滤器(对应第三目标数据中的另一部分)。4. Filter (corresponding to another part in the third target data).
这种实施方式中,通过对第一共享路由定义路径前缀、第一共享路由规则信息、第一私有路由定义路径后缀、第一私有路由规则信息、第一服务标识和第一转发地址进行组装,能够高效可靠地实现路由数据的生成,并且,生成的路由数据被提供给网关设备之后,能够对相应数据请求的处理和转发提供有效地指导。In this embodiment, by assembling the first shared routing definition path prefix, the first shared routing rule information, the first private routing definition path suffix, the first private routing rule information, the first service identifier and the first forwarding address, The generation of routing data can be realized efficiently and reliably, and after the generated routing data is provided to the gateway device, effective guidance can be provided for processing and forwarding of corresponding data requests.
在一个例子中,假设有两条路由数据,分别是路由数据1和路由数据2,其中,路由数据1中包括断言器a、断言器b、断言器m、过滤器c、过滤器g,路由数据2中包括断言器a、断言器b、断言器f、过滤器c、过滤器n,且路由数据1中的路由定义路径为lb://xxx.com/console/marketing/authorization/update,路由数据2中的路由定义路由为lb://xxx.com/console/marketing/authorization/copy,则在相关技术中,为了实现路由数据1和路由数据2的生成,网关配置后台中需要针对路由数据1的路由标识存储断言器a、断言器b、断言器m、过滤器c、过滤器g,以及lb://xxx.com/console/marketing/authorization/update,并针对路由数据2的路由标识存储断言器a、断言器b、断言器f、过滤器c、过滤器n,以及lb://xxx.com/console/marketing/authorization/copy,很明显,网关配置后台存储的信息存在较多冗余。In an example, suppose there are two routing data, namely routing data 1 and routing data 2, wherein routing data 1 includes asserter a, asserter b, asserter m, filter c, filter g, and routing Data 2 includes asserter a, asserter b, asserter f, filter c, and filter n, and the routing definition path in routing data 1 is lb://xxx.com/console/marketing/authorization/update, The routing definition route in routing data 2 is lb://xxx.com/console/marketing/authorization/copy, and in related technologies, in order to realize the generation of routing data 1 and routing data 2, the gateway configuration background needs to target routing The routing identifier of data 1 stores asserter a, asserter b, asserter m, filter c, filter g, and lb://xxx.com/console/marketing/authorization/update, and for the route of routing data 2 Identify and store asserter a, asserter b, asserter f, filter c, filter n, and lb://xxx.com/console/marketing/authorization/copy. Obviously, the information stored in the background of the gateway configuration is more Much redundancy.
有鉴于此,本公开的实施例中,可以引入路由数据组的概念,具体地,可以将路由数据1和路由数据2归入同一路由数据组中,针对该路由数据组的路由组标识,可以存储断言器a、断言器b、过滤器c、/console/marketing/authorization,针对路由数据1的路由标识,可以另外存储断言器m、过滤器g,以及/update,针对路由数据2的路由标识,可以另外存储断言器f、过滤器n,以及/copy。这样,在实际进行路由数据1、路由数据2等路由数据的生成时,可以先扫描路由数据私有的过滤器、断言器、路由定义路径后缀等,然后再扫描这条路由数据所属的路由数据组共享的断言器、路由器、路由定义路径前缀等,通过信息组装,最终可以成为一条可提供给网关设备使用的路由数据。与相关技术相比,为了实现路由数据的生成,网关配置后台所需存储的信息量大大减少,由此可以避免资源浪费。In view of this, in the embodiments of the present disclosure, the concept of routing data group can be introduced, specifically, routing data 1 and routing data 2 can be classified into the same routing data group, and for the routing group identifier of the routing data group, you can Store asserter a, asserter b, filter c, /console/marketing/authorization for the routing identifier of routing data 1, and additionally store assertor m, filter g, and /update for routing identifier of routing data 2 , can additionally store assertor f, filter n, and /copy. In this way, when actually generating routing data such as routing data 1 and routing data 2, you can first scan the private filter, assertor, routing definition path suffix, etc. of the routing data, and then scan the routing data group to which this routing data belongs Shared assertors, routers, route definition path prefixes, etc., through information assembly, can eventually become a route data that can be provided to the gateway device. Compared with related technologies, in order to realize the generation of routing data, the amount of information required to be stored in the gateway configuration background is greatly reduced, thereby avoiding waste of resources.
本公开的实施例提供的任一种路由数据生成方法可以由任意适当的具有数据处理能力的设备执行,包括但不限于:终端设备和服务器等。或者,本公开实施例提供的任一种路由数据生成方法可以由处理器执行,如处理器通过调用存储器存储的相应指令来执行本公开实施例提及的任一种路由数据生成方法。下文不再赘述。Any routing data generation method provided by the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: terminal devices, servers, and the like. Alternatively, any routing data generating method provided in the embodiments of the present disclosure may be executed by a processor, for example, the processor executes any routing data generating method mentioned in the embodiments of the present disclosure by calling a corresponding instruction stored in a memory. I won't go into details below.
示例性装置Exemplary device
图7是本公开一示例性实施例提供的路由数据生成装置的结构示意图,图7所示的装置包括第一获取模块710和生成模块720。FIG. 7 is a schematic structural diagram of an apparatus for generating routing data provided by an exemplary embodiment of the present disclosure. The apparatus shown in FIG. 7 includes a first obtaining
第一获取模块710,用于响应于待生成路由数据具有第一路由标识和第一路由组标识,从已存储路由信息中,获取第一路由组标识对应的第一共享路由属性信息,以及第一路由标识对应的第一私有路由属性信息;The first obtaining
生成模块720,用于对第一共享路由属性信息和第一私有路由属性信息进行信息组装,以生成待生成路由数据。The
在一个可选示例中,已存储路由信息包括:第一信息集合、第二信息集合和第三信息集合,第一信息集合中记载有路由组标识与共享路由定义路径前缀之间的对应关系,第二信息集合中记载有多个路由规则信息,第二信息集合中的每个路由规则信息对应一个路由标识或者一个路由组标识,第三信息集合中记载有多个路由基础信息,每个基础路由基础信息对应一个路由标识或者一个路由组标识;In an optional example, the stored routing information includes: a first information set, a second information set, and a third information set, the first information set records the correspondence between the routing group identifier and the path prefix of the shared route definition, A plurality of routing rule information is recorded in the second information set, each routing rule information in the second information set corresponds to a routing identifier or a routing group identifier, and a plurality of routing basic information is recorded in the third information set, each basic The routing basic information corresponds to a routing identifier or a routing group identifier;
第一获取模块710,包括:The first acquiring
第一确定子模块,用于基于第一信息集合,确定第一路由组标识对应的第一共享路由定义路径前缀;The first determination submodule is configured to determine the first shared routing definition path prefix corresponding to the first routing group identifier based on the first information set;
第二确定子模块,用于基于第二信息集合,确定第一路由组标识对应的第一共享路由规则信息,以及第一路由标识对应的第一私有路由规则信息;The second determining submodule is configured to determine the first shared routing rule information corresponding to the first routing group identifier and the first private routing rule information corresponding to the first routing identifier based on the second information set;
获取子模块,用于基于第三信息集合,确定第一路由标识对应的第一路由基础信息,并从第一路由基础信息中,获取第一路由标识对应的第一私有路由定义路径后缀;The obtaining submodule is configured to determine the first routing basic information corresponding to the first routing identifier based on the third information set, and obtain the first private route definition path suffix corresponding to the first routing identifier from the first routing basic information;
其中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息。Wherein, the first shared route attribute information includes: first shared route definition path prefix and first shared route rule information, and the first private route attribute information includes: first private route definition path suffix and first private route rule information.
在一个可选示例中,该装置还包括:In an optional example, the device also includes:
第一接收模块,用于接收用户对第二信息集合或者第三信息集合的操作请求;The first receiving module is configured to receive a user's operation request for the second information set or the third information set;
第二接收模块,用于接收用户输入的验证信息;The second receiving module is configured to receive verification information input by the user;
第一确定模块,用于确定用户选择的第一微服务;A first determining module, configured to determine the first microservice selected by the user;
第二确定模块,用于基于验证信息,确定用户对应于第一微服务的权限信息;The second determination module is used to determine the permission information of the user corresponding to the first microservice based on the verification information;
处理模块,用于基于权限信息,对操作请求进行处理。The processing module is configured to process the operation request based on the permission information.
在一个可选示例中,In an optional example,
该装置还包括:The unit also includes:
第二获取模块,用于在基于权限信息,对操作请求进行处理之前,获取第一微服务对应的第一服务公共信息;The second obtaining module is used to obtain the public information of the first service corresponding to the first microservice before processing the operation request based on the authority information;
处理模块,包括以下至少一项:processing modules, including at least one of the following:
第一处理子模块,用于响应于权限信息表征用户不具有第一微服务对应的操作权限,不响应操作请求,且显示第一服务公共信息和第一微服务对应的管理员列表;The first processing submodule is configured to respond to the authority information indicating that the user does not have the operation authority corresponding to the first microservice, does not respond to the operation request, and displays the public information of the first service and a list of administrators corresponding to the first microservice;
第二处理子模块,用于响应于权限信息表征用户具有第一微服务对应的第一类操作权限,响应操作请求,并显示第一服务公共信息;The second processing submodule is used to respond to the operation request and display the public information of the first service in response to the authority information indicating that the user has the first type of operation authority corresponding to the first microservice;
第三处理子模块,用于响应于权限信息表征用户具有第一微服务对应的第二类操作权限,响应操作请求,并显示第一服务公共信息和第一微服务对应的预设配置页面。The third processing sub-module is configured to respond to the operation request in response to the permission information indicating that the user has the second type of operation permission corresponding to the first microservice, and display the public information of the first service and a preset configuration page corresponding to the first microservice.
在一个可选示例中,该装置还包括:In an optional example, the device also includes:
显示模块,用于显示多个路由属性选项;A display module for displaying multiple route attribute options;
第三接收模块,用于接收用户输入的路由配置操作;其中,路由配置操作用于针对多个路由属性选项分别输入选定参数;The third receiving module is used to receive the routing configuration operation input by the user; wherein, the routing configuration operation is used to respectively input selected parameters for multiple routing attribute options;
第三确定模块,用于对应于路由配置操作确定第二路由标识;A third determining module, configured to determine the second routing identifier corresponding to the routing configuration operation;
添加模块,用于基于多个路由属性选项各自对应的选定参数,以及第二路由标识,分别向第二信息集合和第三信息集合中添加相应信息。The adding module is configured to add corresponding information to the second information set and the third information set respectively based on the selected parameters corresponding to the multiple routing attribute options and the second routing identifier.
在一个可选示例中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息;In an optional example, the first shared route attribute information includes: the first shared route definition path prefix and the first shared route rule information, and the first private route attribute information includes: the first private route definition path suffix and the first private route rule information;
生成模块720,具体用于:The
响应于第一共享路由规则信息中的第一路由规则信息与第一私有路由规则信息中的第二路由规则信息相冲突,对第一共享路由定义路径前缀、第一共享路由规则信息中除了第一路由规则信息之外的路由规则信息、第一私有路由定义路径后缀、第一私有路由规则信息进行信息组装,以生成待生成路由数据。In response to the conflict between the first routing rule information in the first shared routing rule information and the second routing rule information in the first private routing rule information, define a path prefix for the first shared route, except the first shared routing rule information in the first shared routing rule information Routing rule information other than the routing rule information, the first private routing definition path suffix, and the first private routing rule information are assembled to generate routing data to be generated.
在一个可选示例中,In an optional example,
该装置还包括:The unit also includes:
第四确定模块,用于在对第一共享路由属性信息和第一私有路由属性信息进行信息组装,以生成待生成路由数据之前,确定待生成路由数据所属的第二微服务;The fourth determination module is used to determine the second microservice to which the routing data to be generated belongs before performing information assembly on the first shared routing attribute information and the first private routing attribute information to generate the routing data to be generated;
第三获取模块,用于获取第二微服务对应的第二服务公共信息;A third acquisition module, configured to acquire the public information of the second service corresponding to the second microservice;
生成模块720,具体用于:The
对第一共享路由属性信息、第一私有路由属性信息和第二服务公共信息进行信息组装,以生成待生成路由数据。Information assembly is performed on the first shared routing attribute information, the first private routing attribute information, and the second service public information to generate routing data to be generated.
在一个可选示例中,第一共享路由属性信息包括:第一共享路由定义路径前缀和第一共享路由规则信息,第一私有路由属性信息包括:第一私有路由定义路径后缀和第一私有路由规则信息,第二服务公共信息包括:第一服务标识和第一转发地址;In an optional example, the first shared route attribute information includes: the first shared route definition path prefix and the first shared route rule information, and the first private route attribute information includes: the first private route definition path suffix and the first private route Rule information, the second service public information includes: the first service identifier and the first forwarding address;
生成模块720,包括:Generate
第一生成子模块,用于对第一服务标识、第一共享路由定义路径前缀、第一私有路由定义路径后缀进行信息组装,以生成第一目标数据;The first generation sub-module is used to assemble information on the first service identifier, the first shared route definition path prefix, and the first private route definition path suffix, so as to generate the first target data;
第二生成子模块,用于对第一转发地址、第一共享路由定义路径前缀、第一私有路由定义路径后缀进行信息组装,以生成第二目标数据;The second generation submodule is used to assemble information on the first forwarding address, the first shared route definition path prefix, and the first private route definition path suffix, so as to generate the second target data;
第三生成子模块,用于对第一共享路由规则信息和第一私有路由规则信息进行信息组装,以生成第三目标数据;A third generating submodule, configured to assemble the first shared routing rule information and the first private routing rule information to generate third target data;
第四生成子模块,用于生成包括第一目标数据、第二目标数据和第三目标数据的待生成路由数据。The fourth generating submodule is configured to generate routing data to be generated including first target data, second target data and third target data.
示例性电子设备Exemplary electronic device
下面,参考图8来描述根据本公开实施例的电子设备。该电子设备可以是第一设备和第二设备中的任一个或两者、或与它们独立的单机设备,该单机设备可以与第一设备和第二设备进行通信,以从它们接收所采集到的输入信号。Hereinafter, an electronic device according to an embodiment of the present disclosure is described with reference to FIG. 8 . The electronic device may be either or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive collected data from them. input signal.
图8图示了根据本公开实施例的电子设备800的框图。FIG. 8 illustrates a block diagram of an
如图8所示,电子设备800包括一个或多个处理器810和存储器820。As shown in FIG. 8 ,
处理器810可以是中央处理单元(CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元,并且可以控制电子设备800中的其他组件以执行期望的功能。The
存储器820可以存储一个或多个计算机程序产品,所述存储器820可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(ROM)、硬盘、闪存等。在所述计算机可读存储介质上可以存储一个或多个计算机程序产品,处理器810可以运行所述计算机程序产品,以实现上文所述的本公开的各个实施例的路由数据生成方法以及/或者其他期望的功能。在所述计算机可读存储介质中还可以存储诸如输入信号、信号分量、噪声分量等各种内容。The
在一个示例中,电子设备800还可以包括:输入装置830和输出装置840,这些组件通过总线系统和/或其他形式的连接机构(未示出)互连。In an example, the
例如,在电子设备800是第一设备或第二设备时,该输入装置830可以是麦克风或麦克风阵列。在电子设备800是单机设备时,该输入装置830可以是通信网络连接器,用于从第一设备和第二设备接收所采集的输入信号。For example, when the
此外,该输入装置830还可以包括例如键盘、鼠标等等。In addition, the
该输出装置840可以向外部输出各种信息。该输出装置840可以包括例如显示器、扬声器、打印机、以及通信网络及其所连接的远程输出装置等等。The
当然,为了简化,图8中仅示出了该电子设备800中与本公开有关的组件中的一些,省略了诸如总线、输入/输出接口等等的组件。除此之外,根据具体应用情况,电子设备800还可以包括任何其他适当的组件。Of course, for simplicity, only some components related to the present disclosure in the
示例性计算机程序产品和计算机可读存储介质Exemplary computer program product and computer readable storage medium
除了上述方法和设备以外,本公开的实施例还可以是计算机程序产品,其包括计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本公开各种实施例的路由数据生成方法中的步骤。In addition to the above-mentioned methods and devices, embodiments of the present disclosure may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the above-mentioned "exemplary method" of this specification. The steps in the routing data generating method according to various embodiments of the present disclosure described in the section.
所述计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本公开实施例操作的程序代码,所述程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product can be written in any combination of one or more programming languages to execute the program codes for performing the operations of the embodiments of the present disclosure, and the programming languages include object-oriented programming languages, such as Java, C++, etc. , also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute.
此外,本公开的实施例还可以是计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令在被处理器运行时使得所述处理器执行本说明书上述“示例性方法”部分中描述的根据本公开各种实施例的路由数据生成方法中的步骤。In addition, the embodiments of the present disclosure may also be a computer-readable storage medium, on which computer program instructions are stored, and the computer program instructions, when executed by a processor, cause the processor to execute the above-mentioned "Exemplary Method" section of this specification. The steps in the method for generating routing data according to various embodiments of the present disclosure described in .
所述计算机可读存储介质可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以包括但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof, for example. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, 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 devices, magnetic storage devices, or any suitable combination of the foregoing.
以上结合具体实施例描述了本公开的基本原理,但是,需要指出的是,在本公开中提及的优点、优势、效果等仅是示例而非限制,不能认为这些优点、优势、效果等是本公开的各个实施例必须具备的。另外,上述公开的具体细节仅是为了示例的作用和便于理解的作用,而非限制,上述细节并不限制本公开为必须采用上述具体的细节来实现。The basic principles of the present disclosure have been described above in conjunction with specific embodiments, but it should be pointed out that the advantages, advantages, effects, etc. mentioned in the present disclosure are only examples rather than limitations, and these advantages, advantages, effects, etc. Various embodiments of the present disclosure must have. In addition, the specific details disclosed above are only for the purpose of illustration and understanding, rather than limitation, and the above details do not limit the present disclosure to be implemented by using the above specific details.
本说明书中各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似的部分相互参见即可。对于系统实施例而言,由于其与方法实施例基本对应,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.
本公开中涉及的器件、装置、设备、系统的方框图仅作为例示性的例子并且不意图要求或暗示必须按照方框图示出的方式进行连接、布置、配置。如本领域技术人员将认识到的,可以按任意方式连接、布置、配置这些器件、装置、设备、系统。诸如“包括”、“包含”、“具有”等等的词语是开放性词汇,指“包括但不限于”,且可与其互换使用。这里所使用的词汇“或”和“和”指词汇“和/或”,且可与其互换使用,除非上下文明确指示不是如此。这里所使用的词汇“诸如”指词组“诸如但不限于”,且可与其互换使用。The block diagrams of devices, devices, devices, and systems involved in the present disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, devices, systems may be connected, arranged, configured in any manner. Words such as "including", "comprising", "having" and the like are open-ended words meaning "including but not limited to" and may be used interchangeably therewith. As used herein, the words "or" and "and" refer to the word "and/or" and are used interchangeably therewith, unless the context clearly dictates otherwise. As used herein, the word "such as" refers to the phrase "such as but not limited to" and can be used interchangeably therewith.
可能以许多方式来实现本公开的方法和装置。例如,可通过软件、硬件、固件或者软件、硬件、固件的任何组合来实现本公开的方法和装置。用于所述方法的步骤的上述顺序仅是为了进行说明,本公开的方法的步骤不限于以上具体描述的顺序,除非以其它方式特别说明。此外,在一些实施例中,还可将本公开实施为记录在记录介质中的程序,这些程序包括用于实现根据本公开的方法的机器可读指令。因而,本公开还覆盖存储用于执行根据本公开的方法的程序的记录介质。The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and apparatuses of the present disclosure may be implemented by software, hardware, firmware or any combination of software, hardware, and firmware. The above sequence of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present disclosure can also be implemented as programs recorded in recording media, the programs including machine-readable instructions for realizing the method according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
还需要指出的是,在本公开的装置、设备和方法中,各部件或各步骤是可以分解和/或重新组合的。这些分解和/或重新组合应视为本公开的等效方案。It should also be pointed out that, in the devices, equipment and methods of the present disclosure, each component or each step can be decomposed and/or reassembled. These decompositions and/or recombinations should be considered equivalents of the present disclosure.
提供所公开的方面的以上描述以使本领域的任何技术人员能够做出或者使用本公开。对这些方面的各种修改对于本领域技术人员而言是非常显而易见的,并且在此定义的一般原理可以应用于其他方面而不脱离本公开的范围。因此,本公开不意图被限制到在此示出的方面,而是按照与在此公开的原理和新颖的特征一致的最宽范围。The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
为了例示和描述的目的已经给出了以上描述。此外,此描述不意图将本公开的实施例限制到在此公开的形式。尽管以上已经讨论了多个示例方面和实施例,但是本领域技术人员将认识到其某些变型、修改、改变、添加和子组合。The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit the disclosed embodiments to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310347991.XA CN116366528B (en) | 2023-04-03 | 2023-04-03 | Route data generation method, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310347991.XA CN116366528B (en) | 2023-04-03 | 2023-04-03 | Route data generation method, electronic device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116366528A true CN116366528A (en) | 2023-06-30 |
CN116366528B CN116366528B (en) | 2025-07-25 |
Family
ID=86907639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310347991.XA Active CN116366528B (en) | 2023-04-03 | 2023-04-03 | Route data generation method, electronic device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116366528B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6339595B1 (en) * | 1997-12-23 | 2002-01-15 | Cisco Technology, Inc. | Peer-model support for virtual private networks with potentially overlapping addresses |
CN1839586A (en) * | 2003-05-06 | 2006-09-27 | 思科技术公司 | Routing based on the pattern of received packets |
CN1980288A (en) * | 2005-12-09 | 2007-06-13 | 华为技术有限公司 | Method for obtaining route information between subscriber terminal and server, and use thereof |
CN102137024A (en) * | 2011-04-19 | 2011-07-27 | 福建星网锐捷网络有限公司 | Message processing method, exit routing device and border routing device |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A communication method, system and device |
CN108989205A (en) * | 2017-06-01 | 2018-12-11 | 阿里巴巴集团控股有限公司 | Identity, routing data creation method, device and server |
CN110764700A (en) * | 2019-10-12 | 2020-02-07 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Data storage method and device, computer equipment and storage medium |
CN110971527A (en) * | 2019-11-29 | 2020-04-07 | 新华三半导体技术有限公司 | Routing information determination method and device |
CN111092816A (en) * | 2019-11-26 | 2020-05-01 | 金蝶软件(中国)有限公司 | Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium |
CN113381928A (en) * | 2021-06-08 | 2021-09-10 | 北京沃东天骏信息技术有限公司 | Gateway request chain management method and device, electronic equipment and computer medium |
-
2023
- 2023-04-03 CN CN202310347991.XA patent/CN116366528B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6339595B1 (en) * | 1997-12-23 | 2002-01-15 | Cisco Technology, Inc. | Peer-model support for virtual private networks with potentially overlapping addresses |
CN1839586A (en) * | 2003-05-06 | 2006-09-27 | 思科技术公司 | Routing based on the pattern of received packets |
CN1980288A (en) * | 2005-12-09 | 2007-06-13 | 华为技术有限公司 | Method for obtaining route information between subscriber terminal and server, and use thereof |
CN102137024A (en) * | 2011-04-19 | 2011-07-27 | 福建星网锐捷网络有限公司 | Message processing method, exit routing device and border routing device |
CN108989205A (en) * | 2017-06-01 | 2018-12-11 | 阿里巴巴集团控股有限公司 | Identity, routing data creation method, device and server |
CN108712332A (en) * | 2018-05-17 | 2018-10-26 | 华为技术有限公司 | A communication method, system and device |
CN110764700A (en) * | 2019-10-12 | 2020-02-07 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Data storage method and device, computer equipment and storage medium |
CN111092816A (en) * | 2019-11-26 | 2020-05-01 | 金蝶软件(中国)有限公司 | Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium |
CN110971527A (en) * | 2019-11-29 | 2020-04-07 | 新华三半导体技术有限公司 | Routing information determination method and device |
CN113381928A (en) * | 2021-06-08 | 2021-09-10 | 北京沃东天骏信息技术有限公司 | Gateway request chain management method and device, electronic equipment and computer medium |
Non-Patent Citations (2)
Title |
---|
DANIEL HERZOG等: "RouteMe: A Mobile Recommender System for Personalized, Multi-Modal Route Planning", PROCEEDINGS OF THE 25TH CONFERENCE ON USER MODELING, ADAPTATION AND PERSONALIZATION (UMAP\'17), 9 July 2017 (2017-07-09) * |
胡宁;朱培栋;邹鹏;: "域间路由协同监测中的信息共享机制", 软件学报, no. 03, 15 March 2011 (2011-03-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN116366528B (en) | 2025-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12238114B2 (en) | Method, apparatus, and computer program product for selectively granting permissions to group-based objects in a group-based communication system | |
US20150143215A1 (en) | Method and system for accessing audio/video community virtual rooms | |
CN102238106A (en) | News Feed Technology | |
CN110231965B (en) | Cloud device, application processing method and electronic device | |
WO2021023149A1 (en) | Method and apparatus for dynamically returning message | |
CN113839977A (en) | Message pushing method and device, computer equipment and storage medium | |
CN111427613B (en) | Application program interface API management method and device | |
CN112632919A (en) | Document editing method and device, computer equipment and storage medium | |
US9521034B2 (en) | Method and apparatus for generating resource address, and system thereof | |
CN111400777A (en) | A network storage system, user authentication method, device and equipment | |
JP2015537313A (en) | Third-party communication to social networking system users using user descriptors | |
CN114500630A (en) | Method, apparatus, system, storage medium and electronic device for message push | |
US20160043913A1 (en) | Monitoring social media for specific issues | |
US11954016B2 (en) | Rejecting, during validation, sequences of components with invalid input dependencies | |
US20190166082A1 (en) | Publishing message conversations to electronic forums | |
EP4122167B1 (en) | Systems and methods for detecting and resolving conflicts in internet services | |
CN114896130A (en) | Log processing method, device, server and storage medium | |
CN117749761B (en) | Identification analysis method and device based on industrial Internet identification, equipment and medium | |
CN111221655B (en) | Method and device for managing resources of OpenStack platform | |
CN116366528A (en) | Routing data generating method, electronic device, and computer-readable storage medium | |
WO2018121164A1 (en) | Method, device, and system for creating service numbers | |
CN111949472B (en) | A method and device for recording application logs | |
US20190294478A1 (en) | Method for validating validity of group member of virtual resource | |
CN115987683B (en) | Node access control method, device, device and medium in blockchain network | |
CN111090804B (en) | Data filtering method, device and computer 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 |