CN116684415A - Controller cross-domain communication method, device, electronic equipment and storage medium - Google Patents

Controller cross-domain communication method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116684415A
CN116684415A CN202310754553.5A CN202310754553A CN116684415A CN 116684415 A CN116684415 A CN 116684415A CN 202310754553 A CN202310754553 A CN 202310754553A CN 116684415 A CN116684415 A CN 116684415A
Authority
CN
China
Prior art keywords
domain
domain controller
controller
address information
slave
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.)
Pending
Application number
CN202310754553.5A
Other languages
Chinese (zh)
Inventor
陈加宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Zeekr Intelligent Technology Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Zeekr Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Zhejiang Zeekr Intelligent Technology Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202310754553.5A priority Critical patent/CN116684415A/en
Publication of CN116684415A publication Critical patent/CN116684415A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本申请公开了一种控制器跨域通信方法、装置、电子设备及计算机可读存储介质,控制器跨域通信方法包括:在多个域控制器中确定主域控制器;获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。能够大大减少配置文件的数量,降低了配置成本,且避免配置混乱,提高通信成功率。

The application discloses a controller cross-domain communication method, device, electronic equipment, and computer-readable storage medium. The controller cross-domain communication method includes: determining the master domain controller among multiple domain controllers; obtaining the slave domain controller address information, and record the address information in the master domain controller, the slave domain controller is a domain controller other than the master domain controller among the plurality of domain controllers, the Address information can be used to establish communication links between different domain controllers; based on the address information recorded by the master domain controller, create links between different slave domain controllers to achieve communication, and the different slave domain controllers There is a need for communication between devices. The number of configuration files can be greatly reduced, configuration costs are reduced, configuration confusion is avoided, and communication success rate is improved.

Description

控制器跨域通信方法、装置、电子设备及存储介质Controller cross-domain communication method, device, electronic equipment and storage medium

技术领域technical field

本申请涉及域控制器通信技术,尤其涉及一种控制器跨域通信方法、装置、电子设备及计算机可读存储介质。The present application relates to domain controller communication technology, and in particular to a controller cross-domain communication method, device, electronic equipment, and computer-readable storage medium.

背景技术Background technique

域控制器(Domain Controller,DC)是指在“域”模式下,响应计算机网络域内的安全身份验证请求的服务器计算机,是一个网络服务器,其负责允许主机访问域资源,对用户进行身份验证、存储用户帐户信息并为域实施安全策略。域控制器可应用于多种场景,以汽车场景为例,随着智能汽车时代的快速发展,智能汽车配置有越来越多的域控制器,然而,在进行跨域通信时,每两个域控制器间进行通信需要依赖配置文件配置的信息来建立链接以实现通信,每新增一个域时,都需新增一定数量配置文件以创建通信链接,当域控制器数量较多时,配置文件的数量也会较大,使得配置成本高较高,且易造成配置混乱,导致通信成功率降低。A domain controller (Domain Controller, DC) refers to a server computer that responds to security authentication requests in a computer network domain in "domain" mode. It is a network server that is responsible for allowing hosts to access domain resources, authenticating users, Store user account information and enforce security policies for the domain. Domain controllers can be used in various scenarios. Take the automotive scenario as an example. With the rapid development of the smart car era, smart cars are equipped with more and more domain controllers. However, when performing cross-domain communication, every two The communication between domain controllers needs to rely on the information configured in the configuration file to establish links to achieve communication. When adding a new domain, a certain number of configuration files need to be added to create communication links. When the number of domain controllers is large, the configuration file The number of will be large, which makes the configuration cost high, and it is easy to cause configuration confusion, resulting in a decrease in the communication success rate.

发明内容Contents of the invention

针对上述技术问题,本申请提供一种控制器跨域通信方法、装置、电子设备及计算机可读存储介质,技术方案如下:In view of the above technical problems, this application provides a controller cross-domain communication method, device, electronic equipment and computer-readable storage medium, the technical solution is as follows:

根据本申请的第一方面,提供一种控制器跨域通信方法,该方法包括:According to the first aspect of the present application, a controller cross-domain communication method is provided, the method comprising:

在多个域控制器中确定主域控制器;Determining the primary domain controller among multiple domain controllers;

获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;Obtain address information of a slave domain controller, and record the address information in the master domain controller, where the slave domain controller is a domain other than the master domain controller among the plurality of domain controllers a controller, the address information can be used to establish a communication link between different domain controllers;

基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。Based on the address information recorded by the master domain controller, links are established between different slave domain controllers to implement communication, and there is a communication requirement among the different slave domain controllers.

根据本申请的第二方面,提供一种控制器跨域通信装置,该装置包括:According to the second aspect of the present application, a controller cross-domain communication device is provided, the device includes:

确定单元,用于在多个域控制器中确定主域控制器;a determination unit, configured to determine a primary domain controller among multiple domain controllers;

记录单元,用于获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;A recording unit, configured to acquire address information of a slave domain controller, and record the address information in the master domain controller, where the slave domain controller is one of the plurality of domain controllers except the master domain controller a domain controller other than the domain controller, and the address information can be used to establish a communication link between different domain controllers;

