CN112511340A - Data transmission method and device, electronic equipment and storage medium - Google Patents

Data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112511340A
CN112511340A CN202011255956.8A CN202011255956A CN112511340A CN 112511340 A CN112511340 A CN 112511340A CN 202011255956 A CN202011255956 A CN 202011255956A CN 112511340 A CN112511340 A CN 112511340A
Authority
CN
China
Prior art keywords
transmission
node
path
data
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202011255956.8A
Other languages
Chinese (zh)
Inventor
林伟明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011255956.8A priority Critical patent/CN112511340A/en
Publication of CN112511340A publication Critical patent/CN112511340A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Abstract

The invention relates to data transmission and provides a data transmission method. The method can extract data to be transmitted, determine source equipment and destination equipment, acquire a node path connecting the source equipment and the destination equipment, preset a distributed network comprising a plurality of network transmission planes, determine a transmission path from the node path according to a fault node when detecting that the node path has a fault node, determine transmission distances of the transmission paths when the transmission paths are multiple, determine the transmission path with the minimum transmission distance as a target path, and execute data transmission of the data to be transmitted through the target path. When the transmission fault of the underlying network occurs in the data center interconnected network, the invention not only can realize the data transmission, but also can improve the data transmission efficiency. The invention can also be applied to prescription circulation in hospital management, and improves the transmission efficiency of the prescription when the prescription is circulated from the medical staff to the next medical staff.

Description

Data transmission method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
In the field of cloud computing networks, a large-scale cloud service provider establishes a plurality of data centers, and a data center internet is a basic network for realizing mutual communication among the plurality of data centers. For a cloud computing service provider, in order to ensure that a data center internet has high availability, different data centers are generally built in different data center internet, so that when an underlying network transmission fault (for example, a fault of a network transmission plane or a fault of a network node) occurs in the data center internet, data transmission cannot be achieved.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data transmission method, an apparatus, an electronic device, and a storage medium, which can not only realize data transmission but also improve data transmission efficiency when an underlying network transmission failure occurs in a data center internet.
In one aspect, the present invention provides a data transmission method, where the data transmission method includes:
when a data transmission request is received, extracting data to be transmitted from the data transmission request, and determining source equipment and target equipment from the data transmission request;
acquiring a node path connecting the source end device and the destination device from a preset distributed network, wherein the preset distributed network comprises a plurality of network transmission planes;
when a fault node is detected in the node path, determining a transmission path from the node path according to the fault node;
when the transmission path is multiple, determining the transmission distance of the multiple transmission paths;
determining a transmission path with the minimum transmission distance as a target path;
and executing data transmission of the data to be transmitted through the target path.
According to a preferred embodiment of the present invention, the extracting data to be transmitted from the data transmission request includes:
acquiring a preset thread connection pool, wherein the preset thread connection pool comprises a plurality of preset threads;
acquiring an idle thread from the preset thread connection pool;
analyzing the data transmission request by using the idle thread to obtain data information carried by the data transmission request;
acquiring a preset label, wherein the preset label is a predefined label;
acquiring information corresponding to the preset label from the data information as a data storage position;
and acquiring the data to be transmitted from the data storage position.
According to a preferred embodiment of the present invention, the determining a source device and a destination device from the data transmission request includes:
determining an initiating address of the data transmission request;
acquiring a device corresponding to the initiating address from an address mapping table as the source device;
acquiring a destination address from the data information;
and determining the destination equipment from the address mapping table according to the destination address.
According to a preferred embodiment of the present invention, the obtaining a node path where the source device and the destination device are connected from a preset distributed network, where the preset distributed network includes a plurality of network transmission planes includes:
acquiring a transmission plane with normal network transmission from the plurality of network transmission planes as a target transmission plane;
determining a starting point position of the source device on the target transmission plane, and determining an end point position of the destination device on the target transmission plane;
taking the starting point position as a starting point, and performing wandering on the target transmission plane until the end point position to obtain a traversal node on the target transmission plane and a wandering sequence on the target transmission plane;
and sequencing the traversal nodes according to the walking sequence to obtain the node path.
According to a preferred embodiment of the invention, the method further comprises:
acquiring a node identifier of the traversal node;
detecting whether the node identification exists in a preset fault set or not;
and determining the traversal node corresponding to the node identification in the preset fault set as the fault node.
According to a preferred embodiment of the present invention, said determining a transmission path from the node paths according to the failed node comprises:
determining a fault path containing the fault node from the node paths;
and removing the fault path from the node path, and determining the residual node path as the transmission path.
According to a preferred embodiment of the present invention, the determining the transmission distances of the plurality of transmission paths includes one or more of the following ways:
determining transmission nodes in each transmission path, acquiring position information of each transmission node, determining the transmission distance of each transmission node according to the transmission nodes and the position information, and obtaining the transmission distances of a plurality of transmission paths; and/or
And acquiring the number of nodes in each transmission path, and determining the number of the nodes as the transmission distance of each transmission path to obtain the transmission distances of a plurality of transmission paths.
In another aspect, the present invention further provides a data transmission apparatus, including:
the device comprises a determining unit, a sending unit and a receiving unit, wherein the determining unit is used for extracting data to be transmitted from a data transmission request when the data transmission request is received, and determining source equipment and target equipment from the data transmission request;
an obtaining unit, configured to obtain a node path where the source device is connected to the destination device from a preset distributed network, where the preset distributed network includes multiple network transmission planes;
the determining unit is further configured to determine a transmission path from the node path according to the failed node when the failed node is detected in the node path;
the determining unit is further configured to determine transmission distances of a plurality of transmission paths when there are a plurality of transmission paths;
the determining unit is further configured to determine a transmission path with the minimum transmission distance as a target path;
and the execution unit is used for executing the data transmission of the data to be transmitted through the target path.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the data transfer method.
In another aspect, the present invention also provides a computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in an electronic device to implement the data transmission method.
It can be seen from the above technical solutions that, when a data transmission request is received, the present invention can extract data to be transmitted from the data transmission request, can quickly and accurately obtain the data to be transmitted, determine a source device and a destination device from the data transmission request, accurately determine the source device and the destination device by using the origination address and the destination address, and obtain a node path connecting the source device and the destination device from a preset distributed network, where the preset distributed network includes a plurality of network transmission planes, can obtain a node path of a target transmission plane with normal network transmission, and avoid obtaining a node path of a network transmission plane with abnormal network transmission, thereby avoiding abnormal data transmission caused by abnormal network transmission of the network transmission plane, when a fault node is detected in the node path, a transmission path is determined from the node path according to the fault node, the node path containing the fault node is removed, a transmission path without the fault node can be obtained, the data to be transmitted can be smoothly transmitted on the transmission path, when a plurality of transmission paths are available, the transmission distances of the plurality of transmission paths are determined, the transmission path with the minimum transmission distance is determined as a target path, the data transmission of the data to be transmitted is executed through the target path, the data to be transmitted is transmitted through the transmission path with the minimum transmission distance, and the transmission efficiency of the data to be transmitted can be improved. When the transmission fault of the underlying network occurs in the data center interconnected network, the invention not only can realize the data transmission, but also can improve the data transmission efficiency.
Drawings
FIG. 1 is a flow chart of a data transmission method according to a preferred embodiment of the present invention.
Fig. 2 is a functional block diagram of a data transmission device according to a preferred embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device implementing a data transmission method according to a preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart of a data transmission method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The data transmission method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set or stored in advance, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
The electronic device may include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which the electronic device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
S10, when receiving a data transmission request, extracting data to be transmitted from the data transmission request, and determining a source device and a destination device from the data transmission request.
In at least one embodiment of the present invention, the data information carried in the data transmission request includes, but is not limited to: request number, preset label, data storage position and destination address.
Further, the preset tag is a predefined tag, and the preset tag corresponds to the data storage location. For example, the preset tag may be address.
Furthermore, the data to be transmitted is stored in the data storage position. For example: the data storage location may be a subfolder under a certain folder, or may be a certain track on the disk.
In at least one embodiment of the present invention, the source device refers to a device that issues the data transmission request, and the source device may be a device that stores data in any data center.
Further, the destination device refers to a device that transmits the data to be transmitted from the source device, and the destination device may be a device that stores data in any data center.
In at least one embodiment of the present invention, the electronic device extracting data to be transmitted from the data transmission request includes:
acquiring a preset thread connection pool, wherein the preset thread connection pool comprises a plurality of preset threads;
acquiring an idle thread from the preset thread connection pool;
analyzing the data transmission request by using the idle thread to obtain data information carried by the data transmission request;
acquiring a preset label, wherein the preset label is a predefined label;
acquiring information corresponding to the preset label from the data information as a data storage position;
and acquiring the data to be transmitted from the data storage position.
The idle thread is acquired from the preset thread connection pool, so that the time for creating the idle thread can be saved, the idle thread is used for processing the data transmission request, the idle thread is not required to process other requests with higher priority, the analysis efficiency of the data transmission request is improved, the data storage position can be accurately determined through the mapping relation between the preset label and the data storage position, and the data to be transmitted can be accurately acquired from the data storage position.
In at least one embodiment of the present invention, the electronic device determining, from the data transmission request, a source device and a destination device includes:
determining an initiating address of the data transmission request;
acquiring a device corresponding to the initiating address from an address mapping table as the source device;
acquiring a destination address from the data information;
and determining the destination equipment from the address mapping table according to the destination address.
The origination address may be an IP address of the source device, or may be another address capable of uniquely identifying the source device.
Further, the destination address may be an IP address of the destination device, and the destination address may also be another address capable of uniquely identifying the destination device.
Furthermore, the address mapping table stores the mapping relationship between the address and the device.
The source end device and the destination end device can be accurately determined through the initiating address because the initiating address and the destination address have uniqueness.
S11, obtain a node path between the source device and the destination device from a preset distributed network, where the preset distributed network includes multiple network transmission planes.
In at least one embodiment of the invention, the predetermined distributed network comprises a plurality of network transport planes, each of which may be a wavelength division plane.
In at least one embodiment of the present invention, the node path refers to a path on a transmission plane where the network transmits normally.
In at least one embodiment of the present invention, the obtaining, by the electronic device, a node path where the source device is connected to the destination device from a preset distributed network, where the preset distributed network includes a plurality of network transport planes includes:
acquiring a transmission plane with normal network transmission from the plurality of network transmission planes as a target transmission plane;
determining a starting point position of the source device on the target transmission plane, and determining an end point position of the destination device on the target transmission plane;
taking the starting point position as a starting point, and performing wandering on the target transmission plane until the end point position to obtain a traversal node on the target transmission plane and a wandering sequence on the target transmission plane;
and sequencing the traversal nodes according to the walking sequence to obtain the node path.
For example, the node path may be node A-node C-node D.
By the embodiment, the node path of the target transmission plane with normal network transmission can be acquired, the node path of the network transmission plane with abnormal network transmission is prevented from being acquired, and further data transmission abnormity caused by the abnormal network transmission of the network transmission plane is avoided.
Specifically, the acquiring, by the electronic device, a transport plane with normal network transmission from the plurality of network transport planes as a target transport plane includes:
acquiring signal identifications of the plurality of network transmission planes;
and selecting a network transmission plane with the signal identifier as a configuration identifier as the target transmission plane, wherein the configuration identifier represents that the network transmission is normal.
Through the implementation mode, the target transmission plane can be accurately determined.
S12, when detecting the fault node in the node path, determining the transmission path from the node path according to the fault node.
In at least one embodiment of the present invention, the failed node refers to a node that cannot perform data processing.
In at least one embodiment of the present invention, the network transmission function of the network transmission plane in which the transmission path is located is normal, and simultaneously, nodes included in the transmission path can all perform data processing work.
In at least one embodiment of the invention, the method further comprises:
acquiring a node identifier of the traversal node;
detecting whether the node identification exists in a preset fault set or not;
and determining the traversal node corresponding to the node identification in the preset fault set as the fault node.
And the preset fault set stores node identifications of a plurality of fault nodes.
Through the embodiment, whether the traversal node is the fault node can be determined only by detecting whether the node identification exists in the preset fault set, and the determination efficiency of the fault node is improved.
In at least one embodiment of the present invention, after determining a traversal node corresponding to a node identifier existing in the preset fault set as the fault node, the method further includes:
and determining the node path containing the fault node as a fault path.
In at least one embodiment of the present invention, the electronic device determining a transmission path from the node paths according to the failed node includes:
determining a fault path containing the fault node from the node paths;
and removing the fault path from the node path, and determining the residual node path as the transmission path.
By the above embodiment, the node path including the failed node is removed, so that a transmission path without the failed node can be obtained, and the data to be transmitted can be smoothly transmitted on the transmission path.
S13, when there are a plurality of transmission paths, determining transmission distances of the plurality of transmission paths.
It is emphasized that the transmission distances may also be stored in nodes of a blockchain in order to further ensure privacy and security of the transmission distances.
In at least one embodiment of the present invention, the transmission distance may be a position distance between a node and a node on the transmission path, and the transmission distance may also be the number of nodes on the transmission path.
In at least one embodiment of the invention, the electronic device determining the transmission distances of the plurality of transmission paths comprises one or more of the following modes:
determining transmission nodes in each transmission path, acquiring position information of each transmission node, determining the transmission distance of each transmission node according to the transmission nodes and the position information, and obtaining the transmission distances of a plurality of transmission paths; and/or
By the above embodiment, the transmission distance can be accurately determined because the position distance between the transmission node and the transmission node is obtained.
And acquiring the number of nodes in each transmission path, and determining the number of the nodes as the transmission distance of each transmission path to obtain the transmission distances of a plurality of transmission paths.
Through the embodiment, the transmission distance can be determined only by determining the number of the nodes on the transmission path, so that the determination efficiency of the transmission distance can be improved.
It is understood that, according to the actual situation, any of the two manners may be selected to determine the transmission distance.
In other embodiments, when there are only 1 transmission path, the transmission path is determined as the target path, and the transmission of the data to be transmitted is completed through the target path.
In other embodiments, when the transmission path does not exist, the electronic device generates prompt information and sends the prompt information to a supervisor of the data transmission request.
S14, the transmission path having the minimum transmission distance is determined as the target path.
In at least one embodiment of the present invention, the target path refers to a transmission path having the smallest transmission distance.
In another embodiment, when there are a plurality of transmission paths with the minimum transmission distance, any transmission path is obtained from the plurality of transmission paths with the minimum transmission distance as the target path.
And S15, executing data transmission of the data to be transmitted through the target path.
In at least one embodiment of the present invention, the electronic device transmits the data to be transmitted according to the target path, and since the target path is a transmission path with a minimum transmission distance, the transmission efficiency of the data to be transmitted can be improved.
It can be seen from the above technical solutions that, when a data transmission request is received, the present invention can extract data to be transmitted from the data transmission request, can quickly and accurately obtain the data to be transmitted, determine a source device and a destination device from the data transmission request, accurately determine the source device and the destination device by using the origination address and the destination address, and obtain a node path connecting the source device and the destination device from a preset distributed network, where the preset distributed network includes a plurality of network transmission planes, can obtain a node path of a target transmission plane with normal network transmission, and avoid obtaining a node path of a network transmission plane with abnormal network transmission, thereby avoiding abnormal data transmission caused by abnormal network transmission of the network transmission plane, when a fault node is detected in the node path, a transmission path is determined from the node path according to the fault node, the node path containing the fault node is removed, a transmission path without the fault node can be obtained, the data to be transmitted can be smoothly transmitted on the transmission path, when a plurality of transmission paths are available, the transmission distances of the plurality of transmission paths are determined, the transmission path with the minimum transmission distance is determined as a target path, the data transmission of the data to be transmitted is executed through the target path, the data to be transmitted is transmitted through the transmission path with the minimum transmission distance, and the transmission efficiency of the data to be transmitted can be improved. When the transmission fault of the underlying network occurs in the data center interconnected network, the invention not only can realize the data transmission, but also can improve the data transmission efficiency. In addition, the present invention can be applied to prescription flow in hospital management, and the transmission efficiency of the prescription is improved when the prescription is transferred from a medical staff to the next medical staff.
Fig. 2 is a functional block diagram of a data transmission device according to a preferred embodiment of the present invention. The data transmission apparatus 11 includes a determination unit 110, an acquisition unit 111, an execution unit 112, a detection unit 113, and a generation unit 114. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
When receiving a data transmission request, the determining unit 110 extracts data to be transmitted from the data transmission request, and determines a source device and a destination device from the data transmission request.
In at least one embodiment of the present invention, the data information carried in the data transmission request includes, but is not limited to: request number, preset label, data storage position and destination address.
Further, the preset tag is a predefined tag, and the preset tag corresponds to the data storage location. For example, the preset tag may be address.
Furthermore, the data to be transmitted is stored in the data storage position. For example: the data storage location may be a subfolder under a certain folder, or may be a certain track on the disk.
In at least one embodiment of the present invention, the source device refers to a device that issues the data transmission request, and the source device may be a device that stores data in any data center.
Further, the destination device refers to a device that transmits the data to be transmitted from the source device, and the destination device may be a device that stores data in any data center.
In at least one embodiment of the present invention, the determining unit 110 extracts the data to be transmitted from the data transmission request, including:
acquiring a preset thread connection pool, wherein the preset thread connection pool comprises a plurality of preset threads;
acquiring an idle thread from the preset thread connection pool;
analyzing the data transmission request by using the idle thread to obtain data information carried by the data transmission request;
acquiring a preset label, wherein the preset label is a predefined label;
acquiring information corresponding to the preset label from the data information as a data storage position;
and acquiring the data to be transmitted from the data storage position.
The idle thread is acquired from the preset thread connection pool, so that the time for creating the idle thread can be saved, the idle thread is used for processing the data transmission request, the idle thread is not required to process other requests with higher priority, the analysis efficiency of the data transmission request is improved, the data storage position can be accurately determined through the mapping relation between the preset label and the data storage position, and the data to be transmitted can be accurately acquired from the data storage position.
In at least one embodiment of the present invention, the determining unit 110 determines, from the data transmission request, a source device and a destination device, including:
determining an initiating address of the data transmission request;
acquiring a device corresponding to the initiating address from an address mapping table as the source device;
acquiring a destination address from the data information;
and determining the destination equipment from the address mapping table according to the destination address.
The origination address may be an IP address of the source device, or may be another address capable of uniquely identifying the source device.
Further, the destination address may be an IP address of the destination device, and the destination address may also be another address capable of uniquely identifying the destination device.
Furthermore, the address mapping table stores the mapping relationship between the address and the device.
The source end device and the destination end device can be accurately determined through the initiating address because the initiating address and the destination address have uniqueness.
The obtaining unit 111 obtains a node path where the source device is connected to the destination device from a preset distributed network, where the preset distributed network includes multiple network transmission planes.
In at least one embodiment of the invention, the predetermined distributed network comprises a plurality of network transport planes, each of which may be a wavelength division plane.
In at least one embodiment of the present invention, the node path refers to a path on a transmission plane where the network transmits normally.
In at least one embodiment of the present invention, the obtaining unit 111 obtains a node path where the source device and the destination device are connected from a preset distributed network, where the preset distributed network includes a plurality of network transport planes, and the obtaining unit includes:
acquiring a transmission plane with normal network transmission from the plurality of network transmission planes as a target transmission plane;
determining a starting point position of the source device on the target transmission plane, and determining an end point position of the destination device on the target transmission plane;
taking the starting point position as a starting point, and performing wandering on the target transmission plane until the end point position to obtain a traversal node on the target transmission plane and a wandering sequence on the target transmission plane;
and sequencing the traversal nodes according to the walking sequence to obtain the node path.
For example, the node path may be node A-node C-node D.
By the embodiment, the node path of the target transmission plane with normal network transmission can be acquired, the node path of the network transmission plane with abnormal network transmission is prevented from being acquired, and further data transmission abnormity caused by the abnormal network transmission of the network transmission plane is avoided.
Specifically, the acquiring unit 111 acquires, as a target transport plane, a transport plane with normal network transmission from among the plurality of network transport planes, including:
acquiring signal identifications of the plurality of network transmission planes;
and selecting a network transmission plane with the signal identifier as a configuration identifier as the target transmission plane, wherein the configuration identifier represents that the network transmission is normal.
Through the implementation mode, the target transmission plane can be accurately determined.
When detecting that a failed node occurs in the node path, the determining unit 110 determines a transmission path from the node path according to the failed node.
In at least one embodiment of the present invention, the failed node refers to a node that cannot perform data processing.
In at least one embodiment of the present invention, the network transmission function of the network transmission plane in which the transmission path is located is normal, and simultaneously, nodes included in the transmission path can all perform data processing work.
In at least one embodiment of the present invention, the obtaining unit 111 obtains a node identifier of the traversal node;
the detection unit 113 detects whether the node identifier exists in a preset fault set;
the determining unit 110 determines a traversal node corresponding to the node identifier existing in the preset fault set as the fault node.
And the preset fault set stores node identifications of a plurality of fault nodes.
Through the embodiment, whether the traversal node is the fault node can be determined only by detecting whether the node identification exists in the preset fault set, and the determination efficiency of the fault node is improved.
In at least one embodiment of the present invention, after determining a traversal node corresponding to a node identifier existing in the preset failure set as the failure node, the determining unit 110 determines a node path including the failure node as a failure path.
In at least one embodiment of the present invention, the determining unit 110 determines a transmission path from the node paths according to the failed node includes:
determining a fault path containing the fault node from the node paths;
and removing the fault path from the node path, and determining the residual node path as the transmission path.
By the above embodiment, the node path including the failed node is removed, so that a transmission path without the failed node can be obtained, and the data to be transmitted can be smoothly transmitted on the transmission path.
When there are a plurality of transmission paths, the determination unit 110 determines transmission distances of the plurality of transmission paths.
It is emphasized that the transmission distances may also be stored in nodes of a blockchain in order to further ensure privacy and security of the transmission distances.
In at least one embodiment of the present invention, the transmission distance may be a position distance between a node and a node on the transmission path, and the transmission distance may also be the number of nodes on the transmission path.
In at least one embodiment of the present invention, the determining unit 110 determines the transmission distances of a plurality of transmission paths by one or more of the following methods:
determining transmission nodes in each transmission path, acquiring position information of each transmission node, determining the transmission distance of each transmission node according to the transmission nodes and the position information, and obtaining the transmission distances of a plurality of transmission paths; and/or
By the above embodiment, the transmission distance can be accurately determined because the position distance between the transmission node and the transmission node is obtained.
And acquiring the number of nodes in each transmission path, and determining the number of the nodes as the transmission distance of each transmission path to obtain the transmission distances of a plurality of transmission paths.
Through the embodiment, the transmission distance can be determined only by determining the number of the nodes on the transmission path, so that the determination efficiency of the transmission distance can be improved.
It is understood that, according to the actual situation, any of the two manners may be selected to determine the transmission distance.
In other embodiments, when there are only 1 transmission path, the transmission path is determined as the target path, and the transmission of the data to be transmitted is completed through the target path.
In other embodiments, when the transmission path does not exist, the generation unit 114 generates a prompt message and sends the prompt message to the supervisor of the data transmission request.
The determination unit 110 determines the transmission path having the smallest transmission distance as the target path.
In at least one embodiment of the present invention, the target path refers to a transmission path having the smallest transmission distance.
In another embodiment, when there are a plurality of transmission paths with the minimum transmission distance, any transmission path is obtained from the plurality of transmission paths with the minimum transmission distance as the target path.
The execution unit 112 executes data transmission of the data to be transmitted through the target path.
In at least one embodiment of the present invention, the execution unit 112 transmits the data to be transmitted according to the target path, and since the target path is a transmission path with a minimum transmission distance, the transmission efficiency of the data to be transmitted can be improved.
It can be seen from the above technical solutions that, when a data transmission request is received, the present invention can extract data to be transmitted from the data transmission request, can quickly and accurately obtain the data to be transmitted, determine a source device and a destination device from the data transmission request, accurately determine the source device and the destination device by using the origination address and the destination address, and obtain a node path connecting the source device and the destination device from a preset distributed network, where the preset distributed network includes a plurality of network transmission planes, can obtain a node path of a target transmission plane with normal network transmission, and avoid obtaining a node path of a network transmission plane with abnormal network transmission, thereby avoiding abnormal data transmission caused by abnormal network transmission of the network transmission plane, when a fault node is detected in the node path, a transmission path is determined from the node path according to the fault node, the node path containing the fault node is removed, a transmission path without the fault node can be obtained, the data to be transmitted can be smoothly transmitted on the transmission path, when a plurality of transmission paths are available, the transmission distances of the plurality of transmission paths are determined, the transmission path with the minimum transmission distance is determined as a target path, the data transmission of the data to be transmitted is executed through the target path, the data to be transmitted is transmitted through the transmission path with the minimum transmission distance, and the transmission efficiency of the data to be transmitted can be improved. When the transmission fault of the underlying network occurs in the data center interconnected network, the invention not only can realize the data transmission, but also can improve the data transmission efficiency.
Fig. 3 is a schematic structural diagram of an electronic device implementing a data transmission method according to a preferred embodiment of the invention.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions, such as a data transfer program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
The processor 13 executes an operating system of the electronic device 1 and various installed application programs. The processor 13 executes the application program to implement the steps in the above-described embodiments of the data transmission method, such as the steps shown in fig. 1.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer readable instructions may be partitioned into a determination unit 110, an acquisition unit 111, an execution unit 112, a detection unit 113, and a generation unit 114.
The memory 12 may be used for storing the computer readable instructions and/or modules/units, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules/units stored in the memory 12 and calling data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other memory.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In conjunction with fig. 1, the memory 12 in the electronic device 1 stores computer-readable instructions to implement a data transmission method, and the processor 13 can execute the computer-readable instructions to implement:
when a data transmission request is received, extracting data to be transmitted from the data transmission request, and determining source equipment and target equipment from the data transmission request;
acquiring a node path connecting the source end device and the destination device from a preset distributed network, wherein the preset distributed network comprises a plurality of network transmission planes;
when a fault node is detected in the node path, determining a transmission path from the node path according to the fault node;
when the transmission path is multiple, determining the transmission distance of the multiple transmission paths;
determining a transmission path with the minimum transmission distance as a target path;
and executing data transmission of the data to be transmitted through the target path.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units/modules is only one logical function division, and there may be other division ways in actual implementation.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are further configured to implement the steps of:
when a data transmission request is received, extracting data to be transmitted from the data transmission request, and determining source equipment and target equipment from the data transmission request;
acquiring a node path connecting the source end device and the destination device from a preset distributed network, wherein the preset distributed network comprises a plurality of network transmission planes;
when a fault node is detected in the node path, determining a transmission path from the node path according to the fault node;
when the transmission path is multiple, determining the transmission distance of the multiple transmission paths;
determining a transmission path with the minimum transmission distance as a target path;
and executing data transmission of the data to be transmitted through the target path.
The modules/units described as separate parts may or may not be physically separate, and parts displayed as modules/units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules/units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the present invention may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A data transmission method, characterized in that the data transmission method comprises:
when a data transmission request is received, extracting data to be transmitted from the data transmission request, and determining source equipment and target equipment from the data transmission request;
acquiring a node path connecting the source end device and the destination device from a preset distributed network, wherein the preset distributed network comprises a plurality of network transmission planes;
when a fault node is detected in the node path, determining a transmission path from the node path according to the fault node;
when the transmission path is multiple, determining the transmission distance of the multiple transmission paths;
determining a transmission path with the minimum transmission distance as a target path;
and executing data transmission of the data to be transmitted through the target path.
2. The data transmission method of claim 1, wherein the extracting the data to be transmitted from the data transmission request comprises:
acquiring a preset thread connection pool, wherein the preset thread connection pool comprises a plurality of preset threads;
acquiring an idle thread from the preset thread connection pool;
analyzing the data transmission request by using the idle thread to obtain data information carried by the data transmission request;
acquiring a preset label, wherein the preset label is a predefined label;
acquiring information corresponding to the preset label from the data information as a data storage position;
and acquiring the data to be transmitted from the data storage position.
3. The data transmission method of claim 2, wherein said determining a source device and a destination device from the data transmission request comprises:
determining an initiating address of the data transmission request;
acquiring a device corresponding to the initiating address from an address mapping table as the source device;
acquiring a destination address from the data information;
and determining the destination equipment from the address mapping table according to the destination address.
4. The data transmission method according to claim 1, wherein the obtaining a node path connecting the source device and the destination device from a predetermined distributed network, the predetermined distributed network including a plurality of network transmission planes includes:
acquiring a transmission plane with normal network transmission from the plurality of network transmission planes as a target transmission plane;
determining a starting point position of the source device on the target transmission plane, and determining an end point position of the destination device on the target transmission plane;
taking the starting point position as a starting point, and performing wandering on the target transmission plane until the end point position to obtain a traversal node on the target transmission plane and a wandering sequence on the target transmission plane;
and sequencing the traversal nodes according to the walking sequence to obtain the node path.
5. The data transmission method of claim 4, wherein the method further comprises:
acquiring a node identifier of the traversal node;
detecting whether the node identification exists in a preset fault set or not;
and determining the traversal node corresponding to the node identification in the preset fault set as the fault node.
6. The data transmission method of claim 1, wherein the determining a transmission path from the node paths according to the failed node comprises:
determining a fault path containing the fault node from the node paths;
and removing the fault path from the node path, and determining the residual node path as the transmission path.
7. The data transmission method of claim 1, wherein the determining the transmission distances of the plurality of transmission paths comprises one or more of the following combinations:
determining transmission nodes in each transmission path, acquiring position information of each transmission node, determining the transmission distance of each transmission node according to the transmission nodes and the position information, and obtaining the transmission distances of a plurality of transmission paths; and/or
And acquiring the number of nodes in each transmission path, and determining the number of the nodes as the transmission distance of each transmission path to obtain the transmission distances of a plurality of transmission paths.
8. A data transmission apparatus, characterized in that the data transmission apparatus comprises:
the device comprises a determining unit, a sending unit and a receiving unit, wherein the determining unit is used for extracting data to be transmitted from a data transmission request when the data transmission request is received, and determining source equipment and target equipment from the data transmission request;
an obtaining unit, configured to obtain a node path where the source device is connected to the destination device from a preset distributed network, where the preset distributed network includes multiple network transmission planes;
the determining unit is further configured to determine a transmission path from the node path according to the failed node when the failed node is detected in the node path;
the determining unit is further configured to determine transmission distances of a plurality of transmission paths when there are a plurality of transmission paths;
the determining unit is further configured to determine a transmission path with the minimum transmission distance as a target path;
and the execution unit is used for executing the data transmission of the data to be transmitted through the target path.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the data transmission method of any one of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores therein computer-readable instructions which are executed by a processor in an electronic device to implement the data transmission method according to any one of claims 1 to 7.
CN202011255956.8A 2020-11-11 2020-11-11 Data transmission method and device, electronic equipment and storage medium Withdrawn CN112511340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011255956.8A CN112511340A (en) 2020-11-11 2020-11-11 Data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011255956.8A CN112511340A (en) 2020-11-11 2020-11-11 Data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112511340A true CN112511340A (en) 2021-03-16

Family

ID=74956319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011255956.8A Withdrawn CN112511340A (en) 2020-11-11 2020-11-11 Data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112511340A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124790A (en) * 2021-11-29 2022-03-01 卡莱特云科技股份有限公司 Data transmission method and device based on directed acyclic graph and electronic equipment
CN114244689A (en) * 2021-12-13 2022-03-25 中国电信股份有限公司 SDN network maintenance method and device, electronic equipment and readable medium
CN114363158A (en) * 2021-12-23 2022-04-15 广东电网有限责任公司 Network protection method, device, mobile terminal and storage medium
CN115297062A (en) * 2022-09-29 2022-11-04 深圳华锐分布式技术股份有限公司 Application layer network data transmission method, device, equipment and medium
WO2024066637A1 (en) * 2022-09-30 2024-04-04 中兴通讯股份有限公司 Data transmission method and device, and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124790A (en) * 2021-11-29 2022-03-01 卡莱特云科技股份有限公司 Data transmission method and device based on directed acyclic graph and electronic equipment
CN114244689A (en) * 2021-12-13 2022-03-25 中国电信股份有限公司 SDN network maintenance method and device, electronic equipment and readable medium
CN114363158A (en) * 2021-12-23 2022-04-15 广东电网有限责任公司 Network protection method, device, mobile terminal and storage medium
CN114363158B (en) * 2021-12-23 2023-10-27 广东电网有限责任公司 Network protection method and device, mobile terminal and storage medium
CN115297062A (en) * 2022-09-29 2022-11-04 深圳华锐分布式技术股份有限公司 Application layer network data transmission method, device, equipment and medium
WO2024066637A1 (en) * 2022-09-30 2024-04-04 中兴通讯股份有限公司 Data transmission method and device, and storage medium

Similar Documents

Publication Publication Date Title
CN112511340A (en) Data transmission method and device, electronic equipment and storage medium
CN111901327B (en) Cloud network vulnerability mining method and device, electronic equipment and medium
CN111816301A (en) Medical inquiry assisting method, device, electronic equipment and medium
CN111694840A (en) Data synchronization method, device, server and storage medium
CN112287329A (en) Service instance checking method and device, electronic equipment and storage medium
CN112667240A (en) Program code conversion method and related device
CN112133396B (en) Medical data sharing method and device, electronic equipment and medium
CN113050900B (en) Screen sharing method, device, equipment and storage medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN112541009B (en) Data query method, device, electronic equipment and storage medium
CN112559535A (en) Multithreading-based asynchronous task processing method, device, equipment and medium
CN111984601A (en) Log file deleting method and device, electronic equipment and storage medium
CN111796936A (en) Request processing method and device, electronic equipment and medium
CN112199483B (en) Information input assisting method and device, electronic equipment and storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN112711696A (en) Request access method, device, electronic equipment and storage medium
CN112434062A (en) Quasi-real-time data processing method, device, server and storage medium
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN111881209A (en) Data synchronization method and device for heterogeneous database, electronic equipment and medium
CN112738175B (en) Request processing method and related equipment
CN114360732B (en) Medical data analysis method, device, electronic equipment and storage medium
CN112181485B (en) Script execution method and device, electronic equipment and storage medium
CN114610386A (en) Interaction method, device, equipment and storage medium of H5 and application program
CN115205032A (en) Credit investigation query method, apparatus, device and storage medium
CN112395319A (en) Cache sharing method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210316

WW01 Invention patent application withdrawn after publication