Traffic control method, device, electronic device and storage medium
Traffic management and control is carried out through the collection of service group policy identifiers, which solves the high cost problems caused by the large number of policies and frequent device changes in the existing technology, and achieves efficient and safe traffic control.
Patent Information
- Application Number
- CN202111335899.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-11-11
AI Technical Summary
Existing traffic management and control methods require policies to be formulated based on a single device, resulting in a large number of policies and the need to modify a large number of policies when the device changes, which increases device performance and management and control costs.
To control the traffic of the device through the service group policy identification set, you only need to modify the service group policy identification set, which reduces the number of generated and distributed policies, and reduces device performance and management and control costs.
This eliminates the need to modify the corresponding service group policy when the device changes, reducing the cost and time complexity of traffic management and control, and improving the real-time nature and security of management and control.
Smart Images

Figure CN114221906B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to the field of cloud computing technology. Background Art
[0002] Existing traffic control methods require formulating policies based on a single device to control traffic. Each device corresponds to an identifier, and the policy for each device is different. The number of policies that need to be formulated is extremely large, and when the device changes, the number of policies that need to be modified is also very large. Summary of the invention
[0003] The present disclosure provides a flow control method, device, electronic device and storage medium.
[0004] According to one aspect of the present disclosure, a traffic control method is provided, including:
[0005] The first device receives a request sent by the second device;
[0006] Obtaining an identifier of a second device that sends a request;
[0007] If the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located, the service group policy corresponding to the service group policy identifier set is executed on the request.
[0008] According to another aspect of the present disclosure, there is provided a flow control device, comprising:
[0009] A transceiver module, used for the first device to receive a request sent by the second device;
[0010] A collection module, used to obtain an identifier of a second device that sends a request;
[0011] The calculation module is configured to execute the service group policy corresponding to the service group policy identifier set on the request if the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located.
[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any of the above methods.
[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the above methods.
[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements any of the above methods when executed by a processor.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0020] Figure 1 It is a flow chart of a flow control method provided according to an embodiment of the present disclosure;
[0021] Figure 2 It is a flowchart of another flow control method provided according to an embodiment of the present disclosure;
[0022] Figure 3 It is a flowchart of another flow control method provided according to an embodiment of the present disclosure;
[0023] Figure 4 It is a flowchart of another flow control method provided according to an embodiment of the present disclosure;
[0024] Figure 5 It is a flowchart of another flow control method provided according to an embodiment of the present disclosure;
[0025] Figure 6 It is a flowchart of a specific method for flow control provided according to an embodiment of the present disclosure;
[0026] Figure 7 is a structural schematic diagram of a flow control device provided according to an embodiment of the present disclosure;
[0027] Figure 8 It is a block diagram of an electronic device used to implement the flow control method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0029] In order to control the traffic of devices through the service group policy identifier set, there is no need to modify the policy when the device changes, and reduce the device performance required for traffic control, such as Figure 1 As shown, an embodiment of the present disclosure provides a traffic control method, the method comprising:
[0030] Step 101: A first device receives a request sent by a second device.
[0031] When the second device needs to request a certain service, it sends a request to the first device in the service group that can perform the service, where the service group is the identifier or a collection of identifiers and ports of all devices that can perform the certain service;
[0032] For example, when the second device needs to request data in the database, it sends a request to a first device in the first service group, that is, the database service group, to request the data needed by the second device.
[0033] Step 102: Obtain an identifier of a second device that sends a request.
[0034] Step 103: If the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located, execute the service group policy corresponding to the service group policy identifier set for the request.
[0035] The service group policy may be a policy formulated only for the devices in the service group, or a common policy formulated for the devices in all service groups, and is distributed to the devices in the corresponding service group by the policy control center before use.
[0036] The existing method formulates policies based on a single device to control traffic. For example, a first service group has 10 devices and a second service group has 20 devices. The policies of each device are different, so 10*20 policies need to be set. When a device in the first service group or the second service group changes, the policies related to the device need to be modified. The demand for device performance is very high, which greatly increases the cost of controlling traffic. When there are multiple service groups, the required device performance and the cost of controlling traffic grow exponentially. When the traffic control method in this embodiment is used, it is only necessary to set a service group policy identifier set that can access the service group for the service group, so that other service groups can control the traffic when accessing the devices in the service group. When the device of the service group changes, it is only necessary to modify the service group policy identifier set of the service group to increase or decrease the device. There is no need to modify the corresponding service group policy, and the time complexity is also greatly reduced. By improving the original policy formulation based on a single device to the policy formulation by setting the service group policy identifier set, the number of policies to be generated and issued is greatly reduced, and the required device performance and the cost of controlling traffic are reduced.
[0037] In one possible implementation, Figure 2 As shown, after obtaining the identifier of the second device in the above step 102, step 104 can be executed to determine whether the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located. If the judgment result is yes, step 103 is executed; if the judgment result is no, the request sent by the second device is rejected.
[0038] The second device has its own identification and sends a request to the first device. The first device may be able to execute multiple services and belong to multiple service groups at the same time, so the first device may have multiple service group policy identification sets at the same time. Then, first determine whether the first device can execute the service that the request sent by the second device needs to access. If it can, determine whether the identification of the second device is in the service group policy identification set according to the corresponding service group policy identification set. The service group policy identification set is a set of identifications of devices that are allowed to access the corresponding service group and obtained in advance from the policy control center;
[0039] For example, when the device identifier is the IP (Internet Protocol address) of the device, the first service group policy identifier set is {192.168.0.1, 192.168.0.10, 192.168.0.14, 192.168.0.18, 192.168.0.29, 192.168.0.35, 192.168.0.49}, the identifier of the second device sending the request is 192.168.0.29, and the identifier of the second device sending the request is within the first service group policy identifier set;
[0040] For another example, when the device identifier is the IP of the device, the first service group policy identifier set is {192.168.0.1, 192.168.0.10, 192.168.0.14, 192.168.0.18, 192.168.0.29, 192.168.0.35, 192.168.0.49}, and the identifier of the second device sending the request is 192.168.0.82. The identifier of the second device sending the request is not in the first service group policy identifier set.
[0041] After receiving the identifier of the second device sent by the second device, the identifier of the second device is judged to determine whether the identifier of the second device is in the service group policy identifier set corresponding to at least one service group where the first device is located. The first device may belong to multiple service groups at the same time, that is, there may be service group policy identifier sets corresponding to multiple service groups in the first device. If the identifier of the second device is in the service group policy identifier set corresponding to at least one service group existing in the first device, it means that the request of the second device is allowed to access the first device. If the identifier of the second device is not in the service group policy identifier set corresponding to any service group existing in the first device, the request of the second device is rejected, which reduces the risk of access between service group devices and improves the security of traffic control.
[0042] Before step 101, in one embodiment, Figure 3 As shown, execute step 201 to step 203;
[0043] Step 201, obtaining a first policy version number from a policy control center every first time period;
[0044] Step 202, determining whether the first policy version number is the same as the second policy version number on the local computer;
[0045] In step 202, when determining whether the first policy version number is the same as the second policy version number on the local computer, if the first policy version number is the same as the second policy version number on the local computer, directly execute step 101 to execute Figure 1 or Figure 2 In the method shown in , if the first policy version number is different from the second policy version number on the local computer, continue to execute step 203;
[0046] Step 203: if they are different, obtaining a corresponding service group policy identifier set from a policy control center according to the first policy version number;
[0047] After obtaining the corresponding service group policy identifier set from the policy control center according to the first policy version number in step 203, step 101 is executed to execute Figure 1 or Figure 2The method shown in .
[0048] Every first time period, each device in each service group will obtain the first policy version number from the policy control center. The first policy version number is the latest version number of the corresponding service group policy in the policy control center. It is determined whether the first policy version number is the same as the second policy version number on the local machine. If different, the corresponding service group policy identifier set is obtained from the policy control center according to the first policy version number. The modified service group policy identifier set can be updated regularly, thereby improving the real-time performance of traffic control.
[0049] Before step 101, in one embodiment, Figure 4 As shown, execute step 301 to step 303;
[0050] Step 301, receiving a first policy version number sent by a message queue center;
[0051] Step 302, determining whether the first policy version number is the same as the second policy version number on the local computer;
[0052] In step 302, when determining whether the first policy version number is the same as the second policy version number on the local computer, if the first policy version number is the same as the second policy version number on the local computer, directly execute step 101 to execute Figure 1 or Figure 2 In the method shown in , if the first policy version number is different from the second policy version number on the local computer, continue to execute step 303;
[0053] Step 303: If they are different, obtain the corresponding service group policy identification set from the message queue center according to the first policy version number. The corresponding service group policy identification set is modified according to the change and sent to the message queue center when the policy control center detects that any device involved in the corresponding service group policy identification set has changed.
[0054] After obtaining the corresponding service group policy identifier set from the message queue center according to the first policy version number in step 303, step 101 is executed to execute Figure 1 or Figure 2 The method shown in .
[0055] When the policy control center detects changes in any device involved in the corresponding service group policy identification set, such as an increase in the number of devices allowed to access the corresponding service group, the corresponding service group policy identification set needs to add the identification of the device. After the policy control center detects and modifies the corresponding service group policy identification set, the corresponding service group policy identification set is sent to the message queue center, so that the message queue center sends a notification to the devices of the corresponding service group that need to be updated. After receiving the notification, the devices of the corresponding service group obtain the modified corresponding service group policy identification set from the message queue center according to the notification and update it. The identification set of the devices in the service group whose corresponding identification set has been modified can be updated in real time, and only the identification set of the devices in the service group whose corresponding identification set has been modified is updated, thereby reducing the amount of data for updating the identification set, and there is no need to update the service group policy, thereby reducing the maintenance cost.
[0056] Before step 101, in one embodiment, Figure 5 As shown, execute step 401, receive the corresponding service group policy identification set sent by the message queue center, and the corresponding service group policy identification set is when the policy control center monitors that any device involved in the corresponding service group policy identification set changes, the corresponding service group policy identification set is modified according to the change and sent to the message queue center, and the message queue center sends the modified corresponding service group policy identification set to the device in the corresponding service group.
[0057] After receiving the corresponding service group policy identification set sent by the message queue center in step 401, step 101 is executed to execute Figure 1 or Figure 2 The method shown in .
[0058] When the policy control center detects changes in any device involved in the corresponding service group policy identification set, such as an increase in the number of devices allowed to access the corresponding service group, the corresponding service group policy identification set needs to add the identification of the device. After the policy control center detects and modifies the corresponding service group policy identification set, the corresponding service group policy identification set is sent to the message queue center. The message queue center directly sends the modified corresponding service group policy identification set to the corresponding service group based on the modified corresponding service group policy identification set, so that the corresponding service group receives the modified corresponding service group policy identification set and updates it. Since the message queue center no longer sends the version number, and the devices in the corresponding service group obtain the corresponding service group policy identification set based on the version number, the modified corresponding service group policy identification set is directly sent to the devices in the corresponding service group, which reduces the steps of updating the service group policy identification set, improves the efficiency of updating the policy identification set for the service group, and further reduces the maintenance cost.
[0059] like Figure 6 As shown, an embodiment of the present disclosure provides a specific method for flow control, the method comprising:
[0060] Execute step 201 to obtain a first policy version number from a policy control center every first time period;
[0061] Step 202, determining whether the first policy version number is the same as the second policy version number on the local computer;
[0062] Step 203: If they are different, obtain the corresponding service group policy identifier set from the policy control center according to the first policy version number.
[0063] Alternatively, execute step 301 to receive the first policy version number sent by the message queue center;
[0064] Step 302, determining whether the first policy version number is the same as the second policy version number on the local computer;
[0065] Step 303: If they are different, obtain the corresponding service group policy identification set from the message queue center according to the first policy version number. The corresponding service group policy is that when the policy control center monitors that any device involved in the corresponding service group policy identification set has changed, the corresponding service group policy identification set is modified according to the change and sent to the message queue center.
[0066] Or execute step 401, receive the corresponding service group policy identification set sent by the message queue center, the corresponding service group policy identification set is when the policy control center monitors that any device involved in the corresponding service group policy identification set changes, the corresponding service group policy identification set is modified according to the change and sent to the message queue center, and the message queue center sends the modified corresponding service group policy identification set to the device in the corresponding service group.
[0067] Executing steps 201 to 203 or executing steps 301 to 303 or executing step 401 is to update the service group policy identifier set in all devices. When a service group policy identifier set changes, the above three methods are executed to update. After executing steps 201 to 203 or executing steps 301 to 303 or executing step 401, executing step 101, the first device receives a request sent by the second device;
[0068] Step 102, obtaining the identifier of the second device that sends the request;
[0069] Step 104, determining whether the identifier of the second device sending the request is in a service group policy identifier set corresponding to at least one service group where the first device is located;
[0070] Step 103: If the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located, execute the service group policy corresponding to the service group policy identifier set for the request.
[0071] When using the specific method of traffic control in this embodiment, it is only necessary to set a service group policy identifier set that can access the service group for the service group, so as to implement traffic control when other service groups access devices in the service group. When the devices in the service group change, it is only necessary to modify the service group policy identifier set of the service group to increase or decrease the devices. There is no need to modify the corresponding service group policy, and the time complexity is also greatly reduced. By improving the original policy formulation according to a single device to formulating policies by setting a service group policy identifier set, the number of policies to be generated and issued is greatly reduced, and the required device performance and the cost of controlling traffic are reduced.
[0072] An embodiment of the present disclosure provides a flow control device, such as Figure 7 As shown, the device comprises:
[0073] The transceiver module 10 is used for the first device to receive a request sent by the second device;
[0074] The acquisition module 20 is used to obtain the identifier of the second device that sends the request;
[0075] The calculation module 30 is configured to execute the service group policy corresponding to the service group policy identifier set on the request if the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group where the first device is located.
[0076] The transceiver module 10 is further configured to obtain a first policy version number from the policy control center every first time period;
[0077] The transceiver module 10 is further configured to obtain a corresponding service group policy identifier set from a policy control center according to the first policy version number if the first policy version number is different from the second policy version number on the local computer.
[0078] Wherein, the transceiver module 10 is also used to receive the first policy version number sent by the message queue center;
[0079] The transceiver module 10 is also used to obtain a corresponding service group policy identification set from the message queue center according to the first policy version number if the first policy version number is different from the second policy version number on the local computer. The corresponding service group policy identification set is modified according to the change and sent to the message queue center when the policy control center detects that any device involved in the corresponding service group policy identification set has changed.
[0080] Among them, the transceiver module 10 is also used to receive the corresponding service group policy identification set sent by the message queue center. When the policy control center monitors that any device involved in the corresponding service group policy identification set has changed, the corresponding service group policy identification set is modified according to the change and sent to the message queue center, and the message queue center sends the modified corresponding service group policy identification set to the device in the corresponding service group.
[0081] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0082] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0083] Figure 8 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0084] like Figure 8 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0085] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0086] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the traffic control method. For example, in some embodiments, the traffic control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the traffic control method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the traffic control method in any other appropriate manner (e.g., by means of firmware).
[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0088] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0089] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0090] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0091] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0092] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0094] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A traffic control method, include: The first device receives a request sent by the second device, where the service requested by the request is a service executable by a service group to which the first device belongs, the first device includes a service group policy identifier set corresponding to multiple service groups, and the service group policy identifier set includes identifiers of multiple devices allowed to access the service group corresponding to the service group policy identifier set; Obtaining an identifier of a second device that sends a request; If the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group, the service group policy corresponding to the service group policy identifier set is executed on the request.
2. The method according to claim 1, further comprising: include: Obtaining a first policy version number from a policy control center every first time period; If the first policy version number is different from the second policy version number on the local computer, a corresponding service group policy identifier set is obtained from a policy control center according to the first policy version number.
3. The method according to claim 1, further comprising: include: Receive the first policy version number sent by the message queue center; If the first policy version number is different from the second policy version number on the local computer, the corresponding service group policy identification set is obtained from the message queue center according to the first policy version number. When the policy control center detects that any device involved in the corresponding service group policy identification set has changed, the corresponding service group policy identification set is modified according to the change and sent to the message queue center.
4. The method according to claim 1, further comprising: include: Receive the corresponding service group policy identification set sent by the message queue center. When the policy control center monitors that any device involved in the corresponding service group policy identification set changes, the corresponding service group policy identification set is modified according to the change and sent to the message queue center. The message queue center sends the modified corresponding service group policy identification set to the devices in the corresponding service group.
5. A flow control device, include: A transceiver module, configured to receive, by a first device, a request sent by a second device, wherein the service requested by the request is a service executable by a service group to which the first device belongs, wherein the first device contains a service group policy identifier set corresponding to a plurality of service groups, wherein the service group policy identifier set contains identifiers of a plurality of devices that are allowed to access the service group corresponding to the service group policy identifier set; A collection module, used to obtain an identifier of a second device that sends a request; The calculation module is configured to execute the service group policy corresponding to the service group policy identifier set on the request if the identifier of the second device sending the request is in the service group policy identifier set corresponding to at least one service group.
6. The device according to claim 5, include: The transceiver module is further configured to obtain a first policy version number from the policy control center every first time period; The transceiver module is further configured to obtain a corresponding service group policy identifier set from a policy control center according to the first policy version number if the first policy version number is different from the second policy version number on the local computer.
7. The device according to claim 5, include: The transceiver module is further used to receive the first policy version number sent by the message queue center; The transceiver module is also used to obtain a corresponding service group policy identification set from the message queue center according to the first policy version number if the first policy version number is different from the second policy version number on the local computer. The corresponding service group policy identification set is modified according to the change and sent to the message queue center when the policy control center detects that any device involved in the corresponding service group policy identification set has changed.
8. The device according to claim 5, include: The transceiver module is also used to receive a corresponding service group policy identification set sent by a message queue center. When the policy control center detects that any device involved in the corresponding service group policy identification set has changed, the corresponding service group policy identification set is modified according to the change and sent to the message queue center. The message queue center sends the modified corresponding service group policy identification set to the device in the corresponding service group.
9. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
10. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 4.