创建单元,用于基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。The creating unit is configured to, based on the address information recorded by the master domain controller, create a link between different slave domain controllers to realize communication, and there is a communication requirement among the different slave domain controllers.

根据本申请的第三方面,提供一种电子设备,该电子设备包括:According to a third aspect of the present application, an electronic device is provided, and the electronic device includes:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为实现如第一方面所述的方法。Wherein, the processor is configured to implement the method as described in the first aspect.

根据本申请的第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面所述方法中的步骤。According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method described in the first aspect are implemented.

本申请提供的技术方案,当存在多个有相互通信需求的域控制器时,在该多个域控制器中确定主域控制器,并将该主域控制器之外的域控制器确定为从域控制器,将各个从域控制器的地址信息记录于该主域控制器,当不同的从域控制器间需要进行通信时,一个从域控制器可以直接通过主域控制器所记录的地址信息与另一个从域控制器创建通信链接,而不需要额外的配置文件配置地址信息,即使在新增域时,也不需要新增额外的配置文件,而仅需将新增域控制器的地址信息记录于主域控制器,从而大大减少配置文件的数量,降低了配置成本,且避免配置混乱,提高通信成功率。In the technical solution provided by this application, when there are multiple domain controllers that need to communicate with each other, the primary domain controller is determined among the multiple domain controllers, and the domain controllers other than the primary domain controller are determined as The slave domain controller records the address information of each slave domain controller in the master domain controller. When different slave domain controllers need to communicate, a slave domain controller can directly pass the address information recorded by the master domain controller. The address information establishes a communication link with another secondary domain controller without additional configuration files to configure address information. Even when adding a domain, there is no need to add additional configuration files, but only the newly added domain controller The address information is recorded in the primary domain controller, thereby greatly reducing the number of configuration files, reducing configuration costs, avoiding configuration confusion, and improving communication success rate.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are only For some embodiments described in the application, those skilled in the art can also obtain other drawings based on these drawings.

图1是相关技术的一个控制器跨域通信场景示意图;FIG. 1 is a schematic diagram of a controller cross-domain communication scenario in the related art;

图2是本申请的一个控制器跨域通信方法的流程示意图;FIG. 2 is a schematic flow diagram of a controller cross-domain communication method of the present application;

图3是本申请一个实施例的控制器跨域通信场景示意图;FIG. 3 is a schematic diagram of a controller cross-domain communication scenario according to an embodiment of the present application;

图4是本申请一个实施例的控制器跨域通信装置的结构示意图;FIG. 4 is a schematic structural diagram of a controller cross-domain communication device according to an embodiment of the present application;

图5是本说明书一个实施例的电子设备的结构示意图。Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present specification.

具体实施方式Detailed ways

为了使本领域技术人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application shall fall within the protection scope of this application.

请参见图1,首先对相关技术中的控制器跨域通信场景进行介绍,域控制器是指在“域”模式下,响应计算机网络域内的安全身份验证请求的服务器计算机,是一个网络服务器,其负责允许主机访问域资源,对用户进行身份验证、存储用户帐户信息并为域实施安全策略。Please refer to Fig. 1, first, the controller cross-domain communication scenario in the related art is introduced, the domain controller refers to the server computer that responds to the security authentication request in the computer network domain in the "domain" mode, and is a network server. It is responsible for allowing hosts to access domain resources, authenticating users, storing user account information, and enforcing security policies for the domain.

域控制器可应用于多种场景,以图1中的汽车场景为例,随着智能汽车时代的快速发展,智能汽车配置有越来越多的域控制器,多个域控制器间需要进行相互通信以实现复杂的功能与服务,然而,以汽车采用面向服务的分布式架构(Service-OrientedArchitecture,SOA)为例,SOA架构下,在进行跨域通信时,每两个域控制器间进行通信需要依赖配置文件配置的信息来建立链接以实现通信,每新增一个域时,都需新增一定数量配置文件以创建通信链接,当域控制器数量较多时,配置文件的数量也会较大,使得配置成本高较高,且易造成配置混乱,导致通信成功率降低。Domain controllers can be used in various scenarios. Take the car scene in Figure 1 as an example. With the rapid development of the smart car era, smart cars are equipped with more and more domain controllers. Multiple domain controllers need to Communicate with each other to realize complex functions and services. However, taking a service-oriented distributed architecture (Service-Oriented Architecture, SOA) as an example in a car, under the SOA architecture, when performing cross-domain communication, every two domain controllers Communication needs to rely on the information configured in the configuration file to establish links to achieve communication. When adding a new domain, a certain number of configuration files must be added to create communication links. When the number of domain controllers is large, the number of configuration files will also be relatively large. Large, which makes the configuration cost high, and it is easy to cause configuration confusion, resulting in a decrease in the communication success rate.

请参见图1,以域控制器应用于汽车场景为例进行示例性说明:Please refer to Figure 1, which uses the application of domain controllers in automobile scenarios as an example for illustration:

