A business data distribution system, method, device, electronic device and medium
By configuring virtual distribution devices for sub-control devices in the video communication network, the problem of data discarding caused by traffic overflow of the sub-control devices is solved and the stability of network services is ensured.
Patent Information
- Application Number
- CN202211130535.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-09-15
AI Technical Summary
In a video communication network, if the sub-control device reaches the set traffic upper limit when processing services, it may discard data packets exceeding the upper limit, causing abnormal business processing operations.
Configure a virtual target distribution device for the target sub-control device to send alarm messages when the upstream and downstream traffic exceeds the threshold, and forward the business data to be sent to the target distribution device to avoid data discarding.
By configuring simulated traffic distribution devices for sub-control devices, traffic exceeding the threshold is monitored and processed, avoiding data discarding and ensuring normal business operations of the video communication network.
Smart Images

Figure CN115633197B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a business data diversion system, method, device, electronic equipment and medium. Background Art
[0002] In a video communication network, if a sub-control device reaches a set flow limit during service processing, the sub-control device may discard data packets exceeding the limit; thus, the service processing operation may be abnormal. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a business data diversion system, method, device, electronic device and medium that overcome the above problems or at least partially solve the above problems.
[0004] A business data distribution system comprises a main control device and at least one sub-control device, wherein the main control device is connected to the at least one sub-control device; the system further comprises a target distribution device configured for the target sub-control device, wherein the target distribution device is a virtual device;
[0005] The target sub-control device is used to send a first alarm message to multiple target terminal devices under the target sub-control device when the uplink traffic exceeds a first threshold; send a second alarm message to the main control device and other sub-control devices except the target sub-control device when the downlink traffic exceeds a second threshold; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device;
[0006] The master control device is configured to send the second service data to be sent to the target sub-control device to the target diversion device after receiving the second alarm message;
[0007] The target traffic distribution device is used to forward the first service data and / or the second service data.
[0008] Optionally, it is characterized in that
[0009] The target traffic distribution device is further used to modify the media access control MAC address of the target traffic distribution device into the MAC address of the target sub-control device when forwarding service data.
[0010] Optionally, it is characterized in that
[0011] The target sub-control device is further configured to, after sending the first alarm message, send a first recovery message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device does not exceed the first threshold; after receiving the first alarm message, the multiple target terminal devices send the third service data to be sent to the target diversion device to the target sub-control device, so as to forward the third service data through the target sub-control device;
[0012] The target sub-control device is also used to send a second recovery message to the main control device and other sub-control devices except the target sub-control device after sending the second alarm message, when it is monitored that the downlink traffic of the target sub-control device does not exceed the second threshold; after receiving the second recovery message, the main control device and the other sub-control devices send the fourth business data to be sent to the target diversion device to the target sub-control device, so as to forward the fourth business data through the target sub-control device.
[0013] Optionally, it is characterized in that
[0014] The target traffic distribution device is further used to forward the data to be forwarded by the target sub-control device when the target sub-control device fails.
[0015] Optionally, it is characterized in that
[0016] The master control device is further used to register the target diversion device of the target sub-control device to generate first registration information; and generate a target configuration file of the target diversion device according to the first registration information;
[0017] The system also includes a preset server, which is used to import the target configuration file into a preset simulation program and start the preset simulation program according to a trigger rule to create a target diversion device configured for the target sub-control device.
[0018] Optionally, it is characterized in that
[0019] The master control device is further used to obtain the second registration information of the target sub-control device; update the second registration information according to the first registration information; generate a first notification message according to the updated second registration information; and send the first notification message to the sub-control device that has been connected to the network;
[0020] The target sub-control device is further configured to generate a second notification message based on the first notification message when receiving the first notification message, and send the second notification message to the multiple target terminal devices.
[0021] In order to solve the above problem, an embodiment of the present invention further discloses a service data diversion method, which is applied to the diversion system as described above. The method includes:
[0022] Configuring a target traffic distribution device for a target sub-control device, wherein the target traffic distribution device is a virtual device;
[0023] When it is monitored that the uplink traffic of the target sub-control device exceeds a first threshold, a first alarm message is sent to multiple target terminal devices under the target sub-control device; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device, so as to forward the first service data through the target diversion device;
[0024] When it is monitored that the downlink traffic of the target sub-control device exceeds the second threshold, a second alarm message is sent to the main control device and other sub-control devices except the target sub-control device; after receiving the second alarm message, the main control device and the other sub-control devices send the second service data to be sent to the target sub-control device to the target diversion device, so as to forward the second service data through the target diversion device
[0025] In order to solve the above problem, an embodiment of the present invention further discloses a service data distribution device, which is applied to the above-mentioned distribution system, and the device includes:
[0026] A configuration module, used to configure a target distribution device for a target sub-control device, wherein the target distribution device is a virtual device;
[0027] A first alarm module is used to send a first alarm message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device exceeds a first threshold; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device, so as to forward the first service data through the target diversion device;
[0028] The second alarm module is used to send a second alarm message to the main control device and other sub-control devices except the target sub-control device when it is monitored that the downlink traffic of the target sub-control device exceeds a second threshold; after receiving the second alarm message, the main control device and the other sub-control devices send the second business data to be sent to the target sub-control device to the target diversion device, so as to forward the second business data through the target diversion device.
[0029] In order to solve the above problem, an embodiment of the present invention further discloses an electronic device, including:
[0030] one or more processors; and
[0031] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the business data diversion method as described above.
[0032] In order to solve the above problem, an embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program that enables a processor to execute the business data diversion method as described above.
[0033] The embodiments of the present invention include the following advantages:
[0034] In an embodiment of the present invention, a simulated sub-control device can be configured as a diversion device for the physical sub-control device in the diversion system by triggering a preset simulation program; thereby, when it is monitored that the uplink / downlink traffic of the target sub-control device configured with the diversion device exceeds the preset threshold, the data is forwarded through the diversion device configured for the target sub-control device; this avoids the target sub-control device discarding service data when the uplink / downlink traffic exceeds the preset threshold, thereby causing abnormalities in normal services entering the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a structural block diagram of a server;
[0036] Figure 2 It is a structural block diagram of an embodiment of a business data diversion system of the present invention;
[0037] Figure 3 It is a flowchart of a method for diverting business data according to an embodiment of the present invention;
[0038] Figure 4 is a flowchart of another embodiment of a method for diverting business data of the present invention;
[0039] Figure 5a is a schematic diagram of a data interaction process of the present invention;
[0040] Figure 5b is a schematic diagram of a diversion system of the present invention;
[0041] Figure 6 It is a structural block diagram of an embodiment of a business data diversion device of the present invention. DETAILED DESCRIPTION
[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0043] For a video communication network, the distribution of its service data is realized by a server, which may include a main control device and multiple sub-control devices cascaded under the main control device, such as Figure 1 shown.
[0044] The main control device is the brain of the server, mainly used to receive and process commands sent by the business layer, and to feedback business results to the business layer. A sub-control device can be connected to multiple terminal devices, and the main user of the sub-control device is responsible for data forwarding.
[0045] In actual applications, in order to avoid occupying too many broadband resources, a traffic limit is set in advance for the sub-control device; when the sub-control device is processing business, when the set traffic limit is reached, the sub-control device may discard business data that exceeds the limit; however, this may cause the video communication network business corresponding to some normal business data to also become abnormal.
[0046] In order to avoid the above situation, an embodiment of the present invention provides a business data diversion system, which configures a simulated sub-control device as a diversion device for the entity's sub-control device. When the traffic of the entity's sub-control device exceeds the upper limit, the corresponding diversion device can assist the entity's sub-control device to process the business data that exceeds the upper limit.
[0047] Reference Figure 2 , shows a structural block diagram of an embodiment of a business data diversion system of the present invention, the diversion system 210 may include a main control device 211 and at least one sub-control device 212, the main control device 211 is connected to at least one sub-control device 212; the diversion system 210 may also include configuring a target diversion device 214 for a target sub-control device 213, the target diversion device 214 is a virtual device. The sub-control device 212 may be connected to multiple terminal devices 220, and the target sub-control device 213 may be connected to multiple target terminal devices 221.
[0048] The target sub-control device 213 is used to send a first alarm message to multiple target terminal devices 220 under the target sub-control device 213 when the upstream traffic exceeds a first threshold; when the downstream traffic exceeds a second threshold, send a second alarm message to the main control device 211 and other sub-control devices except the target sub-control device 213; after receiving the first alarm message, the multiple target terminal devices 220 send the first business data to be sent to the target sub-control device 213 to the target diversion device 214.
[0049] The main control device 211 is used to send the second service data to be sent to the target sub-control device 213 to the target diversion device 214 after receiving the second alarm message.
[0050] The target traffic distribution device 214 is used to forward the first service data and / or the second service data.
[0051] In actual applications, the target sub-control device 213 can forward the business data sent by the main control device 211 or other sub-control devices to the corresponding terminal device during the process of processing the business, and can also send the business data sent by the terminal device to the main control device 211 or other corresponding sub-control devices; among which, for the target sub-control device 213, the business data sent by the main control device 211 or other sub-control devices can correspond to the downlink traffic, and the business data sent by the terminal device can correspond to the uplink traffic.
[0052] In order to prevent the target terminal device 220 from discarding the corresponding service data when the uplink traffic or downlink traffic exceeds the preset value, thereby causing abnormalities in the normal services of the video communication network, the uplink traffic and downlink traffic of the target sub-control device 213 can be monitored separately.
[0053] If it is monitored that the uplink traffic of the target sub-control device 213 exceeds the preset first threshold, it may mean that the current uplink traffic of the target sub-control device 213 has exceeded the range that it can normally process.
[0054] At this time, the target sub-control device 213 can send a first alarm message to the multiple target terminal devices 220 under the target sub-control device 213 that generate the upstream traffic. The first alarm message can be used to notify the multiple target terminal devices 220 that the upstream traffic of the target sub-control device 213 at this time has exceeded the range that it can normally process.
[0055] In order to avoid the business data subsequently sent by the target terminal device 220 to the target sub-control device 213 being discarded by the target sub-control device 213, the target terminal device 220 can send the first business data to be sent to the target sub-control device 213 to the target diversion device 214 after receiving the first alarm message, so that the first business data can be forwarded to the corresponding other sub-control devices or the main control device 211 through the target diversion device 214.
[0056] If it is monitored that the downstream traffic of the target sub-control device 213 exceeds the preset second threshold, it can indicate that the current downstream traffic of the target sub-control device 213 has exceeded the range that it can normally handle; at this time, the target sub-control device 213 can send a second alarm message to the main control device 211 and other sub-control devices that generate the downstream traffic, and the second alarm message can be used to notify the main control device 211 and other sub-control devices that the downstream traffic of the target sub-control device 213 at this time has exceeded the range that it can normally handle.
[0057] In order to prevent the business data subsequently sent to the target sub-control device 213 by the main control device 211 and other sub-control devices from being discarded by the target sub-control device 213, the main control device 211 and other sub-control devices can send the second business data to be sent to the target sub-control device 213 to the target diversion device 214 after receiving the second alarm message, so that the second business data can be forwarded to the corresponding target terminal device 220 through the target diversion device 214.
[0058] In actual applications, although the target traffic diversion device 214 can assist the target sub-control device 213 in completing the forwarding of business data, it is simulated by software and does not have the processing speed and security of the physical sub-control device 212, and the simulated sub-control device 212 cannot completely replace the physical sub-control device 212; therefore, in the embodiment of the present invention, the target sub-control device 213 is also used to send a first recovery message to the multiple target terminal devices 221 under the target sub-control device 213 after sending the first alarm message, when it is monitored that the uplink traffic of the target sub-control device 213 does not exceed the first threshold; the multiple target terminal devices 221 receive the first alarm message. After the alarm message, the third business data to be sent to the target diversion device 214 is sent to the target sub-control device 213, so as to forward the third business data through the target sub-control device 213; the target sub-control device 213 is also used to send a second recovery message to the main control device 211 and other sub-control devices 212 except the target sub-control device 213 after sending the second alarm message, when it is monitored that the downlink traffic of the target sub-control device 213 does not exceed the second threshold; the main control device 211 and other sub-control devices 212 send the fourth business data to be sent to the target diversion device 214 to the target sub-control device 213 after receiving the second recovery message, so as to forward the fourth business data through the target sub-control device 213.
[0059] Specifically, after sending the first alarm message to multiple target terminal devices 221, the uplink traffic of the target sub-control device 213 can continue to be monitored; if it is monitored that the uplink traffic of the target sub-control device 213 no longer exceeds the first threshold, a first recovery message can be generated; the first recovery message can be used to notify multiple target terminal devices 221 that the uplink traffic of the target sub-control device 213 at this time no longer exceeds the range that it can normally handle.
[0060] For example, the first restoration message may include an operation code for canceling the alarm that the uplink traffic exceeds the threshold, the device name of the terminal device 220 that receives the first restoration message, and the current uplink traffic size.
[0061] After receiving the first recovery message, the target terminal device 221 can send the third business data to be sent to the target diversion device 214 to the target sub-control device 213 that has returned to normal, so that the third business data can be forwarded through the target sub-control device 213 that has returned to normal, thereby avoiding long-term use of the target diversion device 214 with poor performance and security.
[0062] In addition, after sending the second alarm message to the main control device 211 and other sub-control devices 212 except the target sub-control device 213, the downstream traffic of the target sub-control device 213 can continue to be monitored; if it is monitored that the downstream traffic of the target sub-control device 213 no longer exceeds the second threshold, a second recovery message can be generated; the second recovery message can be used to notify the main control device 211 and other sub-control devices 212 except the target sub-control device 213 that the downstream traffic of the target sub-control device 213 no longer exceeds the range that it can normally handle.
[0063] For example, the second restoration message may include an operation code for canceling the alarm of the downstream traffic exceeding the threshold, the device name of the terminal device 220 receiving the second restoration message, and the current downstream traffic size.
[0064] After receiving the second recovery message, the main control device 211 and other sub-control devices 212 except the target sub-control device 213 can send the fourth service data to be sent to the target diversion device 214 to the target sub-control device 213 that has returned to normal, so that the third service data can be forwarded through the target sub-control device 213 that has returned to normal.
[0065] In one embodiment of the present invention, the main control device 211 is also used to register the target diversion device 214 of the target sub-control device 213 to generate first registration information; based on the first registration information, a target configuration file of the target diversion device 214 is generated; the system also includes a preset server, the preset server is used to import the target configuration file into a preset simulation program, and start the preset simulation program according to the trigger rule to create a target diversion device 214 configured for the target sub-control device 213.
[0066] Among them, the triggering rules can be set according to actual conditions, for example: when it is detected that the uplink / downlink traffic of the target sub-control device 213 exceeds the third threshold (the third threshold may be lower than the first threshold and the second threshold), when it is predicted that the target sub-control device 213 will fail, when it is detected that the uplink traffic of the target sub-control device 213 exceeds the first threshold / when it is detected that the downlink traffic of the target sub-control device 213 exceeds the second threshold, etc., and the embodiments of the present invention do not limit this.
[0067] In actual applications, the main control device 211 can be configured to register the device; specifically, when configuring the target diversion device 214 for the target sub-control device 213, the target diversion device 214 can be first registered in the main control device 211 to generate the first registration information of the target diversion device 214; the first registration information can include the device name, MAC (Media Access Control Address) address, etc. of the target diversion device 214, and the embodiment of the present invention is not limited to this.
[0068] Specifically, a registration command may be first sent to the master device 211 through the network management system connected to the diversion system 210 ; the master device 211 responds to the registration command and may register the target diversion device 214 to generate first registration information of the target diversion device 214 .
[0069] After the main control device 211 registers the target diversion device 214, the first registration information of the target diversion device 214 can be obtained from the main control device 211, and a target configuration file for creating the target diversion device 214 can be generated based on the first registration information; the target configuration file can be used to create a simulated sub-control device 212 in a preset simulation program, and the simulated sub-control device 212 is the target diversion device 214 mentioned above.
[0070] The preset simulation program may be a sub-control simulation program, which may simulate all functions of the physical sub-control device 212 in a software manner.
[0071] After generating the target configuration file, the target configuration file can be imported into the preset simulation program, and a startup command can be entered in the root path of the preset simulation program according to the trigger rule to start the preset simulation program with the target configuration file imported. For example, when it is detected that the uplink traffic of the target sub-control device 213 exceeds the first threshold, it can be indicated that the trigger rule is triggered; at this time, a startup command can be entered in the root path of the preset simulation program to start the preset simulation program with the target configuration file imported.
[0072] The preset simulation program started is based on the target configuration file and can serve as the target diversion device 214; after startup, a device access command can be encapsulated according to the video communication network protocol and sent to the main control device 211. The main control device 211 responds to the access command and completes the network access of the target diversion device 214.
[0073] As an example, the preset simulation program may be copied to the x86 server first, and while creating the target diversion device 214, the MAC address of the x86 server may be modified to the MAC address in the first registration information, which is not limited in this embodiment of the present invention.
[0074] In one embodiment of the present invention, the main control device 211 is also used to obtain the second registration information of the target sub-control device 213; update the second registration information according to the first registration information; generate a first notification message according to the updated second registration information; send the first notification message to the sub-control device 212 that has been connected to the network; the target sub-control device 213 is also used to generate a second notification message based on the first notification message when receiving the first notification message, and send it to multiple target terminal devices 221.
[0075] In actual applications, in order to establish a corresponding relationship between the target diversion device 214 and the target sub-control device 213, a diversion device setting command can be sent to the main control device 211 through the network management system before, after or at the same time as creating the target diversion device 214; the diversion device setting command can include an operation code for setting the diversion device, the device name of the target diversion device 214 and the device name of the target sub-control device 213.
[0076] Then, the main control device 211 may obtain the first registration information of the target diversion device 214 according to the device name of the target diversion device 214 , and obtain the second registration information of the target sub-control device 213 according to the device name of the target sub-control device 213 .
[0077] After obtaining the first registration information and the second registration information, the second registration information can be updated according to the first registration information to append the first registration information of the target offloading device 214 to the second registration information of the target sub-control device 213. For example, the first registration information can be written into the config_info of the second registration information:
[0078] {
[0079] "cloudlet_index":3,
[0080] "device_number":"01001",
[0081] "logport_adder":"02"
[0082] "logdev_id":"0000-0000-0016-6101",
[0083] "mac_adder":"60:f2:ef:16:61:01",
[0084] "parent_denvm":"99003",
[0085] "config_info":{
[0086] "device_number":"01002",
[0087] "logport_adder":"03"
[0088] "logdev_id":"0000-0000-0016-6102",
[0089] "mac_adder":"60:f2:ef:16:61:02",
[0090] }
[0091] }
[0092] Among them, cloudlet_index may refer to the identifier of the switching network where the device is located; device_number may refer to the number of the device (that is, the device name mentioned above); logport_adder may refer to the port address of the device; logdev_id may refer to the logical identifier of the device; mac_adder may refer to the mac address of the device; parent_denvm may refer to the number of the parent device corresponding to the device; config_info may refer to the configuration information of the device.
[0093] In actual applications, after updating the second registration information, the master control device 211 may return the result of setting the diversion device to the network management system based on the update result; the diversion device result may include an operation code for setting the corresponding diversion device, the device name of the target diversion device 214, and the device name of the target sub-control device 213. And the setting result (for example: 0 indicates success, and other indicators indicate failure), which is not limited in the embodiment of the present invention.
[0094] After successfully updating the second registration information according to the first registration information, the main control device 211 can generate a first notification message according to the updated second registration information; the first notification message may include an operation code for notifying the diversion device information, the device name of the sub-control device 212 that receives the first notification message, and the diversion device information.
[0095] As an example, the traffic distribution device information can be used to indicate the corresponding relationship between the traffic distribution device and the corresponding sub-control device 212. For example, the second registration information with the first registration information written under config_info can be used as the traffic distribution device information, which is not limited in the embodiment of the present invention.
[0096] After generating the first notification message, the main control device 211 can send the first notification message to all sub-control devices 212 that have joined the network; on the one hand, when other sub-control devices 212 send business data that needs to be forwarded to the target sub-control device 213, they can send the business data that needs to be forwarded to the target diversion device 214 based on the first notification message.
[0097] On the other hand, after receiving the first notification message, the target sub-control device 213 can generate a second notification message according to the first notification message, and the second notification message can include an operation code for notifying the diversion device information, a device name of the terminal device 220 receiving the second notification message, and a diversion device information set. Then, the second notification message is sent to the target terminal device 221 that has been connected to the network, so that when the target terminal device 221 sends the service data to be forwarded to the target sub-control device 213, it can send the service data to be forwarded to the target diversion device 214 according to the second notification message.
[0098] As an example, after receiving the first notification message, the sub-control device 212 that has joined the network can save the first notification message, so that the MAC address of the target diversion device 214 can be extracted from the first notification message later, and the service data is sent to the target diversion device 214 based on the extracted MAC address of the target diversion device 214. After receiving the second notification message, the target terminal device 221 can also save the second notification message, so that the MAC address of the target diversion device 214 can be extracted from the second notification message later, and the service data is sent to the target diversion device 214 based on the extracted MAC address of the target diversion device 214, which is not limited in this embodiment of the present invention.
[0099] In an embodiment of the present invention, the target traffic distribution device 214 is further configured to modify the media access control MAC address of the target traffic distribution device 214 into the MAC address of the target sub-control device 213 when forwarding service data.
[0100] When the target diversion device 214 forwards business data, the MAC address of the target diversion device 214 can be modified to the MAC address of the target sub-control device 213; so that when the target diversion device 214 forwards the business data that should be forwarded by the target sub-control device 213, it can be sent with the MAC address of the target sub-control device 213.
[0101] In an embodiment of the present invention, the target traffic distribution device 214 is further configured to forward the data to be forwarded by the target sub-control device 213 when a failure occurs in the target sub-control device 213 .
[0102] In actual applications, the target sub-control device 213 may have faults other than the upstream and downstream traffic exceeding the preset threshold, for example: receiving a fault error other than the upstream and downstream traffic exceeding the preset threshold, and the main control device 211 (or other sub-control device 212 or target terminal device 221) not receiving heartbeat feedback.
[0103] In order to avoid abnormal services of the video communication network due to such failure of the target sub-control device 213, when a failure of the target sub-control device 213 is detected, the target diversion device 214 can be used to assist the target sub-control device 213 in forwarding the data to be forwarded by the target sub-control device 213.
[0104] For example: the target diversion device 214 can forward the business data that the main control device 211 originally wanted to send to the target sub-control device 213 for forwarding; or, the target diversion device 214 can forward the business data that other sub-control devices 212 originally wanted to send to the target sub-control device 213 for forwarding; or, the target diversion device 214 can forward the business data that a target terminal device 221 originally wanted to send to the target sub-control device 213 for forwarding, and the embodiments of the present invention do not limit this.
[0105] In an embodiment of the present invention, a simulated sub-control device can be configured as a diversion device for the physical sub-control device in the diversion system by triggering a preset simulation program; thereby, when it is monitored that the uplink / downlink traffic of the target sub-control device configured with the diversion device exceeds the preset threshold, the data is forwarded through the diversion device configured for the target sub-control device; this avoids the target sub-control device discarding service data when the uplink / downlink traffic exceeds the preset threshold, thereby causing abnormalities in normal services entering the network.
[0106] refer to Figure 3 , shows a flowchart of a method for distributing business data according to an embodiment of the present invention, which can be applied to the above-mentioned distribution system and may include the following steps:
[0107] Step 301: configure a target distribution device for a target sub-control device, where the target distribution device is a virtual device.
[0108] In practical applications, simulated sub-control devices may be configured in advance for all physical sub-control devices as diversion devices, or simulated sub-control devices may be configured in advance for some physical sub-control devices as diversion devices.
[0109] Specifically, a simulated sub-control device can be configured as a target traffic diversion device for a target sub-control device by triggering a preset simulation program. Compared with deploying a physical backup sub-control device for the target sub-control device, the program simulation method is less costly and can be put into use as soon as possible in special scenarios.
[0110] The target traffic distribution device can assist the entity's target sub-control device to process the service data exceeding the upper limit when the traffic of the entity's target sub-control device exceeds the preset value. The target sub-control device can be any entity sub-control device in the traffic distribution system that needs to be configured with a simulated sub-control device.
[0111] During the process of processing the business, the target sub-control device can forward the business data sent by the main control device or other sub-control devices to the corresponding terminal device, and can also send the business data sent by the terminal device to the main control device or other corresponding sub-control devices; among which, for the target sub-control device, the business data sent by the main control device or other sub-control devices can correspond to the downlink traffic, and the business data sent by the terminal device can correspond to the uplink traffic.
[0112] In order to prevent the target terminal device from discarding the corresponding service data when the uplink traffic or downlink traffic exceeds the preset value, thereby causing abnormalities in the normal services of the video communication network, the uplink traffic and downlink traffic of the target sub-control device can be monitored separately.
[0113] Step 302: When it is monitored that the uplink traffic of the target sub-control device exceeds the first threshold, a first alarm message is sent to multiple target terminal devices under the target sub-control device; after receiving the first alarm message, the multiple target terminal devices send the first business data to be sent to the target sub-control device to the target diversion device, so as to forward the first business data through the target diversion device.
[0114] If it is monitored that the uplink traffic of the target sub-control device exceeds the preset first threshold, it may mean that the current uplink traffic of the target sub-control device has exceeded the range that it can normally process.
[0115] At this time, the target sub-control device may send a first alarm message to multiple target terminal devices under the target sub-control device that generate uplink traffic.
[0116] In order to avoid the business data subsequently sent by the target terminal device to the target sub-control device being discarded by the target sub-control device, the target terminal device can send the first business data to be sent to the target sub-control device to the target diversion device after receiving the first alarm message, so that the first business data can be forwarded to the corresponding other sub-control devices or main control device through the target diversion device.
[0117] Step 303: When it is monitored that the downlink traffic of the target sub-control device exceeds the second threshold, a second alarm message is sent to the main control device and other sub-control devices except the target sub-control device; after receiving the second alarm message, the main control device and other sub-control devices send the second business data to be sent to the target sub-control device to the target diversion device, so as to forward the second business data through the target diversion device.
[0118] If it is monitored that the downstream traffic of the target sub-control device exceeds the preset second threshold, it may indicate that the current downstream traffic of the target sub-control device has exceeded the range that it can normally handle; at this time, the target sub-control device may send a second alarm message to the main control device and other sub-control devices that generate the downstream traffic.
[0119] In order to prevent the business data subsequently sent to the target sub-control device by the main control device and other sub-control devices from being discarded by the target sub-control device, the main control device and other sub-control devices can send the second business data to be sent to the target sub-control device to the target diversion device after receiving the second alarm message, so that the second business data can be forwarded to the corresponding target terminal device through the target diversion device.
[0120] In an embodiment of the present invention, a simulated sub-control device can be configured as a diversion device for the physical sub-control device in the diversion system by triggering a preset simulation program; thereby, when it is monitored that the uplink / downlink traffic of the target sub-control device configured with the diversion device exceeds the preset threshold, the data is forwarded through the diversion device configured for the target sub-control device; this avoids the target sub-control device discarding service data when the uplink / downlink traffic exceeds the preset threshold, thereby causing abnormalities in normal services entering the network.
[0121] Reference Figure 4 , shows a flowchart of another embodiment of a method for distributing business data of the present invention, which may include the following steps:
[0122] Step 401: register a target traffic distribution device of a target sub-control device to generate first registration information.
[0123] In actual applications, when configuring a target diversion device for a target sub-control device, the target diversion device may be first registered in the main control device to generate first registration information of the target diversion device.
[0124] Specifically, a registration command may be first sent to the master device through the network management system connected to the diversion system; in response to the registration command, the master device may register the target diversion device to generate first registration information of the target diversion device.
[0125] Step 402: Generate a target configuration file for the target diversion device according to the first registration information.
[0126] After the master device registers the target diversion device, first registration information of the target diversion device may be obtained from the master device, and a target configuration file for creating the target diversion device may be generated based on the first registration information.
[0127] Step 403: import the target configuration file into the preset simulation program, and start the preset simulation program according to the triggering rule to create a target diversion device configured for the target sub-control device.
[0128] After the target configuration file is generated, the target configuration file can be imported into the preset simulation program, and a start command can be input in the root path of the preset simulation program according to the trigger rule to start the preset simulation program with the imported target configuration file.
[0129] The preset simulation program that is started is based on the target configuration file and can be used as the target diversion device; after starting, a device access command can be encapsulated according to the video communication network protocol and sent to the main control device. The main control device responds to the access command and can complete the network access of the target diversion device.
[0130] Step 404: Acquire the second registration information of the target sub-control device.
[0131] In actual applications, in order to establish a corresponding relationship between the target diversion device and the target sub-control device, a diversion device setting command may be sent to the main control device through the network management system before, after or simultaneously with creating the target diversion device.
[0132] Then, the main control device may obtain the first registration information of the target diversion device according to the device name of the target diversion device, and obtain the second registration information of the target sub-control device according to the device name of the target sub-control device.
[0133] Step 405: Update the second registration information according to the first registration information.
[0134] After the first registration information and the second registration information are acquired, the second registration information may be updated according to the first registration information, so as to append the first registration information of the target diversion device to the second registration information of the target sub-control device.
[0135] In actual applications, after updating the second registration information, the main control device may return the result of setting the diversion device to the network management system based on the update result.
[0136] Step 406: Generate a first notification message according to the updated second registration information.
[0137] After successfully updating the second registration information according to the first registration information, the main control device may generate a first notification message according to the updated second registration information.
[0138] Step 407: Send the first notification message to the sub-control device that has joined the network. When the target sub-control device receives the first notification message, it generates a second notification message based on the first notification message and sends it to multiple target terminal devices.
[0139] After generating the first notification message, the main control device can send the first notification message to all sub-control devices that have joined the network; on the one hand, when other sub-control devices send business data that needs to be forwarded to the target sub-control device, they can send the business data that needs to be forwarded to the target diversion device based on the first notification message.
[0140] On the other hand, after receiving the first notification message, the target sub-control device can generate a second notification message according to the first notification message, and then send the second notification message to the target terminal device that has been connected to the network, so that when the target terminal device sends the service data to be forwarded to the target sub-control device, it can send the service data to be forwarded to the target diversion device according to the second notification message.
[0141] As an example, after receiving the first notification message, the sub-control device that has been connected to the network can save the first notification message so that the MAC address of the target diversion device can be extracted from the first notification message later, and service data can be sent to the target diversion device based on the extracted MAC address of the target diversion device. After receiving the second notification message, the target terminal device can also save the second notification message so that the MAC address of the target diversion device can be extracted from the second notification message later, and service data can be sent to the target diversion device based on the extracted MAC address of the target diversion device. The embodiment of the present invention does not limit this.
[0142] During the process of processing the business, the target sub-control device can forward the business data sent by the main control device or other sub-control devices to the corresponding terminal device, and can also send the business data sent by the terminal device to the main control device or other corresponding sub-control devices; among which, for the target sub-control device, the business data sent by the main control device or other sub-control devices can correspond to the downlink traffic, and the business data sent by the terminal device can correspond to the uplink traffic.
[0143] In order to prevent the target terminal device from discarding the corresponding service data when the uplink traffic or downlink traffic exceeds the preset value, thereby causing abnormalities in the normal services of the video communication network, the uplink traffic and downlink traffic of the target sub-control device can be monitored separately.
[0144] Step 408: When it is monitored that the uplink traffic of the target sub-control device exceeds the first threshold, a first alarm message is sent to multiple target terminal devices under the target sub-control device; after receiving the first alarm message, the multiple target terminal devices send the first business data to be sent to the target sub-control device to the target diversion device, so as to forward the first business data through the target diversion device.
[0145] If it is monitored that the uplink traffic of the target sub-control device exceeds the preset first threshold, it may mean that the current uplink traffic of the target sub-control device has exceeded the range that it can normally process.
[0146] At this time, the target sub-control device may send a first alarm message to multiple target terminal devices under the target sub-control device that generate uplink traffic.
[0147] In order to avoid the business data subsequently sent by the target terminal device to the target sub-control device being discarded by the target sub-control device, the target terminal device can send the first business data to be sent to the target sub-control device to the target diversion device after receiving the first alarm message, so that the first business data can be forwarded to the corresponding other sub-control devices or main control device through the target diversion device.
[0148] Step 409: When it is monitored that the uplink traffic of the target sub-control device does not exceed the first threshold, a first recovery message is sent to multiple target terminal devices under the target sub-control device; after receiving the first alarm message, the multiple target terminal devices send the third business data to be sent to the target diversion device to the target sub-control device, so as to forward the third business data through the target sub-control device.
[0149] In actual applications, although the target diversion device can assist the target sub-control device in completing the forwarding of business data, it is simulated through software. Compared with the physical sub-control device, it does not have the processing speed and security of the physical sub-control device. The simulated sub-control device cannot completely replace the physical sub-control device; therefore, after sending the first alarm message to multiple target terminal devices, the uplink traffic of the target sub-control device can continue to be monitored; if it is monitored that the uplink traffic of the target sub-control device no longer exceeds the first threshold, a first recovery message can be generated.
[0150] After receiving the first recovery message, the target terminal device can send the third service data to be sent to the target diversion device to the target sub-control device that has returned to normal, so that the third service data can be forwarded through the target sub-control device that has returned to normal, thereby avoiding long-term use of the target diversion device with poor performance and security.
[0151] Step 410: When it is monitored that the downlink traffic of the target sub-control device exceeds the second threshold, a second alarm message is sent to the main control device and other sub-control devices except the target sub-control device; after receiving the second alarm message, the main control device and other sub-control devices send the second business data to be sent to the target sub-control device to the target diversion device, so as to forward the second business data through the target diversion device.
[0152] If the downstream traffic of the target sub-control device is monitored to exceed the preset second threshold, it may indicate that the current downstream traffic of the target sub-control device has exceeded the range that it can normally handle; at this time, the target sub-control device may send a second alarm message to the main control device and other sub-control devices that generate the downstream traffic.
[0153] In order to prevent the business data subsequently sent to the target sub-control device by the main control device and other sub-control devices from being discarded by the target sub-control device, the main control device and other sub-control devices can send the second business data to be sent to the target sub-control device to the target diversion device after receiving the second alarm message, so that the second business data can be forwarded to the corresponding target terminal device through the target diversion device.
[0154] Step 411: When it is monitored that the downlink traffic of the target sub-control device does not exceed the second threshold, a second recovery message is sent to the main control device and other sub-control devices except the target sub-control device; after receiving the second recovery message, the main control device and other sub-control devices send the fourth business data to be sent to the target diversion device to the target sub-control device, so as to forward the fourth business data through the target sub-control device.
[0155] Similarly, after sending the second alarm message to the main control device and other sub-control devices except the target sub-control device, the downlink traffic of the target sub-control device can continue to be monitored; if it is monitored that the downlink traffic of the target sub-control device no longer exceeds the second threshold, a second recovery message can be generated.
[0156] After receiving the second recovery message, the main control device and other sub-control devices except the target sub-control device can send the fourth service data to be sent to the target diversion device to the restored target sub-control device, so as to forward the third service data through the restored target sub-control device.
[0157] In one embodiment of the present invention, the following steps may also be included:
[0158] When a target sub-control device fails, the data to be forwarded that will be forwarded by the target sub-control device is forwarded.
[0159] In actual applications, the target sub-control device may have faults other than the upstream and downstream traffic exceeding the preset threshold.
[0160] In order to avoid abnormal services of the video communication network due to such failures in the target sub-control device, when a failure in the target sub-control device is detected, a target diversion device can be used to assist the target sub-control device in forwarding the data to be forwarded by the target sub-control device.
[0161] In one embodiment of the present invention, in order to make the data receiver believe that the service data is sent by the target sub-control device, the following steps may also be included:
[0162] When the target distribution device forwards service data, the media access control MAC address of the target distribution device is modified to the MAC address of the target distribution device.
[0163] When the target diversion device forwards service data, the MAC address of the target diversion device can be modified to the MAC address of the target sub-control device; so that when the target diversion device forwards the service data that should be forwarded by the target sub-control device, it can send it with the MAC address of the target sub-control device.
[0164] like Figure 5a , showing a schematic diagram of a data interaction process of the present invention:
[0165] 1. Set up a traffic diversion device for a physical sub-control device: register a new sub-control device to the traffic diversion system through the network management system, and specify the newly added sub-control device as a traffic diversion device of a physical sub-control device.
[0166] 2. After receiving the command to set the diversion device, the main control device obtains the sub-control device of the above entity and the registration information of the above diversion device on the main control device, and appends the registration information of the diversion device to the registration information of the sub-control device.
[0167] The master control device can return the result of setting the diversion device to the network management system: operation code (response to setting the diversion device), sub-control device number (i.e. the device name of the sub-control device of the above entity), diversion device number (i.e. the device name of the above diversion device), setting result (0 success, others failure)
[0168] 3. Copy the sub-control simulation program to the x86 server.
[0169] Configure analog sub-control: obtain the registration information of the newly registered sub-control device (i.e. the above-mentioned shunt device) in the main control device, configure it in the configuration file of the analog sub-control, and modify the MAC address of the x86 server to the MAC address corresponding to the mac_addr attribute in the registration information of the shunt device.
[0170] Start the simulated sub-control: Enter the startup command in the root path where the sub-control simulation program is located in the x86 server.
[0171] Simulate sub-control network access: After the sub-control simulation program is started, the device network access command is encapsulated according to the video communication network protocol to access the main control device.
[0172] Both the sub-control device and the shunt device have port 0 and port 1. Port 0 of the shunt device and port 0 of the physical sub-control device are in the same switching network.
[0173] 4. The master control device can detect the registration information of each entity's sub-control device to determine whether each entity's sub-control device is equipped with a diversion device; if an entity's sub-control device is equipped with a diversion device, a notification containing a diversion device information set is sent to the network access device (including the entity's sub-control device and diversion device). After receiving the notification containing the diversion device information set, the entity's sub-control device and diversion device can save the diversion device information set.
[0174] The notification containing the diversion device information set may also include: an operation code (diversion device information notification) and a device number receiving the notification (ie, the device name of the networked device receiving the notification).
[0175] 5. After the terminal device under the sub-control device successfully connects to the sub-control device, the sub-control device queries the locally stored diversion device information set. If the sub-control device itself is equipped with a diversion device, a notification is sent to the terminal device that has successfully connected to the network. The notification message mainly includes: operation code (diversion device information notification), receiving notification terminal device number (that is, the device name of the terminal device that has been connected to the network and receives the notification), and diversion device information.
[0176] After receiving the notification, the terminal device saves the diversion device information.
[0177] 6. Port 0 of the sub-control device is in a switching network with all the terminal devices under the sub-control device, and port 1 of the sub-control device is in a switching network with the main control device and other sub-control devices.
[0178] a. When it is monitored that the uplink traffic at port 0 of the sub-control device exceeds the maximum limit, the sub-control device sends a first alarm message to all terminals. The first alarm message may include: an operation code (uplink traffic alarm), a receiving notification terminal number (i.e., the device name of the terminal device receiving the message), and the current traffic size.
[0179] When it is monitored that the uplink traffic of the sub-control device changes from exceeding the maximum limit to being within the normal range, a first recovery message needs to be sent to all terminal devices. The first recovery message may include: operation code (cancel uplink traffic alarm), receiving notification terminal number (i.e., the device name of the terminal device receiving the message), and current traffic size.
[0180] After receiving the first alarm message / first recovery message, the terminal device performs corresponding service processing according to the operation code.
[0181] b. When it is monitored that the downlink traffic of port 1 of the sub-control device exceeds the maximum limit, the sub-control device sends a second alarm message to the main control device and other sub-control devices in the interactive network. The second alarm message may include: an operation code (downlink traffic alarm), a receiving notification device number (i.e., the device names of the main control device and other sub-control devices that receive the message), and the current traffic size.
[0182] When it is monitored that the downstream traffic of the sub-control device has changed from exceeding the maximum limit to being within the normal range, a second recovery message needs to be sent to the main control device and other sub-control devices in the interactive network. The second recovery message may include: an operation code (cancel the downstream traffic alarm), a receiving notification device number (i.e., the device name of the main control device and other sub-control devices that receive the message), and the current traffic size.
[0183] After receiving the second alarm message / second recovery message, the master control device and other sub-control devices in the interactive network perform corresponding processing according to the operation code therein.
[0184] 7. In the actual business process, when the terminal device under the sub-control device sends business data upward, check whether the first alarm message sent by the sub-control device is received:
[0185] If not received: the business data is sent directly to the corresponding sub-control device;
[0186] If received: the terminal device checks whether there is any information about the shunt device locally. If not, it forwards the information according to the normal process. If there is corresponding shunt device information, it obtains the MAC address of the shunt device. When the terminal device communicates according to the MAC address, the MAC address of the shunt device is filled in with the MAC address of the data receiving destination MAC address.
[0187] 8. After receiving the business data, the diversion device queries the locally stored diversion device information set to obtain the information of the physical sub-control device corresponding to the diversion device.
[0188] At the same time, the business data is parsed according to the video communication network protocol to determine the final recipient of the business data (main control device or other sub-control device); when the diversion device forwards the business data, the source MAC address is modified to the MAC address of the physical sub-control device corresponding to the diversion device.
[0189] 9. In the actual business process, when the main control device or other sub-control device sends business data to a sub-control device, the data sender detects whether it has received the second alarm message of the sub-control device that receives the business data:
[0190] If not received: the business data is sent directly to the corresponding sub-control device;
[0191] If received: based on the locally stored diversion device information set, check whether the sub-control device receiving the business data is configured with a diversion device; if not, the data is forwarded according to the normal process; if so, determine the MAC address of the diversion device; when the data sender communicates based on the MAC address, the MAC address of the data receiving destination MAC address is filled in with the MAC address of the diversion device.
[0192] 10. After receiving the data, the shunt device queries the locally stored shunt device information set to obtain the information of the entity sub-control device corresponding to the shunt device.
[0193] At the same time, the business data is parsed according to the video communication network protocol to obtain the final recipient of the business data (terminal device or other sub-control device); when the diversion device forwards the business data, the source MAC address is modified to the MAC address of the physical sub-control device corresponding to the diversion device.
[0194] When the master control device sends service data to the sub-control device, if it detects that the sub-control device has been disconnected from the network, the master control device can obtain the MAC address of the shunt device corresponding to the sub-control device that has been disconnected from the network based on the locally stored shunt device information set; when the data sender communicates based on the MAC address, the MAC address of the shunt device is filled in with the data receiving destination MAC address.
[0195] When the terminal device under the faulty sub-control device is disconnected from the faulty sub-control device and is disconnected from the network, the terminal device can also view the corresponding diversion device information saved locally. At the same time, it initiates the network access process to the diversion device and continues the subsequent business.
[0196] like Figure 5b , showing a schematic diagram of a diversion system of the present invention:
[0197] The diversion system may include a main control device and multiple physical sub-control devices; in order to prevent the sub-control device from discarding service data when the uplink / downlink traffic exceeds a preset threshold, thereby causing abnormalities in the normal services of the video communication network, a simulated sub-control device can be configured as a diversion device for any one or more physical sub-control devices.
[0198] Port 0 of the shunt device is in the same switching network as port 0 of the corresponding entity's sub-control device; port 0 of a sub-control device is in a switching network with all terminal devices under the sub-control device, and port 1 of any sub-control device is in a switching network with the main control device and other sub-control devices.
[0199] Multiple terminal devices can be connected to one sub-control device; the diversion system can be connected to the network management system.
[0200] In an embodiment of the present invention, a simulated sub-control device can be configured as a diversion device for the physical sub-control device in the diversion system by triggering a preset simulation program; thereby, when it is monitored that the uplink / downlink traffic of the target sub-control device configured with the diversion device exceeds the preset threshold, the data is forwarded through the diversion device configured for the target sub-control device; this avoids the target sub-control device discarding service data when the uplink / downlink traffic exceeds the preset threshold, thereby causing abnormalities in normal services entering the network.
[0201] When configuring a target diversion device for a target sub-control device, the registration information of the target sub-control device can be updated based on the registration information of the target diversion device, and a notification message can be generated based on the updated registration information; by sending the notification message to the sub-control devices and terminal devices that have been connected to the network, when an abnormality occurs in the target sub-control device, other sub-control devices / terminal devices / master control devices can determine the target diversion device corresponding to the target sub-control device based on the stored notification message, and send the business data to be forwarded to the target diversion device.
[0202] In addition, by continuously monitoring the uplink and downlink traffic of the target sub-control device and re-adopting the target sub-control device to forward business data when the uplink and downlink traffic of the target sub-control device is alleviated, the long-term use of simulated sub-control devices with poor performance and security is avoided.
[0203] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0204] Reference Figure 6 , shows a structural block diagram of an embodiment of a business data distribution device of the present invention, the device can be applied to the distribution system as described above, and can include the following modules:
[0205] Configuration module 601, used to configure a target distribution device for a target sub-control device, where the target distribution device is a virtual device;
[0206] The first alarm module 602 is used to send a first alarm message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device exceeds a first threshold; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device, so as to forward the first service data through the target diversion device;
[0207] The second alarm module 602 is used to send a second alarm message to the main control device and other sub-control devices except the target sub-control device when it is monitored that the downlink traffic of the target sub-control device exceeds the second threshold; after receiving the second alarm message, the main control device and other sub-control devices send the second business data to be sent to the target sub-control device to the target diversion device, so as to forward the second business data through the target diversion device.
[0208] In an embodiment of the present invention, a simulated sub-control device can be configured as a diversion device for the physical sub-control device in the diversion system by triggering a preset simulation program; thereby, when it is monitored that the uplink / downlink traffic of the target sub-control device configured with the diversion device exceeds the preset threshold, the data is forwarded through the diversion device configured for the target sub-control device; this avoids the target sub-control device discarding service data when the uplink / downlink traffic exceeds the preset threshold, thereby causing abnormalities in normal services entering the network.
[0209] In order to solve the above problem, an embodiment of the present invention further discloses an electronic device, including:
[0210] one or more processors; and
[0211] One or more machine-readable media having instructions stored thereon, when executed by one or more processors, enable the electronic device to execute the above-mentioned method for diverting business data.
[0212] In order to solve the above problem, an embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program that enables a processor to execute the above business data diversion method.
[0213] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0214] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0215] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0216] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0217] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0219] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0220] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0221] The above is a detailed introduction to a business data diversion system, method, device, electronic device and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A business data distribution system, characterized in that: The system comprises a main control device and at least one sub-control device, wherein the main control device is connected to the at least one sub-control device; the system further comprises a target flow distribution device configured for the target sub-control device, wherein the target flow distribution device is a virtual device; The target sub-control device is configured to send a first alarm message to multiple target terminal devices under the target sub-control device when the uplink traffic exceeds a first threshold; send a second alarm message to the main control device and other sub-control devices except the target sub-control device when the downlink traffic exceeds a second threshold; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device; The master control device is configured to send the second service data to be sent to the target sub-control device to the target diversion device after receiving the second alarm message; The target traffic distribution device is used to forward the first service data and / or the second service data; The other sub-control device is used to send the second service data to be sent to the target sub-control device to the target diversion device after receiving the second alarm message; The target sub-control device is further configured to, after sending the first alarm message, send a first recovery message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device does not exceed the first threshold; after receiving the first alarm message, the multiple target terminal devices send the third service data to be sent to the target diversion device to the target sub-control device, so as to forward the third service data through the target sub-control device; The target sub-control device is also used to send a second recovery message to the main control device and other sub-control devices except the target sub-control device after sending the second alarm message, when it is monitored that the downlink traffic of the target sub-control device does not exceed the second threshold; after receiving the second recovery message, the main control device and the other sub-control devices send the fourth business data to be sent to the target diversion device to the target sub-control device, so as to forward the fourth business data through the target sub-control device.
2. The flow diversion system according to claim 1, characterized in that: The target traffic distribution device is further used to modify the media access control MAC address of the target traffic distribution device into the MAC address of the target sub-control device when forwarding service data.
3. The flow diversion system according to claim 1, characterized in that: The target traffic distribution device is further used to forward the data to be forwarded by the target sub-control device when the target sub-control device fails.
4. The flow diversion system according to claim 1, characterized in that: The master control device is further used to register the target diversion device of the target sub-control device to generate first registration information; and generate a target configuration file of the target diversion device according to the first registration information; The system also includes a preset server, which is used to import the target configuration file into a preset simulation program and start the preset simulation program according to a trigger rule to create a target diversion device configured for the target sub-control device.
5. The flow diversion system according to claim 4, characterized in that: The master control device is further used to obtain the second registration information of the target sub-control device; update the second registration information according to the first registration information; and generate a first notification message according to the updated second registration information; Sending the first notification message to the sub-control device that has accessed the network; The target sub-control device is further configured to generate a second notification message based on the first notification message when receiving the first notification message, and send the second notification message to the multiple target terminal devices.
6. A method for distributing business data, characterized in that: Applied to the shunt system according to any one of claims 1 to 5, the method comprises: Configuring a target traffic distribution device for a target sub-control device, wherein the target traffic distribution device is a virtual device; When it is monitored that the uplink traffic of the target sub-control device exceeds a first threshold, a first alarm message is sent to multiple target terminal devices under the target sub-control device; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device, so as to forward the first service data through the target diversion device; When it is monitored that the downlink traffic of the target sub-control device exceeds a second threshold, a second alarm message is sent to the master control device and other sub-control devices except the target sub-control device; after receiving the second alarm message, the master control device and the other sub-control devices send the second service data to be sent to the target sub-control device to the target diversion device, so as to forward the second service data through the target diversion device; The target sub-control device is further configured to, after sending the first alarm message, send a first recovery message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device does not exceed the first threshold; after receiving the first alarm message, the multiple target terminal devices send the third service data to be sent to the target diversion device to the target sub-control device, so as to forward the third service data through the target sub-control device; The target sub-control device is also used to send a second recovery message to the main control device and other sub-control devices except the target sub-control device after sending the second alarm message, when it is monitored that the downlink traffic of the target sub-control device does not exceed the second threshold; after receiving the second recovery message, the main control device and the other sub-control devices send the fourth business data to be sent to the target diversion device to the target sub-control device, so as to forward the fourth business data through the target sub-control device.
7. A device for distributing business data, characterized in that: Applicable to the shunting system according to any one of claims 1 to 5, the device comprising: A configuration module, used to configure a target distribution device for a target sub-control device, wherein the target distribution device is a virtual device; A first alarm module is used to send a first alarm message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device exceeds a first threshold; after receiving the first alarm message, the multiple target terminal devices send the first service data to be sent to the target sub-control device to the target diversion device, so as to forward the first service data through the target diversion device; A second alarm module is used to send a second alarm message to the main control device and other sub-control devices except the target sub-control device when it is monitored that the downlink traffic of the target sub-control device exceeds a second threshold; after receiving the second alarm message, the main control device and the other sub-control devices send the second service data to be sent to the target sub-control device to the target diversion device, so as to forward the second service data through the target diversion device; The target sub-control device is further configured to, after sending the first alarm message, send a first recovery message to multiple target terminal devices under the target sub-control device when it is monitored that the uplink traffic of the target sub-control device does not exceed the first threshold; after receiving the first alarm message, the multiple target terminal devices send the third service data to be sent to the target diversion device to the target sub-control device, so as to forward the third service data through the target sub-control device; The target sub-control device is also used to send a second recovery message to the main control device and other sub-control devices except the target sub-control device after sending the second alarm message, when it is monitored that the downlink traffic of the target sub-control device does not exceed the second threshold; after receiving the second recovery message, the main control device and the other sub-control devices send the fourth business data to be sent to the target diversion device to the target sub-control device, so as to forward the fourth business data through the target sub-control device.
8. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the business data diversion method as described in claim 6.
9. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the business data diversion method as described in claim 6.
