CN113645303B - Data transmission method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN113645303B
CN113645303B CN202110919398.9A CN202110919398A CN113645303B CN 113645303 B CN113645303 B CN 113645303B CN 202110919398 A CN202110919398 A CN 202110919398A CN 113645303 B CN113645303 B CN 113645303B
Authority
CN
China
Prior art keywords
language
data
server
interface
client
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.)
Active
Application number
CN202110919398.9A
Other languages
Chinese (zh)
Other versions
CN113645303A (en
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN202110919398.9A priority Critical patent/CN113645303B/en
Publication of CN113645303A publication Critical patent/CN113645303A/en
Application granted granted Critical
Publication of CN113645303B publication Critical patent/CN113645303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a data transmission method, a data transmission device, computer equipment and a storage medium. The method comprises the following steps: acquiring first data input by a user; acquiring a development language of a client; if the development language of the client is the first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language. According to the invention, the first data of the client side is sent to the first language interface of the preset server adapted to the first language, the first data is sent to the server side through the second language interface of the preset server, the conversion of the interfaces is realized through the preset server with the first language interface and the second language interface, the first data of the client side developed in the first language can be successfully sent to the server side developed in the second language, so that the server side can identify and use the first data, and the applicability of the advanced computing cluster is improved.

Description

Data transmission method, device, computer equipment and storage medium
Technical Field
The present invention relates to a cluster data transmission technology, and in particular, to a data transmission method, apparatus, computer device, and storage medium.
Background
Advanced computing is a computing that involves a variety of information technologies including supercomputing, big data, artificial intelligence, and cloud computing. Advanced computing may be performed using a computing cluster. The user may send the computing task data to a computing cluster that performs advanced computing so that the computing cluster performs advanced computing based on the computing task data.
The communication interface of the advanced computing cluster, which is open to the outside, is consistent with the development language of the advanced computing cluster, if a platform inconsistent with the development language is used for sending data to the communication interface, the data cannot be identified by the communication interface, so that the advanced computing cluster can only adapt to task data of the same development language, and the applicability is poor.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, computer equipment and a storage medium, so as to improve the applicability of a computing cluster for advanced computing.
In a first aspect, an embodiment of the present invention provides a data transmission method, including:
acquiring first data input by a user;
Acquiring a development language of a client;
if the development language of the client is the first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language.
On the basis of the above embodiment, after acquiring the development language of the client, the method further includes:
And if the development language of the client is the second language, sending the first data to the server.
According to the embodiment, when the development language of the client is the second language, the first data can be sent to the server, and the first data can be sent at an improved speed because the first data does not need to be forwarded through the preset server.
Based on the above embodiment, the first language is a c language or a java language;
the second language is python;
the preset server is a linux server.
The implementation mode can realize the interface conversion between the C language or the java language and the python language through the linux server when the client side uses the C language or the java language for development and the server side uses the python for development. The linux server can quickly and stably send the first data to the server through the c-language interface or the java-language interface and can improve the data transmission efficiency between the client developed by adopting the c-language or the java-language and the server developed by adopting the python-language interface.
On the basis of the above embodiment, after the first data is sent to the first language interface of the preset server, the method further includes:
Receiving second data sent by a preset server through a first language interface, wherein the second data is a result obtained by processing the first data by a server, and the preset server is used for receiving the second data sent by the server through the second language interface;
outputting the second data.
In the embodiment, after the server side calculates the second data according to the first data, the server side can send the second data to the preset server through the second language interface, and the preset server sends the second data to the client side through the first language interface, so that data transmission from the server side to the client side is realized through the preset server, and data transmission efficiency of sending data from the server side developed by different languages to the client side is improved.
On the basis of the above embodiment, the first data is a neural network architecture description file, and the server is used for searching and calculating the neural network architecture according to the first data;
the second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
In the above embodiment, the first data may be a neural network architecture description file, and the performance data of the neural network matched with the neural network architecture description file may be obtained by searching and calculating the neural network architecture provided by the server. If the neural network architecture description file transmitted by the user is wrong or has errors in the neural network exploration process, the server generates error reporting information. The error reporting information or performance data generated by the server can be forwarded through the preset server, and the calculation of the neural network architecture exploration by the server can improve the calculation efficiency.
On the basis of the above embodiment, the first language interface for sending the first data to the preset server includes:
establishing a secure shell protocol connection with a preset server;
the method comprises the steps of sending first data to a first language interface of a preset server through secure shell protocol connection;
Correspondingly, the preset server is configured to receive, through a second language interface, second data sent by the server, and includes:
establishing a secure shell protocol connection between a preset server and a server;
the preset server is used for receiving second data sent by the server through the secure shell protocol connection and the second language interface.
In the above embodiment, the first data and the second data are transmitted using the secure shell protocol. The safe and reliable communication connection between the server and the preset server is established through the secure shell protocol, so that the reliability of data transmission can be improved.
On the basis of the above embodiment, before receiving the target file sent by the client, the method further includes:
A first language interface is configured in a preset server and is used for carrying out data transmission based on a first language;
And configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on the second language.
In the embodiment, the preset server is established and the first language interface and the second language interface are configured in the preset server, so that the preset server with the first language interface and the second language interface can be built before the first data transmission, the preset server can receive the first data of the first language and forward the first data to the server through the second language interface, the data transmission between different development languages between the client and the server is realized, and the reliability of the data transmission between the different development languages is improved.
In a second aspect, an embodiment of the present invention further provides a data transmission apparatus, including:
The first data acquisition module is used for acquiring first data input by a user;
The development language acquisition module is used for acquiring the development language of the client;
The first data sending module is used for sending the first data to a first language interface of the preset server if the development language of the client is a first language, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is a second language.
In a third aspect, an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement a data transmission method as shown in the embodiment of the present application.
In a fourth aspect, embodiments of the present application also provide a storage medium containing computer-executable instructions which, when executed by a computer processor, are used to perform a data transmission method as shown in the embodiments of the present application.
The data transmission method provided by the embodiment of the invention obtains the first data input by the user and the development language of the client; if the development language of the client is the first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language. Compared with the prior advanced calculation, the method can not identify the data sent by different development language platforms, and has poor applicability. According to the data transmission method provided by the embodiment of the invention, when the development language of the client is the first language and the development language of the server is the second language, the first data of the client is sent to the first language interface of the preset server adapted to the first language, the first data is sent to the server through the second language interface of the preset server, the conversion of the interfaces is realized through the preset server with the first language interface and the second language interface, the first data of the client developed in the first language can be successfully sent to the server developed in the second language, so that the server can identify and use the first data, and the applicability of the advanced computing cluster is improved.
Drawings
Fig. 1 is a flowchart of a data transmission method in a first embodiment of the present invention;
Fig. 2 is a flowchart of a data transmission method in a second embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a data transmission device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data transmission method provided in an embodiment of the present invention, where the embodiment of the present invention is applicable to a case where a client performs data processing through a computing cluster, and particularly, when a development language of the client is different from a development language of a server (computing cluster), the client performs data processing through the computing cluster, where the method may be executed by a terminal running the client or a server transmitting data received by the client, and specifically includes the following steps:
step 110, acquiring first data input by a user.
In the embodiment of the invention, the client can be the opposite end of the server, and the client communicates with the server so that the server provides a certain computing service for the client. The client may be running on a first device and the server on a second device. The first device may be a server, a personal computer, a mobile terminal or the like. The second device may be a server. The development language adopted by the client is a first language, and the development language adopted by the server is a second language. The first language may be the same as the second language or different from the first language. The user inputs first data through the client, and the first data is used as raw data of the computing service of the client.
Alternatively, the second device may be a computing cluster performing advanced computing, and the server is configured to provide advanced computing services for the client.
In one implementation, the embodiment of the invention is applied to a first device running with a client. At this time, the first device acquires first data input by the user through the client.
In another implementation manner, the embodiment of the invention is applied to a data transfer device in a network, wherein the transfer device is used for completing data forwarding from a first device to a second device. The switching device receives first data input by a user through a client of the first device. The client is an event platform, the platform is developed by adopting java language, and the first device only provides a java interface to the outside. The event participants need to complete the event questions given by the event through the computing clusters calculated by the precedent machine, however, the advanced computing clusters are developed by adopting the python language, so that the event participants cannot directly acquire the event questions from the holding platform. The event title may be represented as first data. By applying the technical scheme of the invention to the data transfer equipment, the advanced computing cluster of the event participants can acquire the first data of the event questions provided by the event platform.
Step 120, obtaining the development language of the client.
The development language of the client may be determined from a dynamic library used by the client. Or after the client is anti-assembled, the development language of the client is identified according to the keywords of the development language. If the client is in the form of a webpage, the development language used by the webpage can be identified according to the suffix of the webpage file.
Step 130, if the development language of the client is the first language, the first data is sent to a first language interface of the preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language.
The development language of the server is obtained in advance, and the development language of the server is set as a second language. If the development language of the client is the first language, the development language of the client is different from the development language of the server.
The preset server may be a certain entity server or a server implemented by a virtual machine. The operation system of the preset server can realize data transmission between the first language receiving and the second language interface. The preset server is configured with a first language interface and a second language interface.
The first language interface is an interface adapted to the first language and is used for transmitting and receiving data based on the first language. For example, the first language interface may be used to receive first data sent by the client to a preset server. The preset server can also send second data obtained by the server to the client through the first language interface.
The second language interface is an interface adapted to the second language and is used for transmitting and receiving data based on the second language. For example, the second language interface may be used to receive second data sent by the server. The preset server can also send the first data to the server through the second language interface.
On the basis of the above embodiment, after the development language of the client is obtained in step 120, the method further includes: and if the development language of the client is the second language, sending the first data to the server.
If the development language of the client is the second language, the development language of the client is consistent with that of the server, and further the first data input by the user through the client can be directly sent to the server without conversion of a development language interface.
According to the embodiment, when the development language of the client is the second language, the first data can be sent to the server, and the first data can be sent at an improved speed because the first data does not need to be forwarded through the preset server.
In one implementation, the first language is a c-language or a java-language; the second language is python; the preset server is a linux server.
In general, the development languages of the client and the server may be determined in the development process, but there are a plurality of development languages selected by the client. The recognition mode of the first language type can be quickly recognized according to the determination of the first language. For example, the keyword can be determined according to the c language, and whether the first language is the c language can be rapidly identified through the keyword, so that the identification efficiency of the c language is improved. For example, whether the first language is the java language is rapidly determined according to the file suffix of the java language, so that the recognition efficiency of the java language is improved.
The development language of the server is relatively fixed, so that the development language of the server, such as the python language, can be obtained by accessing the server.
The preset server is configured as a linux server, and a first language (c language or java language) interface and a python interface can be realized in the linux server. The method comprises the steps of obtaining first data through a first language interface through a linux environment built in a linux server, and transmitting the data through a second language interface.
In the embodiment, when the client side uses C language or java language for development and the server side uses python for development, interface conversion between the C language or java language and python language can be realized through the linux server. The linux server can quickly and stably send the first data to the server through the c-language interface or the java-language interface and can improve the data transmission efficiency between the client developed by adopting the c-language or the java-language and the server developed by adopting the python-language interface.
In one implementation, the first data is a neural network architecture description file, and the server is configured to perform a neural network architecture search (Neural Architecture Search, NAS) calculation according to the first data; the second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
In one use scenario, a server is used to provide neural network architecture search computations for a client that receives a neural network architecture description file entered by a user. After the server receives the neural network architecture description file, searching and calculating the neural network architecture according to the neural network architecture description file.
Neural network architecture search is an important component of automated machine learning. The neural network architecture search is used for automatically carrying out automatic model construction and performance evaluation on an input deep learning task within a certain range according to the limiting condition of human input, and obtaining a neural network architecture aiming at the deep learning task as the output of the whole algorithm, thereby achieving the purposes of reducing manual intervention, realizing machine automation and obtaining a high-performance model.
In the above embodiment, the first data may be a neural network architecture description file, and the performance data of the neural network matched with the neural network architecture description file may be obtained by searching and calculating the neural network architecture provided by the server. If the neural network architecture description file transmitted by the user is wrong or has errors in the neural network exploration process, the server generates error reporting information. The error reporting information or performance data generated by the server can be forwarded through the preset server, and the calculation of the neural network architecture exploration by the server can improve the calculation efficiency.
Further, after the first data is sent to the first language interface of the preset server, the method further includes:
Receiving second data sent by a preset server through a first language interface, wherein the second data is a result obtained by processing the first data by a server, and the preset server is used for receiving the second data sent by the server through the second language interface; outputting the second data.
In the above scenario, the determination condition of the human input is described by the neural network architecture description file. The server is used for executing the neural network architecture search calculation. In the calculation process, if an error occurs, the second data includes error reporting information. Optionally, the error reporting information includes: 1) The calculated amount of the neural network architecture exceeds 600M of the problem racing requirement. At this time, the server automatically stops. 2) The architecture describes file format issues. 3) The problem of acceleration of the bottom layer of cluster computing nodes. 4) Cluster network problems, connection timeouts. 5) Common python procedure problems, such as cannot find module, ascII UTF-8 or low python packet versions, etc.
If the calculation process is completed, a neural network architecture is obtained, and the performance information of the neural network architecture can be used as second data. The performance data includes accuracy and training speed of the neural network.
Optionally, after the server generates the second data, the server may send the second data to the preset server through the second language interface. After receiving the second data through the second language interface, the preset server sends the second data to the client through the first language interface.
Optionally, after the second data is generated, the server locally stores the second data. The client can control the preset server to read the second data generated by the server according to the preset time interval.
Optionally, after the second data is generated, if the second data includes error reporting information, the error reporting information is sent to the first device where the client is located by means of a short message, a mail, and the like.
In the embodiment, after the server side calculates the second data according to the first data, the server side can send the second data to the preset server through the second language interface, and the preset server sends the second data to the client side through the first language interface, so that data transmission from the server side to the client side is realized through the preset server, and data transmission efficiency of sending data from the server side developed by different languages to the client side is improved.
In one implementation, the first language interface for sending the first data to the preset server may be implemented as:
Establishing a Secure Shell protocol (SSH) connection with a preset server; and sending the first data to a first language interface of a preset server through a secure shell protocol connection.
Correspondingly, the preset server is configured to receive, through the second language interface, the second data sent by the server, and may be implemented as:
Establishing a secure shell protocol connection between a preset server and a server; the preset server is used for receiving second data sent by the server through the secure shell protocol connection and the second language interface.
The development language of both ends of the secure shell protocol connection needs to be consistent, otherwise, data read-write barriers will occur. And establishing a secure shell protocol connection between the client and a first language interface of a preset server, and establishing a secure shell protocol connection between a second language interface of the preset server and a server, thereby realizing secure and reliable communication between the client and the server.
In the above embodiment, the first data and the second data are transmitted using the secure shell protocol. The safe and reliable communication connection between the server and the preset server is established through the secure shell protocol, so that the reliability of data transmission can be improved.
Further, before step 110, before receiving the target file sent by the client, the method further includes:
A first language interface is configured in a preset server and is used for carrying out data transmission based on a first language; and configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on the second language.
And configuring a first language interface and a second language interface in a preset server. Setting up an environment supporting multiple language interfaces in a preset server, so that the preset server can realize data transmission among different language interfaces through the set-up environment.
In the embodiment, the preset server is established and the first language interface and the second language interface are configured in the preset server, so that the preset server with the first language interface and the second language interface can be built before the first data transmission, the preset server can receive the first data of the first language and forward the first data to the server through the second language interface, the data transmission between different development languages between the client and the server is realized, and the reliability of the data transmission between the different development languages is improved.
The data transmission method provided by the embodiment of the invention obtains the first data input by the user and the development language of the client; if the development language of the client is the first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language. Compared with the prior advanced calculation, the method can not identify the data sent by different development language platforms, and has poor applicability. According to the data transmission method provided by the embodiment of the invention, when the development language of the client is the first language and the development language of the server is the second language, the first data of the client is sent to the first language interface of the preset server adapted to the first language, the first data is sent to the server through the second language interface of the preset server, the conversion of the interfaces is realized through the preset server with the first language interface and the second language interface, the first data of the client developed in the first language can be successfully sent to the server developed in the second language, so that the server can identify and use the first data, and the applicability of the advanced computing cluster is improved.
Example two
Fig. 2 is a flowchart of a data transmission method according to a second embodiment of the present invention, and as a specific implementation manner of the foregoing embodiment, it is assumed that the first language is java, the second language is python, and the preset server is a linux server, where the method includes:
Step 210, configuring a java language interface in a preset server. The python language interface is configured in a preset server.
The java language interface is used for carrying out data transmission based on java language. The python language interface is used for data transmission based on the python language.
Step 220, obtaining a neural network architecture description file input by a user.
Step 230, obtaining the development language of the client.
Step 240, if the development language of the client is the first language, the neural network architecture description file is sent to a java language interface of the preset server, so that the preset server sends the neural network architecture description file to the server through the python language interface, and the development language of the server is the second language.
The sending of the neural network architecture description file to the java language interface of the preset server may be implemented as follows: establishing a secure shell protocol connection with a preset server; and transmitting the neural network architecture description file to a java language interface of a preset server through secure shell protocol connection.
The server side is used for carrying out neural network architecture searching calculation on the neural network architecture description file.
The preset server receives the neural network architecture description file sent by the client through a secure shell protocol between the client and a java language interface of the preset server. The preset server is connected with a secure shell protocol of the server through a python language interface, and sends the neural network architecture description file to the server.
Step 250, receiving second data sent by a preset server through a java language interface, where the second data is a result obtained by processing a neural network architecture description file by a server, and the preset server is configured to receive the second data sent by the server through a python language interface and output the second data.
The preset server is configured to receive, through the python language interface, the second data sent by the server, and may be implemented as: establishing a secure shell protocol connection between a preset server and a server; the preset server is used for receiving second data sent by the server through the secure shell protocol connection and the python language interface.
The preset server is connected with a secure shell protocol of the server through a python language interface, and receives second data sent by the server. The preset server sends the second data to the client through a secure shell protocol between the client and a java language interface of the preset server.
The second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
Step 260, if the development language of the client is the second language, the neural network architecture description file is sent to the server.
Step 270, receiving second data fed back by the server, and sending the second data to the client.
Example III
Fig. 3 is a schematic structural diagram of a data transmission device according to a third embodiment of the present invention, where the embodiment of the present invention is applicable to a case where a client performs data processing through a computing cluster, and particularly, when a development language of the client is different from a development language of a server (computing cluster), the client performs data processing through the computing cluster. The device can be executed by a terminal running with a client or a server transmitting data received and transmitted by the client, and specifically comprises: a first data acquisition module 310, a development language acquisition module 320, and a first data transmission module 330.
A first data acquisition module 310, configured to acquire first data input by a user;
a development language acquisition module 320, configured to acquire a development language of a client;
The first data sending module 330 is configured to send the first data to a first language interface of a preset server if the development language of the client is a first language, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is a second language.
On the basis of the above embodiment, the first data sending module 330 is further configured to:
And if the development language of the client is the second language, sending the first data to the server.
The first data sending module 330 can send the first data to the server when the development language of the client is the second language, and the forwarding through the preset server is not required, so that the sending speed of the first data can be improved.
Based on the above embodiment, the first language is a c language or a java language;
the second language is python;
the preset server is a linux server.
In the embodiment, when the client side uses C language or java language for development and the server side uses python for development, interface conversion between the C language or java language and python language can be realized through the linux server. The linux server can quickly and stably send the first data to the server through the c-language interface or the java-language interface and can improve the data transmission efficiency between the client developed by adopting the c-language or the java-language and the server developed by adopting the python-language interface.
On the basis of the above embodiment, the system further comprises a second data receiving module. The second data receiving module is used for:
Receiving second data sent by a preset server through a first language interface, wherein the second data is a result obtained by processing the first data by a server, and the preset server is used for receiving the second data sent by the server through the second language interface; outputting the second data.
In the above embodiment, after the server side calculates the second data according to the first data, the server side may send the second data to the preset server through the second language interface, and the preset server may send the second data to the client through the first language interface. The second data receiving module receives second data sent by the preset server through the first language interface, so that data transmission from the server to the client through the preset server is realized, and the data transmission efficiency of sending data to the client by the server developed by different languages is improved.
On the basis of the above embodiment, the first data is a neural network architecture description file, and the server is used for searching and calculating the neural network architecture according to the first data;
the second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
In the above embodiment, the first data may be a neural network architecture description file, and the performance data of the neural network matched with the neural network architecture description file may be obtained by searching and calculating the neural network architecture provided by the server. If the neural network architecture description file transmitted by the user is wrong or has errors in the neural network exploration process, the server generates error reporting information. The error reporting information or performance data generated by the server can be forwarded through the preset server, and the calculation of the neural network architecture exploration by the server can improve the calculation efficiency.
On the basis of the above embodiment, the first data sending module 330 is configured to:
establishing a secure shell protocol connection with a preset server;
the method comprises the steps of sending first data to a first language interface of a preset server through secure shell protocol connection;
Correspondingly, the second data receiving module is used for:
establishing a secure shell protocol connection between a preset server and a server;
the preset server is used for receiving second data sent by the server through the secure shell protocol connection and the second language interface.
In the above embodiment, the first data transmitting module 330 transmits the first data using the secure shell protocol, and the second data receiving module receives the second data using the secure shell protocol. The safe and reliable communication connection between the server and the preset server is established through the secure shell protocol, so that the reliability of data transmission can be improved.
On the basis of the embodiment, the method further comprises a preset server configuration module. The preset server configuration module is used for:
A first language interface is configured in a preset server and is used for carrying out data transmission based on a first language;
And configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on the second language.
In the above embodiment, the preset server configuration module establishes the preset server and configures the first language interface and the second language interface in the preset server, so that before the first data transmission, a preset server having the first language interface and the second language interface is established, so that the preset server can receive the first data in the first language and forward the first data to the server through the second language interface, thereby realizing the transmission of data between different development languages between the client and the server, and improving the reliability of data transmission between different development languages.
In the data transmission device provided by the embodiment of the invention, the first data acquisition module 310 acquires the first data input by the user, and the development language acquisition module 320 acquires the development language of the client; the first data sending module 330 is configured to send the first data to a first language interface of a preset server if the development language of the client is a first language, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is a second language. Compared with the prior advanced calculation, the method can not identify the data sent by different development language platforms, and has poor applicability. According to the data transmission method provided by the embodiment of the invention, when the development language of the client is the first language and the development language of the server is the second language, the first data of the client is sent to the first language interface of the preset server adapted to the first language, the first data is sent to the server through the second language interface of the preset server, the conversion of the interfaces is realized through the preset server with the first language interface and the second language interface, the first data of the client developed in the first language can be successfully sent to the server developed in the second language, so that the server can identify and use the first data, and the applicability of the advanced computing cluster is improved.
The data transmission device provided by the embodiment of the invention can execute the data transmission method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention, and as shown in fig. 4, the computer device includes a processor 40, a memory 41, an input device 42 and an output device 43; the number of processors 40 in the computer device may be one or more, one processor 40 being taken as an example in fig. 4; the processor 40, the memory 41, the input means 42 and the output means 43 in the computer device may be connected by a bus or by other means, in fig. 4 by way of example.
The memory 41 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to a data transmission method in an embodiment of the present invention (for example, the first data acquisition module 310, the development language acquisition module 320, the first data transmission module 330, the second data receiving module, and the preset server configuration module in the data transmission device). The processor 40 executes various functional applications of the computer device and data processing, i.e., implements the data transmission method described above, by running software programs, instructions and modules stored in the memory 41.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 41 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 41 may further comprise memory located remotely from processor 40, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 42 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the computer device. The output means 43 may comprise a display device such as a display screen.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a data transmission method, the method comprising:
acquiring first data input by a user;
Acquiring a development language of a client;
if the development language of the client is the first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to the server through a second language interface, and the development language of the server is the second language.
On the basis of the above embodiment, after acquiring the development language of the client, the method further includes:
And if the development language of the client is the second language, sending the first data to the server.
Based on the above embodiment, the first language is a c language or a java language;
the second language is python;
the preset server is a linux server.
On the basis of the above embodiment, after the first data is sent to the first language interface of the preset server, the method further includes:
Receiving second data sent by a preset server through a first language interface, wherein the second data is a result obtained by processing the first data by a server, and the preset server is used for receiving the second data sent by the server through the second language interface;
outputting the second data.
On the basis of the above embodiment, the first data is a neural network architecture description file, and the server is used for searching and calculating the neural network architecture according to the first data;
the second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
On the basis of the above embodiment, the first language interface for sending the first data to the preset server includes:
establishing a secure shell protocol connection with a preset server;
the method comprises the steps of sending first data to a first language interface of a preset server through secure shell protocol connection;
Correspondingly, the preset server is configured to receive, through a second language interface, second data sent by the server, and includes:
establishing a secure shell protocol connection between a preset server and a server;
the preset server is used for receiving second data sent by the server through the secure shell protocol connection and the second language interface.
On the basis of the above embodiment, before receiving the target file sent by the client, the method further includes:
A first language interface is configured in a preset server and is used for carrying out data transmission based on a first language;
And configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on the second language.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above method operations, and may also perform the related operations in the search method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the data transmission device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A data transmission method, comprising:
acquiring first data input by a user;
Acquiring a development language of a client;
if the development language of the client is a first language, the first data is sent to a first language interface of a preset server, so that the preset server sends the first data to a server through a second language interface, and the development language of the server is a second language;
Before receiving the target file sent by the client, the method further comprises the following steps:
A first language interface is configured in a preset server, and the first language interface is used for carrying out data transmission based on a first language; and configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on a second language.
2. The method of claim 1, further comprising, after retrieving the development language of the client:
and if the development language of the client is the second language, sending the first data to a server.
3. The method of claim 1, wherein the first language is c or java;
The second language is python;
the preset server is a linux server.
4. The method of claim 1, further comprising, after sending the first data to a first language interface of a preset server:
Receiving second data sent by the preset server through a first language interface, wherein the second data is a result obtained by processing the first data by the server, and the preset server is used for receiving the second data sent by the server through the second language interface;
outputting the second data.
5. The method of claim 4, wherein the first data is a neural network architecture description file, and the server is configured to perform a neural network architecture search calculation according to the first data;
the second data is error information or performance data of the neural network obtained by searching and calculating the neural network architecture.
6. The method of claim 4, wherein the sending the first data to the first language interface of the preset server comprises:
establishing a secure shell protocol connection with a preset server;
the first data is sent to a first language interface of the preset server through the secure shell protocol connection;
correspondingly, the preset server is configured to receive, through the second language interface, the second data sent by the server, and includes:
establishing a secure shell protocol connection between the preset server and the server;
The preset server is used for receiving the second data sent by the server through the secure shell protocol connection and the second language interface.
7. A data transmission apparatus, comprising:
The first data acquisition module is used for acquiring first data input by a user;
The development language acquisition module is used for acquiring the development language of the client;
The first data sending module is used for sending the first data to a first language interface of a preset server if the development language of the client is a first language, so that the preset server sends the first data to a server through a second language interface, and the development language of the server is a second language;
the preset server configuration module is used for:
A first language interface is configured in a preset server and is used for carrying out data transmission based on a first language; and configuring a second language interface in the preset server, wherein the second language interface is used for carrying out data transmission based on the second language.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data transmission method according to any of claims 1-6 when executing the program.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the data transmission method of any of claims 1-6.
CN202110919398.9A 2021-08-11 2021-08-11 Data transmission method, device, computer equipment and storage medium Active CN113645303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110919398.9A CN113645303B (en) 2021-08-11 2021-08-11 Data transmission method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110919398.9A CN113645303B (en) 2021-08-11 2021-08-11 Data transmission method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113645303A CN113645303A (en) 2021-11-12
CN113645303B true CN113645303B (en) 2024-04-23

