CN112134941A - Communication method, communication device, server and storage medium - Google Patents
Communication method, communication device, server and storage medium Download PDFInfo
- Publication number
- CN112134941A CN112134941A CN202010988572.0A CN202010988572A CN112134941A CN 112134941 A CN112134941 A CN 112134941A CN 202010988572 A CN202010988572 A CN 202010988572A CN 112134941 A CN112134941 A CN 112134941A
- Authority
- CN
- China
- Prior art keywords
- host information
- keyword
- piece
- host
- communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 132
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000003860 storage Methods 0.000 title claims abstract description 25
- 230000004044 response Effects 0.000 claims abstract description 7
- 238000012545 processing Methods 0.000 claims description 32
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2468—Fuzzy queries
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
Abstract
The present disclosure relates to the field of communications technologies, and in particular, to a communication method, a communication apparatus, a server, and a storage medium, which at least solve a problem in the related art that when the number of terminals supporting an SSH protocol exceeds a certain threshold, a user needs to search for information of a remotely logged host in each time of performing a remote login under a Unix operating system through a terminal supporting an SSH protocol. The communication method comprises the following steps: acquiring a keyword; determining at least one piece of host information matched with the keyword; determining target host information in response to the selection operation; wherein the target host information is one of the at least one host information; and establishing communication connection between the hosts corresponding to the target host information.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a communication method, a communication apparatus, a server, and a storage medium.
Background
The secure shell (ssh) is a security protocol established by the network working group of the Internet Engineering Task Force (IETF) and used for protecting data transmitted between a client and a server. Currently, a terminal supporting the SSH protocol performs telnet by sending SSH commands (including an account name and a destination address (e.g., an internet protocol (ip) address or a host name) under the unic os. Generally, the terminal supporting the SSH protocol inside an enterprise is proportional to the business scale of the enterprise, i.e., the larger the business scale of the enterprise, the larger the number of terminals supporting the SSH protocol.
Disclosure of Invention
The present disclosure provides a communication method, a communication apparatus, a server, and a storage medium to at least solve the problem of how to assist a user in selecting desired target host information in the related art.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a communication method, including: acquiring a keyword; determining at least one piece of host information matched with the keyword; determining target host information in response to the selection operation; the target host information is one of at least one host information; and establishing communication connection between the hosts corresponding to the target host information.
In an implementation manner, the "determining at least one piece of host information matching the keyword" may be implemented by: determining at least one piece of host information matched with the keyword in the database; the database stores all host information in the system.
In an implementation manner, the above-mentioned "determining at least one host information in the database that matches the keyword" may be implemented by: and matching the host information and the keywords in the database according to a preset fuzzy matching algorithm to determine at least one host information.
In an implementation manner, the host information at least includes an IP address of the host, and the keyword at least includes the IP address, in this case, the "matching the host information and the keyword in the database according to a preset fuzzy matching algorithm, and determining at least one piece of host information" may be implemented by: and matching the IP address in the host information with the IP address in the keyword according to a preset fuzzy matching algorithm in the database to determine at least one piece of host information.
In an implementable manner, the communication method provided by the embodiment of the present disclosure further includes: determining the matching degree of each host information and the keyword in at least one host information; and prompting the at least one piece of host information according to the matching degree of each piece of host information in the at least one piece of host information and the keyword.
According to a second aspect of the embodiments of the present disclosure, there is provided a communication apparatus including: comprises an acquisition unit and a processing unit.
The above-mentioned obtaining unit, is configured to be used for obtaining the keyword; the processing unit is configured to determine at least one piece of host information matched with the keyword acquired by the acquisition unit; the processing unit, further configured to determine target host information in response to the selection operation; the target host information is one of at least one host information; the processing unit is further configured to establish a communication connection between hosts corresponding to the target host information.
In an implementation manner, the processing unit is specifically configured to determine at least one piece of host information in the database, which matches the keyword acquired by the acquiring unit. The database stores all host information in the system.
In an implementation manner, the processing unit is specifically configured to match the host information with the keyword obtained by the obtaining unit in the database according to a preset fuzzy matching algorithm, and determine at least one piece of host information.
In an implementation manner, the host information at least includes an IP address of the host, and the keyword at least includes the IP address, in which case, the processing unit is specifically configured to match the IP address in the host information with the IP address in the keyword acquired by the acquiring unit according to a preset fuzzy matching algorithm in the database, and determine at least one piece of host information.
In an implementable manner, the processing unit is further configured to determine a matching degree of each piece of the at least one piece of host information with the keyword acquired by the acquiring unit; the processing unit is further configured to prompt the at least one piece of host information according to a matching degree between each piece of host information in the at least one piece of host information and the keyword acquired by the acquisition unit.
According to a third aspect of the embodiments of the present disclosure, there is provided a server, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the communication method provided by the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of the server provided in the third aspect, enable the server to perform the communication method provided in the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising instructions for causing a computer to perform the communication method as designed in the first aspect when the computer program product is run on the computer.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
when a keyword input by a user is acquired, at least one piece of host information matching the keyword may be determined. And then the user can select the target host information required by the user from the at least one host information without memorizing all the host information by the user, thereby facilitating the experience of the user. Meanwhile, after the user determines the target host information through the selection operation, the communication connection of the host corresponding to the target host information can be established without the confirmation of the user.
Optionally, when the communication method provided in the embodiment of the present invention is applied to a terminal supporting an SSH protocol, a user may determine at least one piece of host information matched with a keyword only by inputting the keyword, and then the user may select target host information from the at least one piece of host information. After the target host information is determined through the selection operation, the communication connection between the hosts corresponding to the target host information can be established, and the user experience is facilitated. The problem that after the number of the terminals supporting the SSH protocol exceeds a certain threshold value, the host information of the remote login needs to be searched each time a user remotely logs in under a Unix operating system through the terminals supporting the SSH protocol in the related technology is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is an architectural diagram illustrating one implementation environment in accordance with an exemplary embodiment.
Fig. 2 is one of the flow diagrams illustrating a method of communication according to an example embodiment.
FIG. 3 is one of the interaction diagrams illustrating one method of communication, according to an example embodiment.
Fig. 4 is a second interaction diagram illustrating a method of communication, according to an example embodiment.
Fig. 5 is a third interaction diagram illustrating a method of communication, according to an example embodiment.
Fig. 6 is a fourth interaction diagram illustrating a method of communication, according to an example embodiment.
Fig. 7 is one of schematic structural diagrams of a communication apparatus according to an exemplary embodiment.
Fig. 8 is a second schematic diagram of a communication device according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The following explains data related to the communication method provided by the embodiment of the present disclosure:
the SSH protocol adopts a layered structure design and comprises four sub-protocols: an SSH transport layer sub-protocol, a user authentication sub-protocol, a connection sub-protocol, and a file transfer sub-protocol. When the client and the server communicate by using the SSH protocol, firstly, an SSH transport layer subprotocol is executed, which is responsible for establishing a secure channel between the server and the client, the subprotocol comprises three processes of protocol version exchange, parameter negotiation (the parameter negotiation content comprises five types of a key exchange method, an identity authentication algorithm, a hash algorithm, an encryption algorithm and a compression algorithm), and session key exchange, and after the subprotocol is finished, a session key is negotiated and used for encrypting authentication information in a user authentication stage, communication data of two communication parties in a connection stage and communication data of two communication parties in a file transmission stage.
OpenSSH is a free open source software package that fully implements the SSH protocol. In the parameter negotiation process of OpenSSH software, a client and a server firstly generate a negotiation string for each type of negotiation content according to own security policy respectively, the negotiation string generated by the client is called a client negotiation string, the negotiation string generated by the server is called a server negotiation string, each negotiation string comprises a plurality of candidate items, the candidate items are arranged from left to right according to the priority from high to low, and the candidate items are separated by commas; then the client and the server keep a part of the negotiation string generated by each client and server in the local, and simultaneously, the 5 negotiation string, a 32-bit standby variable and other information form a negotiation data packet to be sent to the other side.
The matching degree is referred to as character string matching. Wherein string matching means that a string is a sequence of characters defined on a finite alphabet sigma. For example, ATCTAGAGA is a string on the alphabet Σ ═ { a, C, G, T }. The string matching problem is to search a large string T for all occurrences of a certain string P. Where T is called text, P is called pattern, and both T and P are defined on the same alphabet sigma.
Illustratively, the open source string matching library fuzzy finder used in the patent embodiment uses a matching mode of matching and sorting the matching degree through compactness.
Fig. 1 is an architecture diagram illustrating an implementation environment in which the following communication methods may be applied, as shown in fig. 1, according to an example embodiment. As shown in fig. 1, the implementation environment includes a preset user 01 (including N hosts, where N is an integer greater than or equal to 0) and a server 02. When any two hosts in the user 01 are preset to communicate, data connection needs to be established through the server 02. Such as: when the host 1 remotely logs in the host N, the host 1 needs to establish a data connection with the host N through the server 02.
In an implementation manner, the server 02 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 02 may include a processor, memory, and a network interface, among others.
In the prior art, after the number of terminals supporting the SSH protocol in an enterprise exceeds a certain threshold, each time a user performs telnet under a Unix operating system through a terminal supporting the SSH protocol, the information of a host of the telnet needs to be searched. Based on this, embodiments of the present disclosure provide a communication method, when a keyword input by a user is acquired, at least one piece of host information matching the keyword may be determined. And then the user can select the target host information required by the user from the at least one host information without memorizing all the host information by the user, thereby facilitating the experience of the user. Meanwhile, after the user determines the target host information through the selection operation, the communication connection of the host corresponding to the target host information can be established without the confirmation of the user, and the specific implementation process is as follows:
an execution subject of the communication method provided by the embodiment of the present disclosure may be the communication device, the communication device may be a server, or may also be a functional module and/or a functional entity capable of implementing the communication method in the server, which may be determined specifically according to actual usage requirements, and the embodiment of the present disclosure is not limited. The following takes an execution subject as an example of a communication device, and exemplarily describes a communication method provided by an embodiment of the present disclosure.
It will be understood by those skilled in the art that the above-described communication devices and servers are merely exemplary and that other existing or future communication devices or servers, as may be suitable for use in the present disclosure, are also intended to be included within the scope of the present disclosure and are hereby incorporated by reference.
The following describes an exemplary communication method provided by the embodiments of the present disclosure with reference to the drawings.
Fig. 2 is a flowchart illustrating a communication method according to an exemplary embodiment, and as shown in fig. 2, the display method is used in a communication apparatus, and the method includes the following steps S11-S14.
S11, the communication device acquires the keyword.
S12, the communication device determines at least one host information matching the keyword.
S13, the communication device determines target host information in response to the selection operation. The target host information is one of the at least one host information.
And S14, establishing communication connection between the communication device and the host corresponding to the target host information.
In one implementation, the communication device encapsulates the target host information according to SSH protocol, so as to implement the same telnet function (i.e. establishing communication connection between the communication device and the host corresponding to the target host information) as Openssh (i.e. implementing encrypted communication over a computer network using SSH).
In an implementation manner, as shown in fig. 1, each host includes a communication device, wherein each host includes a set of the same public key and private key. When the host 1 needs to establish communication connection with the host N, the public key stored in the host 1 needs to be sent to the host N, so that the host 1 can establish communication connection with the host N only when the host N confirms that the public key sent by the host 1 is the same as the public key stored in the host N.
Illustratively, assuming that the target host information is 192.168.1.1, the communication device encapsulates the target host information as "ssh user name @ 192.168.1.1" according to ssh protocol, so as to log in the host with the address of 192.168.1.1 in the private network of the enterprise.
As can be seen from the above, when the communication device receives the keyword input by the user, the communication device can determine at least one piece of host information matching the keyword according to the keyword, so that the user can select the target host information required by the user from the at least one piece of host information. Meanwhile, the communication device responds to selection operation sent by a user to determine the target host information and establishes communication connection between hosts corresponding to the target host information, so that the user does not need to manually establish communication connection between hosts corresponding to the target host information, and the user experience is facilitated.
In an implementation manner, as shown in fig. 3 in conjunction with fig. 2, the step S12 can be specifically realized by the step S120 described below.
S120, the communication device determines at least one piece of host information matched with the keyword in the database. The database stores all host information in the system.
In one implementation, the system refers to a network system to which the current communication device belongs. Such as: an internal network of an enterprise.
In an implementation manner, as shown in fig. 1, the server 02 includes a communication device provided by the embodiment of the present disclosure, and the communication device is provided with the database, and the database stores all host information stored in a fixed format (as shown in table 1) as shown in table 1.
Illustratively, when a user remotely logs in to the host 2 through the host 1 and the user does not know host information of the host 2, the user 1 establishes a universal connection with the server 02 through an Application Programming Interface (API) interface. When a user needs to input a keyword on the host 1, the host 1 sends the keyword to the server 02, and when the server 02 receives the keyword, at least one piece of host information matched with the keyword in the database is determined according to a preset matching algorithm. Further, the server 02 sends the at least one piece of host information to the host 1, and then the user selects the target host information from the at least one piece of host information, so that the host 1 establishes communication connection with the host 2 through the server 02, and the user can remotely log in the host 2 through the host 1.
TABLE 1
Host name | IP address | Label (R) |
Zhang three | 192.168.1.1 | Engineering group |
Zhao Wu | 192.168.1.5 | Engineering group |
Zhang four | 192.168.2.1 | Communicating a group |
In an implementation manner, as shown in fig. 1, each host includes a communication device provided by the embodiment of the present disclosure, and the communication device is provided with the database, and the database stores all host information stored according to a fixed format.
Illustratively, a user remotely logs in the host 2 through the host 1, and when the user does not know the host information of the host 2, the user needs to input a keyword on the host 1, and when the host 1 receives the keyword input by the user, the host 1 determines at least one piece of host information matched with the keyword in the database according to a preset matching algorithm. Further, the user selects target host information from at least one host information displayed in the host 1, so that the host 1 establishes a communication connection with the host 2 through the server 02, and the user remotely logs in the host 2 through the host 1.
According to the communication method, all host information in the system is stored in the database, so that a user does not need to remember each host information, but only needs to input a keyword in the communication device, at least one host information matched with the keyword in the database can be determined according to a preset matching algorithm, and the user experience is facilitated.
In an implementation manner, as shown in fig. 4 in conjunction with fig. 3, the step S120 can be specifically realized by the step S1200 described below.
S1200, the communication device matches the host information with the keywords in the database according to a preset fuzzy matching algorithm to determine at least one host information.
In an implementation manner, the host information at least includes an IP address of the host, and the keyword at least includes the IP address, in this case, as shown in fig. 5 in conjunction with fig. 4, the step S1200 can be specifically implemented by the following step S12000.
S12000, the communication device matches the IP address in the host information with the IP address in the keyword in the database according to a preset fuzzy matching algorithm to determine at least one piece of host information.
In an implementation mode, in order to facilitate matching of the keyword and the host information, the matching algorithm may be a fuzzy matching algorithm, so that at least one piece of host information matched with the keyword can be matched without inputting the completed host information by a user, and the user experience is facilitated.
In an implementation manner, in order to facilitate daily management, each host may be classified into labels, so that a user only needs to input a corresponding label to find out all host information corresponding to the label.
For example, with reference to table 1, assuming that the keyword obtained by the communication device is "one", the communication device determines, according to a preset matching algorithm, that at least one piece of host information including the keyword in the database is "three" and "four". Then, the communication device displays the IP addresses 192.168.1.1 corresponding to zhang three, zhang four, and zhang four to the corresponding display units, and the user further displays the IP addresses 192.168.2.1 corresponding to zhang three, and the user selects the corresponding host name: zhang three, IP Address: 192.168.1.1 "," hostname: zhang four, IP Address: 192.168.2.1 "information, and determining that the target host information is" host name: zhang three, IP Address: 192.168.1.1 ", and further establishes a new name for the" host name: zhang three, IP Address: 192.168.1.1 ".
Or,
with reference to table 1, assuming that the keyword acquired by the communication device is "192.168.1", the communication device determines that at least one piece of host information including the keyword in the database is "192.168.1.1,192.168.1.2" respectively according to a preset matching algorithm. The communication device displays the host name "zhang san" corresponding to the obtained IP address "192.168.1.1", the host name "wu zhao" corresponding to the IP address "192.168.1.2" to the corresponding display unit, and the user further displays the corresponding IP address "zhang san" on the display unit according to the "host name: zhang three, IP Address: 192.168.1.1 "," hostname: zhao Wu, IP address: 192.168.1.2 "information, the target host information is determined as" host name: zhang three, IP Address: 192.168.1.1 ", and further establishes a new name for the" host name: zhang three, IP Address: 192.168.1.1 ".
Or,
with reference to table 1, assuming that the keyword obtained by the communication device is "engineering group", the communication device determines, according to a preset matching algorithm, that at least one piece of host information including the keyword in the database is "host name: zhang three, IP Address: 192.168.1.1 "," hostname: zhang four, IP Address: 192.168.2.1". The "host name: zhang three, IP Address: 192.168.1.1 "," hostname: zhang four, IP Address: 192.168.2.1 "to the corresponding display unit, and the user then displays the corresponding host name: zhang three, IP Address: 192.168.1.1 "," hostname: zhang four, IP Address: 192.168.2.1 "information, and determining that the target host information is" host name: zhang three, IP Address: 192.168.1.1 ", and further establishes a new name for the" host name: zhang three, IP Address: 192.168.1.1 ".
In a practical manner, as shown in fig. 6 in conjunction with fig. 2, the communication method provided by the embodiment of the present disclosure further includes step S15 and step S16.
S15, the communication device determines a matching degree of each of the at least one host information with the keyword.
S16, the communication device displays at least one host information according to the matching degree of each host information and the keyword in the at least one host information.
In a practical mode, the communication device displays at least one piece of host information according to the sequence of the matching degrees from top to bottom, so that a user can determine the required host information according to the sequence of the host information display.
In an implementation manner, in the communication method provided by the embodiment of the present disclosure, the host information at least includes an IP address of the host.
In one implementation, the host information further includes at least one of a host name and a tag.
According to the embodiment of the disclosure, at least one piece of host information is displayed according to the matching degree of each piece of host information and the keyword in the at least one piece of host information, so that the displayed result better meets the actual requirements of the user, and the user experience is ensured.
Fig. 7 is a block diagram illustrating a communication device in accordance with an example embodiment. Referring to fig. 7, the communication apparatus 10 includes an acquisition unit 101 and a processing unit 102.
An obtaining unit 101 configured to obtain a keyword.
A processing unit 102 configured to determine at least one piece of host information matching the keyword acquired by the acquisition unit 101.
The processing unit 102 is further configured for determining target host information in response to the selection operation. The target host information is one of the at least one host information.
The processing unit 102 is further configured to establish a communication connection between hosts corresponding to the target host information.
In an implementable manner, the processing unit 102 is specifically configured to determine at least one piece of host information in the database that matches the keyword acquired by the acquisition unit 101; the database stores all host information in the system.
In an implementation manner, the processing unit 102 is specifically configured to match the host information with the keywords acquired by the acquiring unit 101 according to a preset fuzzy matching algorithm in the database, and determine at least one host information.
In an implementation manner, the host information at least includes an IP address of the host, and the keyword at least includes the IP address; the processing unit 102 is specifically configured in the database, and matches the IP address in the host information with the IP address in the keyword acquired by the acquiring unit 101 according to a preset fuzzy matching algorithm, so as to determine at least one piece of host information.
In an implementable manner, the processing unit 102 is further configured to determine a matching degree of each host information of the at least one host information with the keyword acquired by the acquiring unit 101; the processing unit 102 is further configured to prompt at least one piece of host information according to a matching degree of each piece of host information in the at least one piece of host information and the keyword acquired by the acquiring unit 101.
Of course, the communication device 10 provided by the embodiment of the present disclosure includes, but is not limited to, the above modules, for example, the communication device 10 may further include the storage unit 103. The storage unit 103 may be used for storing program codes of the write communication apparatus 10, and may also be used for storing data generated by the write communication apparatus 10 during operation, such as data in a write request.
In addition, when the communication device 10 provided in the above embodiment implements the functions thereof, only the division of the above functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the communication device 10 may be divided into different functional modules to implement all or part of the functions described above.
Fig. 8 is a schematic structural diagram of a communication device 10 according to an embodiment of the present disclosure, and as shown in fig. 8, the communication device 10 may include: at least one processor 51, a memory 52, a communication interface 53 and a communication bus 54.
The following describes each component of the communication apparatus 10 in detail with reference to fig. 8:
the processor 51 is a control center of the communication device 10, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 51 is a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present disclosure, such as: one or more DSPs, or one or more Field Programmable Gate Arrays (FPGAs).
In particular implementations, processor 51 may include one or more CPUs such as CPU0 and CPU1 shown in fig. 8 as one example. Also, as an example, the communication device 10 may include a plurality of processors, such as the processor 51 and the processor 55 shown in fig. 8. Each of these processors may be a Single-core processor (Single-CPU) or a Multi-core processor (Multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The Memory 52 may be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 52 may be self-contained and coupled to the processor 51 via a communication bus 54. The memory 52 may also be integrated with the processor 51.
In a particular implementation, the memory 52 is used to store data in the present disclosure and to execute software programs of the present disclosure. The processor 51 may perform various functions of the air conditioner by running or executing software programs stored in the memory 52 and calling data stored in the memory 52.
The communication interface 53 is a device such as any transceiver, and is used for communicating with other devices or communication Networks, such as a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), a terminal, and a cloud. The communication interface 53 may include a transceiving unit implementing a receiving function and a transmitting function.
The communication bus 54 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 8, but this is not intended to represent only one bus or type of bus.
As an example, in conjunction with fig. 7, the processing unit 101 in the communication device 10 implements the same function as the processor 51 in fig. 8, the transceiving unit 102 implements the same function as the communication interface 53 in fig. 8, and the storage unit 103 implements the same function as the memory 52 in fig. 8.
Another embodiment of the present disclosure also provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method shown in the above method embodiment.
In some embodiments, the disclosed methods may be implemented as computer program instructions encoded on a computer-readable storage medium in a machine-readable format or encoded on other non-transitory media or articles of manufacture.
In an exemplary embodiment, the disclosed embodiments also provide a storage medium comprising instructions, such as the memory 102 comprising instructions, executable by the processor 101 of the server 02 to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a Read-Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, the disclosed embodiments also provide a computer program product comprising one or more instructions executable by the processor 101 of the server 02 to perform the above-described method.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present disclosure, it should be understood that the disclosed 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 modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure 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, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only an embodiment of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A communication method applied to a Unix operating system comprises the following steps:
acquiring a keyword;
determining at least one piece of host information matched with the keyword;
determining target host information in response to the selection operation; wherein the target host information is one of the at least one host information;
and establishing communication connection between the hosts corresponding to the target host information.
2. The communication method according to claim 1, wherein the determining at least one host information matching the keyword comprises:
determining at least one piece of host information matched with the keyword in a database; and the database stores all host information in the system.
3. The communication method according to claim 2, wherein the determining at least one host information in the database that matches the keyword comprises:
and matching host information with the keywords in the database according to a preset fuzzy matching algorithm to determine at least one piece of host information.
4. A communication method according to any one of claims 1 to 3, characterized in that the communication method further comprises:
determining the matching degree of each host information in the at least one host information and the keyword;
and prompting the at least one piece of host information according to the matching degree of each piece of host information in the at least one piece of host information and the keyword.
5. A communication apparatus, comprising an acquisition unit and a processing unit;
the acquisition unit is configured to acquire a keyword;
the processing unit is configured to determine at least one piece of host information matched with the keyword acquired by the acquisition unit;
the processing unit further configured to determine target host information in response to a selection operation; wherein the target host information is one of the at least one host information;
the processing unit is further configured to establish a communication connection between hosts corresponding to the target host information.
6. The communication apparatus according to claim 5, wherein the processing unit is specifically configured to determine at least one piece of host information in a database that matches the keyword acquired by the acquiring unit; and the database stores all host information in the system.
7. The communication apparatus according to claim 6, wherein the processing unit is specifically configured to match host information with the keyword obtained by the obtaining unit in the database according to a preset fuzzy matching algorithm, and determine at least one host information.
8. The communication apparatus according to any one of claims 5 to 7, wherein the processing unit is further configured to determine a matching degree of each of the at least one piece of host information with the keyword acquired by the acquiring unit;
the processing unit is further configured to prompt the at least one piece of host information according to a matching degree between each piece of host information in the at least one piece of host information and the keyword acquired by the acquiring unit.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the communication method of any one of claims 1 to 4.
10. A computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform the communication method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010988572.0A CN112134941A (en) | 2020-09-18 | 2020-09-18 | Communication method, communication device, server and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010988572.0A CN112134941A (en) | 2020-09-18 | 2020-09-18 | Communication method, communication device, server and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112134941A true CN112134941A (en) | 2020-12-25 |
Family
ID=73841413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010988572.0A Pending CN112134941A (en) | 2020-09-18 | 2020-09-18 | Communication method, communication device, server and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112134941A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002247052A (en) * | 2001-02-21 | 2002-08-30 | Casio Comput Co Ltd | Communication network system, communication network construction method and program |
CN103179135A (en) * | 2013-04-19 | 2013-06-26 | 网宿科技股份有限公司 | Remote management method based on ssh transfer machine |
CN104796500A (en) * | 2015-03-20 | 2015-07-22 | 广东欧珀移动通信有限公司 | A connection method and device for a terminal and an intelligent device |
CN105812406A (en) * | 2014-12-29 | 2016-07-27 | 北京神州泰岳软件股份有限公司 | Information transmission method and device based on WEB simulation terminal system |
CN106126452A (en) * | 2016-06-17 | 2016-11-16 | 北京大学 | The method that (SuSE) Linux OS based on IIC agreement communicates with bare machine |
CN109495542A (en) * | 2018-10-16 | 2019-03-19 | 深圳壹账通智能科技有限公司 | Load distribution method and terminal equipment based on performance monitoring |
US20190294479A1 (en) * | 2017-02-06 | 2019-09-26 | Tencent Technology (Shenzhen) Company Limited | Resource scheduling method, system, server, and storage medium |
CN110942773A (en) * | 2019-12-10 | 2020-03-31 | 上海雷盎云智能技术有限公司 | Method and device for controlling intelligent household equipment through voice |
US20200251101A1 (en) * | 2019-01-31 | 2020-08-06 | Beijing Xiaomi Intelligent Technology Co., Ltd. | Method and apparatus for controlling device |
-
2020
- 2020-09-18 CN CN202010988572.0A patent/CN112134941A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002247052A (en) * | 2001-02-21 | 2002-08-30 | Casio Comput Co Ltd | Communication network system, communication network construction method and program |
CN103179135A (en) * | 2013-04-19 | 2013-06-26 | 网宿科技股份有限公司 | Remote management method based on ssh transfer machine |
CN105812406A (en) * | 2014-12-29 | 2016-07-27 | 北京神州泰岳软件股份有限公司 | Information transmission method and device based on WEB simulation terminal system |
CN104796500A (en) * | 2015-03-20 | 2015-07-22 | 广东欧珀移动通信有限公司 | A connection method and device for a terminal and an intelligent device |
CN106126452A (en) * | 2016-06-17 | 2016-11-16 | 北京大学 | The method that (SuSE) Linux OS based on IIC agreement communicates with bare machine |
US20190294479A1 (en) * | 2017-02-06 | 2019-09-26 | Tencent Technology (Shenzhen) Company Limited | Resource scheduling method, system, server, and storage medium |
CN109495542A (en) * | 2018-10-16 | 2019-03-19 | 深圳壹账通智能科技有限公司 | Load distribution method and terminal equipment based on performance monitoring |
US20200251101A1 (en) * | 2019-01-31 | 2020-08-06 | Beijing Xiaomi Intelligent Technology Co., Ltd. | Method and apparatus for controlling device |
CN110942773A (en) * | 2019-12-10 | 2020-03-31 | 上海雷盎云智能技术有限公司 | Method and device for controlling intelligent household equipment through voice |
Non-Patent Citations (1)
Title |
---|
彭志奇: "《信息检索与利用教程》", pages: 81 - 82 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3668055A1 (en) | Subscription publication method, and server | |
US10716082B2 (en) | Bluetooth automatic connection method, and master device, slave device, and system | |
EP2633667B1 (en) | System and method for on the fly protocol conversion in obtaining policy enforcement information | |
EP2933986B1 (en) | Computer-implemented method and computer program product for processing named entity queries using a cached functionality in a domain name system | |
CN103583030B (en) | The method and device of Information Security is realized in distributed cloud computing environment | |
CN108370379A (en) | With cunicular equipment management | |
US9992188B2 (en) | Methods and systems for single sign-on while protecting user privacy | |
JP2006268855A (en) | System and method for adaptive authentication | |
CN110247894A (en) | The method and device of handle server is forged in a kind of identification | |
US20150052575A1 (en) | Steering Traffic Among Multiple Network Services Using a Centralized Dispatcher | |
CN113301111A (en) | Digital twinning method, edge computing device, mobile terminal and storage medium | |
CN108833255A (en) | Communication means, system and block chain node device based on block chain | |
US20210042311A1 (en) | Dynamic prioritization of attributes to determine search space size of each term, then index on those sizes as attributes | |
CN107168765A (en) | A kind of method and system of remote compilation software | |
CN111585786A (en) | Realization of secret-free building method of big data cluster | |
CN106453349B (en) | Account login method and device | |
CN116569538A (en) | Service-to-service communication and authentication via a central network grid | |
Valdez et al. | How to discover IoT devices when network traffic is encrypted | |
CN114025009B (en) | Method, system, proxy server and device for forwarding request | |
CN112738019B (en) | Method and device for displaying device information, storage medium and electronic device | |
CN113301005B (en) | Data acquisition method and device | |
US9288116B2 (en) | System and method for NAS server test load generation | |
CN112134941A (en) | Communication method, communication device, server and storage medium | |
CN108737350B (en) | Information processing method and client | |
CN111240867A (en) | Information communication system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201225 |
|
RJ01 | Rejection of invention patent application after publication |