假设汽车中当前存在3个域控制器:域控制器101,域控制器102,域控制器103,这3个域控制器间均有相互通信的需求,以域控制器101为例,若域控制器101需要与域控制器102以及域控制器103通信,则需要预先在域控制器101中通过配置文件1配置域控制器102以及域控制器103的地址信息,域控制器101才能够根据配置的地址信息与域控制器102建立链接1以实现二者通信,或者与域控制器103建立链接3以实现二者通信;若域控制器102需要与域控制器101以及域控制器103通信,也需要预先在域控制器102中通过配置文件2配置域控制器101以及域控制器103的地址信息,域控制器102需要与域控制器103通信时,可以根据配置的地址信息与域控制器103建立链接2以实现二者通信;类似的,若域控制器103需要与域控制器101以及域控制器102通信,也需要预先在域控制器103中通过配置文件3配置域控制器101以及域控制器102的地址信息,然而,在实际应用场景中,汽车中的域控制器数量远不止图1所示例的3个,而其中每个域控制器由于与其他域控制器的通信需求均需配置有配置文件,当域控制器数量较多时,配置文件的数量也会较大,并且汽车中还可能在已有域控制器的基础上新增域控制器,在新增一域控制器时,不仅需要在新增的域控制器上新增配置文件,还需要重新配置原有各域控制器上已有的配置文件,以满足新增域控制器与原有域控制器(如图1中的域控制器101、域控制器102以及域控制器103)的通信需求,使得配置成本高较高,且易造成配置混乱,导致通信成功率降低。Assume that there are currently three domain controllers in the car: domain controller 101, domain controller 102, and domain controller 103. These three domain controllers all need to communicate with each other. Taking domain controller 101 as an example, if domain If the controller 101 needs to communicate with the domain controller 102 and the domain controller 103, it is necessary to configure the address information of the domain controller 102 and the domain controller 103 in the domain controller 101 through the configuration file 1 in advance, so that the domain controller 101 can use the The configured address information establishes link 1 with domain controller 102 to realize communication between the two, or establishes link 3 with domain controller 103 to realize communication between the two; if domain controller 102 needs to communicate with domain controller 101 and domain controller 103 , it is also necessary to configure the address information of domain controller 101 and domain controller 103 in domain controller 102 in advance through configuration file 2. When domain controller 102 needs to communicate with domain controller 103, it can communicate with domain controller according to the configured address information. The controller 103 establishes the link 2 to realize the communication between the two; similarly, if the domain controller 103 needs to communicate with the domain controller 101 and the domain controller 102, it is also necessary to configure the domain controller 101 in the domain controller 103 through the configuration file 3 in advance and the address information of the domain controller 102, however, in an actual application scenario, the number of domain controllers in the car is far more than the three shown in Figure 1, and each domain controller needs to communicate with other domain controllers Configuration files need to be configured. When the number of domain controllers is large, the number of configuration files will also be large, and it is possible to add a domain controller to the existing domain controller in the car. When using a new domain controller, not only do you need to add new configuration files on the new domain controller, but you also need to reconfigure the existing configuration files on the original domain controllers to meet the needs of the new domain controller and the original domain controller (such as The communication requirements of domain controller 101, domain controller 102, and domain controller 103) in FIG. 1 make the configuration cost high, and easily cause configuration confusion, resulting in a decrease in communication success rate.

值得说明的是,上述对于控制器跨域通信场景的介绍仅是示例性展示,在实际应用中,不排除存在其他控制器跨域通信场景,对此具体不作限定。It is worth noting that the above-mentioned introduction to the controller cross-domain communication scenario is only an exemplary display. In practical applications, other controller cross-domain communication scenarios cannot be ruled out, which is not specifically limited.

针对上述问题,本申请提供一种控制器跨域通信方法,能够大大减少配置文件的数量,降低了配置成本,且避免配置混乱,提高通信成功率。如图2所示,该方法包括以下步骤:In view of the above problems, the present application provides a controller cross-domain communication method, which can greatly reduce the number of configuration files, reduce configuration costs, avoid configuration confusion, and improve communication success rate. As shown in Figure 2, the method includes the following steps:

S201、在多个域控制器中确定主域控制器;S201. Determine a primary domain controller among multiple domain controllers;

作为例子,多个域控制器中,不同的“域”的划分依据可以是控制器的IP地址。值得说明的是,上述不同的“域”的划分依据的描述仅是示例性展示,在实际应用中,不排除其他的划分依据,对此具体不作限定。As an example, among multiple domain controllers, different "domains" may be divided based on IP addresses of the controllers. It is worth noting that the above description of the basis for dividing different "domains" is only an exemplary display, and in practical applications, other basis for dividing may not be excluded, and this is not specifically limited.

可以通过多种方式在多个域控制器中确定主域控制器,作为例子,其中一种方式可以包括:在上述多个域控制器中,将具有中央网关的域控制器确定为主域控制器。由于中央网关的地址信息是固定且是能够预先被各个域控制器获知,并且中央网关具备连接各个域控制器的能力,所以将具有中央网关的域控制器确定为主域控制器,能够保证主域控制器具备与各个从域控制器交互的能力,且该主域控制器的位置能够被其他从域控制器预先获知。值得说明的是,上述主域控制器的确定方式的描述仅是示例性展示,在实际应用中,不排除其他的确定方式,对此具体不作限定。There may be multiple ways to determine the primary domain controller among multiple domain controllers. As an example, one of the ways may include: among the above-mentioned multiple domain controllers, determining the domain controller with the central gateway as the primary domain controller device. Since the address information of the central gateway is fixed and can be known by each domain controller in advance, and the central gateway has the ability to connect to each domain controller, the domain controller with the central gateway is determined to be the master domain controller, which can ensure the The domain controller has the ability to interact with each slave domain controller, and the location of the master domain controller can be known in advance by other slave domain controllers. It is worth noting that the above description of the manner of determining the primary domain controller is only an exemplary display, and in practical applications, other determination manners are not excluded, and this is not specifically limited.

作为例子,该多个域控制器可以是已有的域控制器,也可以是新增的域控制器。As an example, the multiple domain controllers may be existing domain controllers or newly added domain controllers.

S202、获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;S202. Obtain address information of a secondary domain controller, and record the address information in the primary domain controller, where the secondary domain controller is one of the plurality of domain controllers except the primary domain controller domain controllers, the address information can be used to establish communication links between different domain controllers;

作为例子,当上述主域控制器为具有中央网关的域控制器时,可以将该中央网关的地址信息预存于上述多个域控制器中除该主域控制器之外的域控制器即从域控制器,以使该从域控制器基于该中央网关的地址信息与该主域控制器建立通信链接。由于中央网关的地址信息是固定且是能够预先被各个从域控制器获知,能够保证主域控制器具备与各个从域控制器交互的能力同时,使该主域控制器的位置能够被其他从域控制器预先获知,从而使该主域控制器具备获取各个从域控制器的地址信息的能力。As an example, when the above-mentioned master domain controller is a domain controller with a central gateway, the address information of the central gateway may be pre-stored in the domain controllers other than the master domain controller among the above-mentioned multiple domain controllers. A domain controller, so that the slave domain controller establishes a communication link with the master domain controller based on the address information of the central gateway. Since the address information of the central gateway is fixed and can be known by each slave domain controller in advance, it can ensure that the master domain controller has the ability to interact with each slave domain controller, and at the same time, the location of the master domain controller can be determined by other slave domain controllers. The domain controller is known in advance, so that the master domain controller has the ability to obtain the address information of each slave domain controller.

作为例子,上述从域控制器可以是原本已有的域控制器,也可以是新增的域控制器。As an example, the above secondary domain controller may be an existing domain controller or a newly added domain controller.

可以通过多种方式获取从域控制器的地址信息,作为例子,当上述地址信息为运行于上述从域控制器的engine的地址信息时,其中一种获取方式可以是:先监控该从域控制器的engine的运行状态,engine的运行状态可以至少包括上线状态或离线状态,例如,当从域控制器的engine在线上时,该engine的运行状态可以是上述上线状态,当从域控制器的engine离线时,该engine的运行状态可以是上述离线状态状态;如果监控到该从域控制器的engine的运行状态为上线状态,则可以获取该从域控制器的engine的地址信息;如果监控到该从域控制器的engine的运行状态为离线状态,则可以不执行获取该从域控制器的engine的地址信息的操作。需要说明的是,engine可以是运行于主域控制器上的进程,通过engine进程的在线或离线状态决定是否获取从域控制器的地址信息,能够最大化节省获取地址信息的成本。值得说明的是,上述获取从域控制器的地址信息的描述仅是示例性展示,在实际应用中,不排除其他的获取方式,对此具体不作限定。The address information of the slave domain controller can be obtained in various ways. As an example, when the above address information is the address information of the engine running on the slave domain controller, one of the acquisition methods can be: first monitor the slave domain controller The running state of the engine of the server. The running state of the engine can at least include the online state or the offline state. For example, when the engine of the slave domain controller is online, the running state of the engine can be the above-mentioned online state. When the engine is offline, the running status of the engine can be the above-mentioned offline status; if it is monitored that the running status of the engine of the slave domain controller is online, the address information of the engine of the slave domain controller can be obtained; If the running state of the engine of the slave domain controller is offline, the operation of obtaining the address information of the engine of the slave domain controller may not be performed. It should be noted that the engine can be a process running on the primary domain controller, and whether to obtain the address information of the secondary domain controller is determined according to the online or offline status of the engine process, which can save the cost of obtaining address information to the greatest extent. It is worth noting that the above description of obtaining the address information of the secondary domain controller is only an exemplary display, and in practical applications, other obtaining methods are not excluded, and there is no specific limitation on this.

作为例子,监控到从域控制器的engine的运行状态为上线状态的情况可以有多种,作为例子,其中一种情况可以是,该从域控制器为新增的域控制器,而该新增的域控制器的engine处于刚刚上线的状态;另一种情况可以是,该从域控制器为原本已有的域控制器,而该域控制器的engine一直处于上线状态。对此具体不作限定。As an example, there may be many situations in which it is monitored that the running status of the engine of the secondary domain controller is online. As an example, one of the situations may be that the secondary domain controller is a newly added domain controller, and the new The engine of the added domain controller is just in the online state; another situation may be that the secondary domain controller is an existing domain controller, and the engine of the domain controller has been in the online state. There is no specific limitation on this.