Family

ID=78420899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110919398.9A Active CN113645303B (en) 2021-08-11 2021-08-11 Data transmission method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113645303B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6854123B1 (en) * 2000-05-09 2005-02-08 International Business Machines Corporation Method, system, and program for mapping standard application program interfaces (APIs) to user interface APIs
CN101674333A (en) * 2009-09-29 2010-03-17 北京飞天诚信科技有限公司 Interacting and generating method for unmanaged language and NET server side, device and system therefor
US7784026B1 (en) * 2002-06-05 2010-08-24 Adobe Systems Incorporated Web application internationalization
KR20130049035A (en) * 2011-11-03 2013-05-13 김정원 System and method for converting format of multi-language resource file
KR20140000397A (en) * 2012-06-22 2014-01-03 인텔렉추얼디스커버리 주식회사 Profiling system for application developed by multi-language and profiling method using the same
CN105791346A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Cross-platform solution for implementing SOAP (Simple Object Access Protocol) interface, service equipment end and network equipment
CN105872083A (en) * 2016-05-19 2016-08-17 湖州微未信息科技有限公司 Method and system supporting server access by different types of clients as well as server
CN109840155A (en) * 2017-11-24 2019-06-04 中兴通讯股份有限公司 A kind of method and device for realizing remote procedure call
CN110032451A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Distributed multilingual message realization method, device and server
CN110058864A (en) * 2019-04-18 2019-07-26 成都四方伟业软件股份有限公司 The dispositions method and device of micro services
CN110427676A (en) * 2019-07-23 2019-11-08 交控科技股份有限公司 A kind of public cloud service system of rail traffic based on micro services framework
CN110502212A (en) * 2018-05-16 2019-11-26 南京慕测信息科技有限公司 It is a kind of towards the multilingual online Development Support method of high concurrent
CN110780971A (en) * 2019-11-06 2020-02-11 山东健康医疗大数据有限公司 Method and system for realizing visual medical data mapping and converting tool
CN111431859A (en) * 2020-02-27 2020-07-17 浪潮金融信息技术有限公司 Processing method for converting socket interface into socket interface system
CN111651156A (en) * 2020-06-04 2020-09-11 广州鲁邦通物联网科技有限公司 Software development kit adaptive to multiple development languages and calling method
CN111756844A (en) * 2020-06-24 2020-10-09 深圳前海微众银行股份有限公司 Multi-language message agent method and device
CN112363699A (en) * 2020-11-16 2021-02-12 佳都新太科技股份有限公司 Interaction method and device applied to multi-language development platform
CN112860447A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Interaction method and system between different applications

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7490167B2 (en) * 2002-05-22 2009-02-10 Sony Corporation System and method for platform and language-independent development and delivery of page-based content
US20070169017A1 (en) * 2006-01-13 2007-07-19 Coward Daniel R Method and apparatus for translating an application programming interface (API) call
US9032310B2 (en) * 2006-10-20 2015-05-12 Ebay Inc. Networked desktop user interface

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6854123B1 (en) * 2000-05-09 2005-02-08 International Business Machines Corporation Method, system, and program for mapping standard application program interfaces (APIs) to user interface APIs
US7784026B1 (en) * 2002-06-05 2010-08-24 Adobe Systems Incorporated Web application internationalization
CN101674333A (en) * 2009-09-29 2010-03-17 北京飞天诚信科技有限公司 Interacting and generating method for unmanaged language and NET server side, device and system therefor
KR20130049035A (en) * 2011-11-03 2013-05-13 김정원 System and method for converting format of multi-language resource file
KR20140000397A (en) * 2012-06-22 2014-01-03 인텔렉추얼디스커버리 주식회사 Profiling system for application developed by multi-language and profiling method using the same
CN105791346A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Cross-platform solution for implementing SOAP (Simple Object Access Protocol) interface, service equipment end and network equipment
CN105872083A (en) * 2016-05-19 2016-08-17 湖州微未信息科技有限公司 Method and system supporting server access by different types of clients as well as server
CN109840155A (en) * 2017-11-24 2019-06-04 中兴通讯股份有限公司 A kind of method and device for realizing remote procedure call
CN110502212A (en) * 2018-05-16 2019-11-26 南京慕测信息科技有限公司 It is a kind of towards the multilingual online Development Support method of high concurrent
CN110032451A (en) * 2019-04-18 2019-07-19 成都四方伟业软件股份有限公司 Distributed multilingual message realization method, device and server
CN110058864A (en) * 2019-04-18 2019-07-26 成都四方伟业软件股份有限公司 The dispositions method and device of micro services
CN110427676A (en) * 2019-07-23 2019-11-08 交控科技股份有限公司 A kind of public cloud service system of rail traffic based on micro services framework
CN110780971A (en) * 2019-11-06 2020-02-11 山东健康医疗大数据有限公司 Method and system for realizing visual medical data mapping and converting tool
CN112860447A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Interaction method and system between different applications
CN111431859A (en) * 2020-02-27 2020-07-17 浪潮金融信息技术有限公司 Processing method for converting socket interface into socket interface system
CN111651156A (en) * 2020-06-04 2020-09-11 广州鲁邦通物联网科技有限公司 Software development kit adaptive to multiple development languages and calling method
CN111756844A (en) * 2020-06-24 2020-10-09 深圳前海微众银行股份有限公司 Multi-language message agent method and device
CN112363699A (en) * 2020-11-16 2021-02-12 佳都新太科技股份有限公司 Interaction method and device applied to multi-language development platform