作为例子,域控制器采用的系统可以是Linux系统,而上述engine可以是运行于该Linux系统上的进程。值得说明的是,上述域控制器采用的系统的描述仅是示例性展示,在实际应用中,不排除采用其他的系统,对此具体不作限定。As an example, the system used by the domain controller may be a Linux system, and the above engine may be a process running on the Linux system. It should be noted that the above description of the system used by the domain controller is only an exemplary display, and in practical applications, it does not exclude the use of other systems, which is not specifically limited.

S203、基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。S203. Based on the address information recorded by the master domain controller, create a link between different slave domain controllers to implement communication, and there is a communication requirement among the different slave domain controllers.

可以通过多种方式将从域控制器的地址信息记录于主域控制器中,作为例子,其中一种记录方式可以包括:将从域控制器的地址信息记录于主域控制器的manager应用程序。需要说明的是,manager应用程序可以是运行于主域控制器上的进程,通过manager应用程序能够实现对众多地址信息的高效地记录与管理。值得说明的是,上述地址信息记录方式的描述仅是示例性展示,在实际应用中,不排除其他的记录方式,对此具体不作限定。The address information of the slave domain controller can be recorded in the master domain controller in various ways. As an example, one of the recording methods can include: recording the address information of the slave domain controller in the manager application program of the master domain controller . It should be noted that the manager application program may be a process running on the primary domain controller, and the efficient recording and management of many address information can be realized through the manager application program. It is worth noting that the above description of the address information recording method is only an exemplary display, and in practical applications, other recording methods are not excluded and are not specifically limited.

可以通过多种方式为不同的从域控制器间创建链接以实现通信,作为例子,当主域控制器与从域控制器是处于SOA架构下时,其中一种方式可以包括:基于主域控制器记录的从域控制器的地址信息,以及上述SOA架构下的SOA中间件,为不同的从域控制器间创建链接以实现通信。由于SOA中间件封装有域控制器间创建链接所必须的部分底层代码,通过SOA中间件为不同的从域控制器间创建链接,无需再编写额外的底层代码,大大降低了创建链接所需的计算成本。值得说明的是,上述链接创建方式的描述仅是示例性展示,在实际应用中,不排除其他的创建方式,对此具体不作限定。There are many ways to create links between different slave domain controllers to achieve communication. As an example, when the master domain controller and slave domain controllers are under the SOA architecture, one of the ways can include: Based on the master domain controller The recorded address information of the secondary domain controllers and the SOA middleware under the above SOA architecture create links between different secondary domain controllers to realize communication. Since the SOA middleware encapsulates part of the underlying code necessary to create links between domain controllers, through the SOA middleware to create links between different secondary domain controllers, there is no need to write additional underlying code, which greatly reduces the time required for creating links. Computing costs. It is worth noting that the above description of the link creation method is only an exemplary display, and in practical applications, other creation methods are not excluded and are not specifically limited.

作为例子,上述SOA中间件可以是COM组件,也可以是其他组件,具体不作限定。As an example, the above-mentioned SOA middleware may be a COM component or other components, which is not specifically limited.

作为例子,不同的从域控制器间存在通信需求时,该需求可以是一个从域控制器需要查询另一个从域控制器上写入的数据,则需要查询数据的从域控制器此事存在与另一个从域控制器通信的需求。不同的从域控制器间存在通信需求也可以是其他情况,具体不作限定。As an example, when there is a communication requirement between different slave domain controllers, the requirement can be that one slave domain controller needs to query the data written by another slave domain controller, then the slave domain controller that needs to query the data exists The need to communicate with another secondary domain controller. The need for communication between different secondary domain controllers may also be other situations, which are not specifically limited.

从域控制器的地址信息可以有多种具体实现,作为例子,其中一种实现可以是:从域控制器的地址信息可以包括IP信息以及PORT信息,举例说明,假设存在3个从域控制器:从域控制器S32G、从域控制器ORIN以及从域控制器TCAM,从域控制器S32G的地址信息可以包括IP信息:192.168.0.2;以及PORT信息:0002。从域控制器ORIN的地址信息可以包括IP信息:192.168.0.3;以及PORT信息:0003。从域控制器ORIN的地址信息可以包括IP信息:192.168.0.4;以及PORT信息:0004。需要说明的是,主域控制器也可有地址信息,例如IP信息:192.168.0.1;以及PORT信息:0001。值得说明的是,上述从域控制器的地址信息的具体实现的描述仅是示例性展示,在实际应用中,不排除其他的具体实现,对此具体不作限定。The address information of the slave domain controller can have multiple specific implementations. As an example, one of the implementations can be: the address information of the slave domain controller can include IP information and PORT information. For example, assume that there are 3 slave domain controllers : the slave domain controller S32G, the slave domain controller ORIN and the slave domain controller TCAM, the address information of the slave domain controller S32G may include IP information: 192.168.0.2; and PORT information: 0002. The address information of the secondary domain controller ORIN may include IP information: 192.168.0.3; and PORT information: 0003. The address information of the secondary domain controller ORIN may include IP information: 192.168.0.4; and PORT information: 0004. It should be noted that the primary domain controller may also have address information, such as IP information: 192.168.0.1; and PORT information: 0001. It is worth noting that the above description of the specific implementation of the address information of the slave domain controller is only an exemplary display, and in practical applications, other specific implementations are not excluded, and this is not specifically limited.

请参见图3,下面对本申请一个实施例的控制器跨域通信的具体应用场景进行示例性说明:Referring to FIG. 3, the following is an exemplary description of a specific application scenario of controller cross-domain communication in an embodiment of the present application:

以汽车场景为例,假设汽车上存在多个域控制器,分别是主域控制器301、从域控制器302、从域控制器303以及从域控制器304,从域控制器302、从域控制器303以及从域控制器304分别有自身的地址信息:地址信息1、地址信息2、地址信息3,且3个从域控制器可以分别预存有主域控制器301的地址信息以随时与主域控制器301进行通信,主域控制器301可以分别获取从域控制器302、从域控制器303以及从域控制器304的地址信息1、地址信息2、地址信息3并记录于主域控制器301中,以从域控制器302为例,当从域控制器302需要与从域控制器303通信时,可以先根据预存的主域控制器301的地址信息与主域控制器301建立链接,再通过该链接从主域控制器301中获取从域控制器303的地址信息2,当成功获取到地址信息2后,从域控制器302可以基于该地址信息2与从域控制器303建立链接以实现二者的通信,若获取地址信息2失败(例如主域控制器301中不存在地址信息2的情况),则确认发送错误,并将该错误返回至从域控制器302。当汽车中新增一从域控制器时,新增的从域控制器也可将其地址信息上报至主域控制器301中,主域控制器301将该新增的地址信息进行记录。Taking the car scene as an example, assuming that there are multiple domain controllers on the car, they are master domain controller 301, slave domain controller 302, slave domain controller 303, and slave domain controller 304, slave domain controller 302, slave domain controller The controller 303 and the slave domain controller 304 have their own address information: address information 1, address information 2, and address information 3, and the three slave domain controllers can pre-store the address information of the master domain controller 301 to communicate with each other at any time. The master domain controller 301 communicates, and the master domain controller 301 can respectively obtain address information 1, address information 2, and address information 3 of the slave domain controller 302, slave domain controller 303, and slave domain controller 304 and record them in the master domain In the controller 301, taking the slave domain controller 302 as an example, when the slave domain controller 302 needs to communicate with the slave domain controller 303, it can first establish an Link, and then obtain the address information 2 of the slave domain controller 303 from the master domain controller 301 through the link, when the address information 2 is successfully obtained, the slave domain controller 302 can communicate with the slave domain controller 303 based on the address information 2 A link is established to realize the communication between the two. If the address information 2 fails to be obtained (for example, the address information 2 does not exist in the master domain controller 301 ), then a sending error is confirmed and the error is returned to the slave domain controller 302 . When a new slave domain controller is added in the car, the newly added slave domain controller can also report its address information to the master domain controller 301, and the master domain controller 301 records the newly added address information.

本申请实施例提供的技术方案,当存在多个有相互通信需求的域控制器时,在该多个域控制器中确定主域控制器,并将该主域控制器之外的域控制器确定为从域控制器,将各个从域控制器的地址信息记录于该主域控制器,当不同的从域控制器间需要进行通信时,一个从域控制器可以直接通过主域控制器所记录的地址信息与另一个从域控制器创建通信链接,而不需要额外的配置文件配置地址信息,即使在新增域时,也不需要新增额外的配置文件,而仅需将新增域控制器的地址信息记录于主域控制器,从而大大减少配置文件的数量,降低了配置成本,且避免配置混乱,提高通信成功率。In the technical solution provided by the embodiment of the present application, when there are multiple domain controllers that need to communicate with each other, the primary domain controller is determined among the multiple domain controllers, and the domain controllers other than the primary domain controller are Determined as a slave domain controller, record the address information of each slave domain controller in the master domain controller, when different slave domain controllers need to communicate, a slave domain controller can directly pass the address information of the master domain controller The recorded address information establishes a communication link with another secondary domain controller without additional configuration files to configure address information. The address information of the controller is recorded in the primary domain controller, thereby greatly reducing the number of configuration files, reducing configuration costs, avoiding configuration confusion, and improving communication success rate.

相应于上述方法实施例,本申请还提供一种控制器跨域通信装置,参见图4所示,该装置可以包括:Corresponding to the above method embodiment, the present application also provides a controller cross-domain communication device, as shown in FIG. 4, the device may include:

确定单元401,用于在多个域控制器中确定主域控制器;A determining unit 401, configured to determine a primary domain controller among multiple domain controllers;

记录单元402,用于获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;The recording unit 402 is configured to obtain address information of a slave domain controller, and record the address information in the master domain controller, where the slave domain controller is the master domain controller among the plurality of domain controllers A domain controller other than the controller, the address information can be used to establish a communication link between different domain controllers;

创建单元403,用于基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。The creating unit 403 is configured to, based on the address information recorded by the master domain controller, create links between different slave domain controllers to realize communication, and there is a communication requirement among the different slave domain controllers.

作为例子,确定单元401具体用于在所述多个域控制器中,将具有中央网关的域控制器确定为所述主域控制器。As an example, the determining unit 401 is specifically configured to determine, among the plurality of domain controllers, a domain controller having a central gateway as the primary domain controller.

作为例子,所述中央网关的地址信息预存于所述从域控制器,以使所述从域控制器基于所述中央网关的地址信息与所述主域控制器建立通信链接。As an example, the address information of the central gateway is pre-stored in the slave domain controller, so that the slave domain controller establishes a communication link with the master domain controller based on the address information of the central gateway.

作为例子,记录单元402具体用于监控所述从域控制器的engine的运行状态,所述运行状态包括上线状态或离线状态;若监控到所述运行状态为上线状态,则获取所述从域控制器的engine的地址信息。As an example, the recording unit 402 is specifically used to monitor the running state of the engine of the slave domain controller, and the running state includes an online state or an offline state; if it is monitored that the running state is an online state, then obtain the The address information of the engine of the controller.

作为例子,记录单元402具体用于将所述地址信息记录于所述主域控制器的manager应用程序。As an example, the recording unit 402 is specifically configured to record the address information in a manager application program of the primary domain controller.

作为例子,上述控制器跨域通信装置应用于SOA架构,创建单元403具体用于基于所述主域控制器记录的所述地址信息以及所述SOA架构的SOA中间件为不同的从域控制器间创建链接以实现通信。As an example, the above-mentioned controller cross-domain communication device is applied to the SOA architecture, and the creation unit 403 is specifically configured to create different slave domain controllers based on the address information recorded by the master domain controller and the SOA middleware of the SOA architecture Create links between them for communication.

作为例子,所述地址信息包括IP信息以及PORT信息。As an example, the address information includes IP information and PORT information.

值得指出,上文控制器跨域通信方法中各个实施例均可适用于控制器跨域通信装置在基于主域控制器记录的从域控制器的地址信息,为不同的从域控制器间创建链接以实现通信的过程。It is worth pointing out that each of the above embodiments of the controller cross-domain communication method can be applied to the controller cross-domain communication device based on the address information of the slave domain controller recorded by the master domain controller to create a network between different slave domain controllers. The process of linking to enable communication.

本申请还提供了一种电子设备,如图5所示,该电子设备包括:The present application also provides an electronic device, as shown in Figure 5, the electronic device includes:

处理器501;Processor 501;

用于存储处理器可执行指令的存储器502;memory 502 for storing processor-executable instructions;

其中,所述处理器501被配置为实现上文中任一实施例所描述的控制器跨域通信方法。Wherein, the processor 501 is configured to implement the controller cross-domain communication method described in any of the above embodiments.

本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上文中任一实施例所描述的控制器跨域通信方法。The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the controller cross-domain communication method described in any of the above embodiments is implemented.

以上所述仅是本申请的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only the specific implementation of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, some improvements and modifications can also be made. It should be regarded as the protection scope of this application.

Claims (10)

1.一种控制器跨域通信方法,其特征在于,包括:1. A controller cross-domain communication method, characterized in that, comprising: 在多个域控制器中确定主域控制器;Determining the primary domain controller among multiple domain controllers; 获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;Obtain address information of a slave domain controller, and record the address information in the master domain controller, where the slave domain controller is a domain other than the master domain controller among the plurality of domain controllers a controller, the address information can be used to establish a communication link between different domain controllers; 基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。Based on the address information recorded by the master domain controller, links are established between different slave domain controllers to implement communication, and there is a communication requirement among the different slave domain controllers. 2.根据权利要求1所述的方法,其特征在于,所述在多个域控制器中确定主域控制器包括:2. The method according to claim 1, wherein said determining the primary domain controller among the plurality of domain controllers comprises: 在所述多个域控制器中,将具有中央网关的域控制器确定为所述主域控制器。Among the plurality of domain controllers, a domain controller having a central gateway is determined as the master domain controller. 3.根据权利要求2所述的方法,其特征在于,所述中央网关的地址信息预存于所述从域控制器,以使所述从域控制器基于所述中央网关的地址信息与所述主域控制器建立通信链接。3. The method according to claim 2, wherein the address information of the central gateway is pre-stored in the slave domain controller, so that the slave domain controller is based on the address information of the central gateway and the The primary domain controller establishes the communication link. 4.根据权利要求1所述的方法,其特征在于,所述地址信息为运行于所述从域控制器的engine的地址信息,所述获取从域控制器的地址信息之前,所述方法还包括:4. The method according to claim 1, wherein the address information is address information of an engine running on the slave domain controller, and before obtaining the address information of the slave domain controller, the method further include: 监控所述从域控制器的engine的运行状态,所述运行状态包括上线状态或离线状态;Monitoring the running state of the engine of the slave domain controller, the running state includes an online state or an offline state; 所述获取从域控制器的地址信息包括:The acquisition of address information from the domain controller includes: 若监控到所述运行状态为上线状态,则获取所述从域控制器的engine的地址信息。If it is monitored that the running state is the online state, the address information of the engine of the slave domain controller is obtained. 5.根据权利要求1所述的方法,其特征在于,所述将所述地址信息记录于所述主域控制器包括:5. The method according to claim 1, wherein the recording the address information in the primary domain controller comprises: 将所述地址信息记录于所述主域控制器的manager应用程序。Record the address information in the manager application program of the primary domain controller. 6.根据权利要求1所述的方法,其特征在于,所述方法应用于SOA架构,所述基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信包括:6. The method according to claim 1, wherein the method is applied to an SOA framework, and based on the address information recorded by the master domain controller, a link is created between different slave domain controllers to Implementing communications includes: 基于所述主域控制器记录的所述地址信息以及所述SOA架构的SOA中间件为不同的从域控制器间创建链接以实现通信。Based on the address information recorded by the master domain controller and the SOA middleware of the SOA architecture, links are established between different slave domain controllers to implement communication. 7.根据权利要求1所述的方法,其特征在于,所述地址信息包括IP信息以及PORT信息。7. The method according to claim 1, wherein the address information includes IP information and PORT information. 8.一种控制器跨域通信装置,其特征在于,包括:8. A controller cross-domain communication device, characterized in that, comprising: 确定单元,用于在多个域控制器中确定主域控制器;a determination unit, configured to determine a primary domain controller among multiple domain controllers; 记录单元,用于获取从域控制器的地址信息,并将所述地址信息记录于所述主域控制器,所述从域控制器为所述多个域控制器中除所述主域控制器之外的域控制器,所述地址信息能够用于建立不同域控制器间的通信链接;A recording unit, configured to acquire address information of a slave domain controller, and record the address information in the master domain controller, where the slave domain controller is one of the plurality of domain controllers except the master domain controller a domain controller other than the domain controller, and the address information can be used to establish a communication link between different domain controllers; 创建单元,用于基于所述主域控制器记录的所述地址信息,为不同的从域控制器间创建链接以实现通信,所述不同的从域控制器间存在通信需求。The creating unit is configured to, based on the address information recorded by the master domain controller, create a link between different slave domain controllers to realize communication, and there is a communication requirement among the different slave domain controllers. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为实现权利要求1至7中任一项所述的方法。Wherein, the processor is configured to implement the method according to any one of claims 1-7. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述方法中的步骤。10. A computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are realized.
CN202310754553.5A 2023-06-25 2023-06-25 Controller cross-domain communication method, device, electronic equipment and storage medium Pending CN116684415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310754553.5A CN116684415A (en) 2023-06-25 2023-06-25 Controller cross-domain communication method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310754553.5A CN116684415A (en) 2023-06-25 2023-06-25 Controller cross-domain communication method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116684415A true CN116684415A (en) 2023-09-01

Family

ID=87780894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310754553.5A Pending CN116684415A (en) 2023-06-25 2023-06-25 Controller cross-domain communication method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116684415A (en)

Similar Documents

Publication Publication Date Title
US11044230B2 (en) Dynamically opening ports for trusted application processes hosted in containers
CN102947797B (en) The online service using directory feature extending transversely accesses and controls
US20080022120A1 (en) System, Method and Computer Program Product for Secure Access Control to a Storage Device
CN111950019A (en) Block chain-based Internet of things access control system and method
CN111489256A (en) Cross-chain processing method, equipment and system for multi-chain block chain system
CN112948842A (en) Authentication method and related equipment
CN102316043B (en) Port virtualization method, switch and communication system
CN114244568B (en) Security access control method, device and equipment based on terminal access behavior
CN107547480A (en) A kind of method, apparatus and virtual desktop management system of virtual desktop security control
CN107835089A (en) The method and apparatus for managing resource
US11166147B2 (en) Roaming among different types of networks
CN108053088A (en) A kind of Subscriber Management System, method and apparatus
CN111343262B (en) Distributed cluster login method, device, equipment and storage medium
CN103297441A (en) Access control method and device
CN112468539A (en) Method, device and equipment for calling K8S cluster user resources and readable medium
CN110069911A (en) Access control method, device, system, electronic equipment and readable storage medium
WO2024021703A1 (en) Server control method, server, and storage medium
CN115296866B (en) Access method and device for edge node
CN111970162B (en) Heterogeneous GIS platform service central control system under super-integration framework
CN102495987B (en) The method and system of the anti-access of divulging a secret in a kind of electronic information this locality
CN108366087A (en) A kind of ISCSI service implementing methods and device based on distributed file system
CN109376135B (en) A cluster file system management method and system
CN116684415A (en) Controller cross-domain communication method, device, electronic equipment and storage medium
CN113742414A (en) Method, device, system and computer readable storage medium for sharing operating system
CN111600755A (en) Internet access behavior management system and 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