Also Published As

Publication number Publication date
CN113645303A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN106572173A (en) Method, apparatus and system for updating configuration information
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
US20110258192A1 (en) Providing question and answer services
CN108306804A (en) A kind of Ethercat main station controllers and its communication means and system
CN114024972B (en) Long connection communication method, system, device, equipment and storage medium
CN109101664B (en) Data transmission method, device, equipment and medium for lightweight node
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN111338893A (en) Process log processing method and device, computer equipment and storage medium
CN103902616A (en) Method, device and system for pushing webpage application messages
CN112988599B (en) Page debugging method and device, electronic equipment and storage medium
CN113760674A (en) Information generation method and device, electronic equipment and computer readable medium
CN114513404A (en) Configuration method and device of time-sensitive network and computer-readable storage medium
CN112347192A (en) Data synchronization method, device, platform and readable medium
US20180139288A1 (en) Method, device, and non-transitory computer-readable recording medium
CN113342503B (en) Real-time progress feedback method, device, equipment and storage medium
CN113645303B (en) Data transmission method, device, computer equipment and storage medium
CN113704765A (en) Operating system identification method and device based on artificial intelligence and electronic equipment
CN111917848A (en) Data processing method based on edge computing and cloud computing cooperation and cloud server
CN108829735B (en) Synchronization method, device, server and storage medium for parallel execution plan
CN115604115A (en) Configuration information analysis method and device, electronic equipment and storage medium
WO2022201100A1 (en) Connecting devices for communication sessions
CN105335362A (en) Real-time data processing method and system, and instant processing system
CN113704486A (en) Map data construction method and device and map data query method and device
CN112187842B (en) Local area network data processing system and local area network data processing method
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant