CN113556404A - Communication method and system between single disks in equipment - Google Patents

Communication method and system between single disks in equipment Download PDF

Info

Publication number
CN113556404A
CN113556404A CN202110887638.1A CN202110887638A CN113556404A CN 113556404 A CN113556404 A CN 113556404A CN 202110887638 A CN202110887638 A CN 202110887638A CN 113556404 A CN113556404 A CN 113556404A
Authority
CN
China
Prior art keywords
communication
information
disk
message
master control
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
Application number
CN202110887638.1A
Other languages
Chinese (zh)
Inventor
郑向东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Jiubo Technology Co ltd
Original Assignee
Guangdong Jiubo Technology 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 Guangdong Jiubo Technology Co ltd filed Critical Guangdong Jiubo Technology Co ltd
Priority to CN202110887638.1A priority Critical patent/CN113556404A/en
Publication of CN113556404A publication Critical patent/CN113556404A/en
Pending legal-status Critical Current

Links

Images

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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • 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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a method and a system for communication between single disks in equipment, which comprises the following steps: establishing a communication channel in the service disk, and performing communication connection with the master control disk; detecting the communication channel, and packaging the communication message after determining that the communication channel can be normally used; and sending the packaged communication message from the service disk to a master control disk through a communication channel, decrypting the packaged communication message by the master control disk to obtain communication information, and storing the communication information. The invention encapsulates the message according to the uniform communication protocol, and sends the encapsulated message by establishing the communication channel, thereby avoiding the need of respectively adjusting the message to be sent according to different communication modes during message sending.

Description

Communication method and system between single disks in equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for communication between single disks in a device.
Background
At present, various products are applied to FTTB/FTTC and MSAN networking in the market, and services such as broadband access, VOIP, IPTV and the like are provided. The said method adopts plug-in card design for some products, and provides ADSL, VDSL, Ethernet, PSTN and other interfaces on the user side through different service discs to connect with the user terminal, so as to realize the access of user data and voice service. In the card-inserting type device, there are generally 1-2 or more master disks and a plurality of service disks, the master disk is used as the management and control core function of the device, the service disk bears the service functions of data forwarding, signal processing, etc., and the roles of the service disks are generally fixed.
The master control disk needs to communicate with the service disks for realizing management and control of the service disks, and the communication contents comprise single disk type identification, service configuration, state query and the like. However, bus types and communication protocols for communication between different types of service disks and the master disk may be different, so that the management module and the service configuration module of the master disk software need to adopt different communication modes for different types of service disks, and because of differences in rates of different communication buses and MTUs (Maximum Transmission units), differences in Maximum lengths of communication messages and message sending rates need to be considered. Therefore, the implementation details of the bottom layer software for establishing, receiving and sending packets in the communication channel are greatly different, which brings great difficulty to the transmission process of the message.
Disclosure of Invention
The invention provides a communication method and a communication system between single disks in equipment, which are used for solving the problem that messages to be sent need to be respectively adjusted according to different communication modes in message sending.
In order to achieve the above object, an embodiment of the present invention provides a method for communication between single disks in a device, including:
step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk;
step S102: detecting the communication channel, and packaging the communication message after determining that the communication channel can be normally used;
step S103: and sending the packaged communication message from the service disk to a master control disk through a communication channel, decrypting the packaged communication message by the master control disk to obtain communication information, and storing the communication information.
Preferably, the method for communication between single disks in the device is characterized in that a transmitting end is arranged on the service disk, a receiving end is arranged on the master control disk, and a communication channel between the service disk and the master control disk is established based on the transmitting end and the receiving end.
Preferably, the method for communication between single disks in an apparatus is characterized in that, in step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk, wherein the communication channel comprises:
step S201: sending a first connection request carrying proposal information to a receiving end by a transmitting end through a server;
step S202: a receiving end acquires a first communication proposal from proposal information carried by a received connection request, analyzes the first communication proposal and judges whether the first communication proposal is reasonable or not;
if the first communication protocol is reasonable, receiving a first connection request sent by the transmitting terminal;
if the first communication protocol is unreasonable, the receiving end corrects an unreasonable part in the first communication protocol to generate a second communication protocol, and the second communication protocol is fed back to the transmitting end;
step S203: the transmitting end analyzes the second communication protocol and judges whether the second communication protocol is reasonable or not;
if the connection is reasonable, a second connection request is sent to the receiving end;
if the number is not reasonable, a third communication protocol is generated and sent to the receiving end;
and repeating the steps S201 to S203 until a receiving end receives the connection request to construct a communication channel and realize the communication connection between the service disk and the master control disk.
Preferably, the method for communication between single disks in an apparatus is characterized in that, in step S102: detecting the communication channel, further comprising:
the transmitting end sends a preset detection signal to the receiving end through a communication channel, and the signal received by the receiving end is used as a first signal to be processed;
carrying out carrier phase estimation on the first signal to be processed to obtain a corresponding instantaneous carrier phase signal, carrying out filtering processing on the instantaneous carrier phase signal, and eliminating a noise signal therein to obtain a first instantaneous carrier phase signal;
generating a delay value based on the carrier phase estimation and the delay of the first instantaneous carrier phase signal relative to the instantaneous carrier phase signal, and performing delay processing on the received first signal to be processed based on the delay value to obtain a first detection signal;
obtaining a demodulation signal based on the first detection signal and the first instantaneous carrier phase signal, and obtaining baseband data of the communication channel according to the demodulation signal;
judging whether effective frame information exists in the communication channel or not according to the baseband data;
if yes, performing secondary demodulation on the demodulation signal;
if not, the communication channel is judged to be qualified.
Preferably, the method for communication between single disks in an apparatus is characterized in that, in step S103: decrypting the packaged communication message by the master control disk to obtain communication information, and further comprising:
acquiring a sending time sequence of a received encapsulated communication message;
calculating a time sequence difference value between a preset time sequence and a sending time sequence based on a preset decryption key corresponding to the preset time sequence and a corresponding key generation rule, and calculating a logic relationship between the preset decryption key and a message key corresponding to the sending time sequence according to the time sequence difference value and the key generation rule;
calculating the preset decryption key according to the logical relationship, and obtaining a message key for decrypting the received communication message according to the logical relationship;
decrypting the received encapsulated communication message by the message key, and outputting a decryption result to obtain communication information;
determining training texts of various types of the communication information according to preset type information;
inputting a plurality of training texts into a neural network model in batches, carrying out one-hot coding extraction on the extracted type training texts by adopting a random mask mode for each type of training texts in each batch to obtain text characteristics of each type of training texts in the current batch, and adjusting the neural network model according to the extracted text characteristics to obtain a classification model;
and inputting the obtained communication information into the classification model, outputting a result as text information in the communication information corresponding to each classification, and setting the text information in the communication information corresponding to each classification as classification information.
Preferably, the method for communication between single disks in an apparatus is characterized in that, in step S103, obtaining and storing communication information includes:
reading a hard disk interface of a master control disk, and acquiring use information of the master control disk;
calculating the transmission speed of the master control disk according to the use information of the master control disk, and judging whether the calculated transmission speed of the master control disk is within a preset transmission speed range;
if the calculated transmission speed of the main control panel is within a preset transmission speed range, judging that the main control panel is in a normal state;
and if the calculated transmission speed of the main control panel is not within the preset transmission speed range, judging that the main control panel is in an abnormal state, and alarming.
Preferably, the method for communication between single disks in an apparatus is characterized in that, in step S102: encapsulating the communication message, further comprising:
acquiring a communication message to be packaged, carrying out full-text analysis on the communication message, and analyzing the central content of the communication message;
setting the part corresponding to the central content as an untransformable part, extracting the message content of the unchangeable part to obtain first original content, taking the content except the untransformable part in the communication message as a transformable part, extracting the message content of the transformable part, and generating second original content;
compressing the first original content to generate a first compressed content, and generating a first decompression code according to the corresponding relation between the first original content and the compressed content;
compressing the second original content according to a preset compression dictionary to generate second compressed content;
encrypting the first compressed content and the second compressed content to obtain a packaged communication message;
acquiring the position information of the first original content and the second original content according to the communication message to be encapsulated to obtain text position information;
and sending the encapsulated communication message, the first decompression code, the second decompression code and the text position information to the receiving end from the transmitting end.
Preferably, the method for communication between single disks in a device is characterized in that reading a hard disk interface of a master disk to obtain the use information of the master disk, and further includes:
detecting a main control panel according to a preset scanning algorithm, detecting whether a hard disk bad track exists in the main control panel, and if so, setting the detected bad track as a first bad track;
sending a preset file from a service disk to a master control disk, acquiring the difference between the service disk and the file in the master control disk and the original file, and determining a second bad track in the master control disk according to the corresponding difference position;
recording the first bad track information and the second bad track information into a database to generate a bad track list;
carrying out mirror image copying on the content at the corresponding position of the bad track in the bad track list, wherein a copied content storage area is a part without the bad track in the master control disk;
obtaining bad track information in the bad track list, generating a mapping relation between a bad track part and a no-bad track part in the main control panel according to a difference relation between the bad track file and an original file, and generating a bad track repairing logic according to the mapping relation;
based on the obtained bad track repairing logic, sequentially repairing the lists in the bad track list;
detecting the main control panel based on a preset scanning algorithm, and judging whether a hard disk bad track exists in the repaired main control panel;
if yes, preprocessing the detected bad track;
if the content does not exist, formatting the repaired part, and moving the mirror image copied content to the formatted master control disk.
Preferably, the method for communication between single disks in a device is characterized in that the step of outputting the decryption result to obtain the communication information further includes:
decompressing the decrypted message according to a preset compression dictionary and the received first decompression code;
obtaining original position information of the message text according to the text position information, and sequencing the decompressed messages according to the original position information of the message text;
and outputting the sequenced result to obtain the communication information.
Preferably, a communication system between single disks in a device includes:
the channel establishing module is used for establishing a communication channel in the service disk and performing communication connection with the master control disk;
the channel detection module is used for detecting the communication channel and packaging the communication message after determining that the communication channel can be normally used;
and the information sending module is used for sending the packaged communication message to a master control disk through a communication channel by the service disk, decrypting the packaged communication message by the master control disk to obtain the communication information and storing the communication information.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flowchart illustrating a method for communication between single disks in a device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for inter-device single-disk communication according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for inter-device single-disk communication according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for inter-device single-disk communication according to another embodiment of the present invention;
fig. 5 is a flow chart of a communication system between single disks in a device according to another embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
A method and a system for communication between single disks in a device according to an embodiment of the present invention are described with reference to fig. 1 to 5.
Example 1:
as shown in fig. 1, the present invention provides a method for communication between single disks in a device, including:
step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk;
step S102: detecting the communication channel, and packaging the communication message after determining that the communication channel can be normally used;
step S103: and sending the packaged communication message from the service disk to a master control disk through a communication channel, decrypting the packaged communication message by the master control disk to obtain communication information, and storing the communication information.
In this embodiment, the service disk is a hard disk that carries service functions such as data forwarding and signal processing; the master control disk is a hard disk with the core functions of management and control of the equipment; the communication channel is an information sending channel; the method is a method for controlling the access level of reading and modifying the attribute in the program, wherein the attribute and the implementation details of the object are encapsulated as hidden objects, and only an interface is externally disclosed; decryption is the process of unwrapping the transmitted information package;
the beneficial effect of above-mentioned scheme: the invention can establish a communication channel between the service disk and the main control disk, package the message according to a uniform communication protocol, and send the packaged message by establishing the communication channel, thereby avoiding the need of respectively adjusting the message to be sent according to different communication modes during message sending.
Example 2:
based on embodiment 1, the service disk is provided with a transmitting end, the master control disk is provided with a receiving end, and a communication channel between the service disk and the master control disk is established based on the transmitting end and the receiving end.
In this embodiment, the transmitting end is a device set at the sending position of the communication information; the receiving end is a device disposed at a location where communication information is received, and the transmitting end and the receiving end may be implemented as antennas.
The beneficial effect of above-mentioned scheme: and a transmitting end and a receiving end are arranged, and the position and the length of the communication channel are determined according to the transmitting end and the receiving end, so that the establishment of the communication channel is facilitated.
Example 3:
based on embodiment 1, as shown in fig. 2, the step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk, wherein the communication channel comprises:
step S201: sending a first connection request carrying proposal information to a receiving end by a transmitting end through a server;
step S202: a receiving end acquires a first communication proposal from proposal information carried by a received connection request, analyzes the first communication proposal and judges whether the first communication proposal is reasonable or not;
if the first communication protocol is reasonable, receiving a first connection request sent by the transmitting terminal;
if the first communication protocol is unreasonable, the receiving end corrects an unreasonable part in the first communication protocol to generate a second communication protocol, and the second communication protocol is fed back to the transmitting end;
step S203: the transmitting end analyzes the second communication protocol and judges whether the second communication protocol is reasonable or not;
if the connection is reasonable, a second connection request is sent to the receiving end;
if the number is not reasonable, a third communication protocol is generated and sent to the receiving end;
and repeating the steps S201 to S203 until a receiving end receives the connection request to construct a communication channel and realize the communication connection between the service disk and the master control disk.
In this embodiment, the offer information is the rules and provisioning information that must be followed by the two entities to complete the communication or service; the first connection request is a request of a connected communication channel carrying a first communication proposal transmitted by a transmitting terminal. The second connection request is a connection request sent when the second communication proposal is reasonable.
The beneficial effect of above-mentioned scheme: the method comprises the steps that a transmitting terminal sends a first connection request carrying proposal information to a receiving terminal through a server, the receiving terminal checks the proposal information and judges whether the proposal information is reasonable or not, if not, the proposal information is modified and the modified proposal information is returned to the transmitting terminal, and when both parties propose the same proposal, connection is established, so that communication proposals can be ensured to be within the receiving ranges of both parties, and the stability of a communication channel is ensured.
Example 4:
based on embodiment 1, the step S102: detecting the communication channel, further comprising:
the transmitting end sends a preset detection signal to the receiving end through a communication channel, and the signal received by the receiving end is used as a first signal to be processed;
carrying out carrier phase estimation on the first signal to be processed to obtain a corresponding instantaneous carrier phase signal, carrying out filtering processing on the instantaneous carrier phase signal, and eliminating a noise signal therein to obtain a first instantaneous carrier phase signal;
generating a delay value based on the carrier phase estimation and the delay of the first instantaneous carrier phase signal relative to the instantaneous carrier phase signal, and performing delay processing on the received first signal to be processed based on the delay value to obtain a first detection signal;
obtaining a demodulation signal based on the first detection signal and the first instantaneous carrier phase signal, and obtaining baseband data of the communication channel according to the demodulation signal;
judging whether effective frame information exists in the communication channel or not according to the baseband data;
if yes, performing secondary demodulation on the demodulation signal;
if not, the communication channel is judged to be qualified.
In this embodiment, the preset detection signal is a preset fixed test signal; the first signal to be processed is a signal to be processed generated by the receiving end based on the received preset detection signal; the carrier phase estimation is a technology and a method for measuring a carrier phase observation value or a differential observation value thereof by using a receiver and obtaining a baseline vector coordinate difference between two synchronous observation stations through baseline vector calculation; the baseband data is baseband data, and the baseband data refers to a special frequency bandwidth, that is, a bandwidth with a frequency range near zero frequency (from direct current to several hundred KHz).
The beneficial effect of above-mentioned scheme: the transmitting terminal sends a preset detection signal to the receiving terminal through the communication channel, the signal received by the receiving terminal is used as a first signal to be processed, the first signal to be processed is processed, base band data of the communication channel is calculated based on a processing result, and effective frame information exists in the communication channel or not; the invention can detect the qualified condition of the communication channel in real time and avoid the fault that the information can not be normally sent because the communication channel is unqualified.
Example 5:
based on embodiment 1, the step S103: decrypting the packaged communication message by the master control disk to obtain communication information, and further comprising:
acquiring a sending time sequence of a received encapsulated communication message;
calculating a time sequence difference value between a preset time sequence and a sending time sequence based on a preset decryption key corresponding to the preset time sequence and a corresponding key generation rule, and calculating a logic relationship between the preset decryption key and a message key corresponding to the sending time sequence according to the time sequence difference value and the key generation rule;
calculating the preset decryption key according to the logical relationship to obtain a message key for decrypting the received communication message;
decrypting the received encapsulated communication message by the message key, and outputting a decryption result to obtain communication information;
determining training texts of various types of the communication information according to preset type information;
inputting a plurality of training texts into a neural network model in batches, carrying out one-hot coding extraction on the extracted type training texts by adopting a random mask mode for each type of training texts in each batch to obtain text characteristics of each type of training texts in the current batch, and adjusting the neural network model according to the extracted text characteristics to obtain a classification model;
and inputting the obtained communication information into the classification model, outputting a result as text information in the communication information corresponding to each classification, and setting the text information in the communication information corresponding to each classification as classification information.
In this embodiment, the preset time sequence is a preset time sequence data when a message is sent; the time sequence difference value is the difference between the preset time sequence data when the message is sent and the time sequence data when the encapsulated communication message is sent; the decryption is to decapsulate the encapsulated communication message; the key generation rule is some specific rule information for generating the key; the sending time sequence refers to time sequence data when the encapsulated communication message is sent; the preset type information is classification information of preset communication information; the logical relationship is a one-to-one correspondence relationship from individual to general, or from concrete to abstract, or from major to minor, or from phenomenon to essence, or from reason to result, and the like, according to the inherent logical relationship of things and affairs; the mask is a string of binary codes which carry out bit AND operation on the target field and shields the current input bit; one-hot encoding is the use of an N-bit status register to encode N states, each state having its own independent register bits and only one of which is active at any time;
the beneficial effect of above-mentioned scheme: the decryption key is obtained based on the preset decryption key corresponding to the preset time sequence and the corresponding key generation rule, the communication information is obtained, and the communication information is classified and is convenient to store, check is convenient, and the method has strong practicability.
Example 6:
based on embodiment 1, as shown in fig. 3, the step S103 of obtaining and storing communication information includes:
step S301: reading a hard disk interface of a master control disk, and acquiring use information of the master control disk;
step S302: calculating the transmission speed of the master control disk according to the use information of the master control disk, and judging whether the calculated transmission speed of the master control disk is within a preset transmission speed range;
if the calculated transmission speed of the main control panel is within a preset transmission speed range, judging that the main control panel is in a normal state;
and if the calculated transmission speed of the main control panel is not within the preset transmission speed range, judging that the main control panel is in an abnormal state, and alarming.
In this embodiment, the service time threshold of the master control panel is the service life calculated according to the parameters of the master control panel;
in this embodiment, the use condition of the master control disk, including the number of partitions, the size of the partitions, the rotation speed of the master control disk and the number of sectors of each magnetic track, can be obtained by reading the hard disk interface of the master control disk;
according to the acquired information, the file reading speed of the master control disk can be calculated, and the calculation method comprises the following steps:
calculating the reading time T of a single sector in the master control diskdThe calculation formula is as follows:
Figure BDA0003194779210000111
wherein, R is the rotating speed of the hard disk, and the value is R6200 (rad/s); sigma is an error coefficient of data acquisition, and the value is 0.981; calculated, single sector read time Td=4.75ms。
According to a single sector read time TdCan calculate the file reading speed T of the main control diskzThe calculation formula is as follows:
Figure BDA0003194779210000112
wherein τ is the partition size of the master control disk, and τ is 409 (Byte); s is the number of the partitions of the master control disk, and S is 5; cd is the current reading magnetic track, and Cd is 90; cd [ Cd ]1、Cd2、Cd3、Cd4、Cd5Queue of tracks waiting to read, and Cd1=70、Cd2=60、Cd3=50、Cd4=40、Cd5130; ts is the seek time of the main control disk, and the value is ts is 2 ms; the file reading speed T of the master control disk can be obtained through calculationz=1.53(MB/s)。
The beneficial effect of above-mentioned scheme: reading a hard disk interface of a master control disk, acquiring use information of the master control disk, calculating the file reading speed of the master control disk according to the acquired information, judging whether the calculated result is in a preset range, and if not, giving an alarm, calculating the condition that the file reading speed of the master control disk is abnormal, so as to avoid the master control disk from being out of order to influence work.
Example 7:
based on embodiment 1, the step S102: encapsulating the communication message, further comprising:
acquiring a communication message to be packaged, carrying out full-text analysis on the communication message, and analyzing the central content of the communication message;
setting the part corresponding to the central content as an untransformable part, extracting the message content of the unchangeable part to obtain first original content, taking the content except the untransformable part in the communication message as a transformable part, extracting the message content of the transformable part, and generating second original content;
compressing the first original content to generate a first compressed content, and generating a first decompression code according to the corresponding relation between the first original content and the compressed content;
compressing the second original content according to a preset compression dictionary to generate second compressed content;
encrypting the first compressed content and the second compressed content to obtain a packaged communication message;
acquiring the position information of the first original content and the second original content according to the communication message to be encapsulated to obtain text position information;
and sending the encapsulated communication message, the first decompression code and the text position information to the receiving end from the transmitting end.
In this embodiment, the compression dictionary is a dictionary recording compression correspondence of commonly used words; the central content is the main expression information of the communication message; the part corresponding to the central content is information directly expressing the central content in the communication message; the non-transformable part is a part which can directly express the main expression information of the communication message; the first original content is the character content of the extracted untransformable part; the message content of the convertible part is not the content of the main expression information part of the communication message; the second original content is the extracted character content of the convertible part; the first decompression code is a decompression code for decompressing the first original content; the second decompression code is a decompression code for decompressing the second original content;
the beneficial effect of above-mentioned scheme: the method can analyze the central content of the communication message, split the central content part and the non-central content part, compress the central content part and generate a decompression code according to the corresponding relation, compress the non-central content part according to the compression dictionary, and package and send the compressed content.
Example 8:
based on embodiment 6, the reading the hard disk interface of the master control disk to obtain the use information of the master control disk further includes:
detecting a main control panel according to a preset scanning algorithm, detecting whether a hard disk bad track exists in the main control panel, and if so, setting the detected bad track as a first bad track;
sending a preset file from a service disk to a master control disk, acquiring the difference between the service disk and the file in the master control disk and the original file, and determining second bad track information in the master control disk according to the corresponding difference position;
recording the first bad track information and the second bad track information into a database to generate a bad track list;
carrying out mirror image copying on the content at the corresponding position of the bad track in the bad track list, wherein a copied content storage area is a part without the bad track in the master control disk;
obtaining bad track information in the bad track list, generating a mapping relation between a bad track part and a no-bad track part in the main control panel according to a difference relation between the bad track file and an original file, and generating a bad track repairing logic according to the mapping relation;
based on the obtained bad track repairing logic, sequentially repairing the lists in the bad track list;
detecting the main control panel based on a preset scanning algorithm, and judging whether a hard disk bad track exists in the repaired main control panel;
if yes, preprocessing the detected bad track;
if the content does not exist, formatting the repaired part, and moving the mirror image copied content to the formatted master control disk.
In this embodiment, the bad track of the hard disk is a fatal failure of the hard disk; the first bad track is a bad track detected according to a scanning algorithm; the second bad track is a bad track obtained by storing a preset file in a main control panel and analyzing the difference between the original information of the preset file and the information stored in the main control panel; the bad track list is used for recording the detected bad track information; the mapping relation is the influence relation of the bad track on the file; the repair logic is a repair method for the bad track; the pretreatment is the same treatment method as the repair of the bad track.
The beneficial effect of above-mentioned scheme: the method can detect the main control panel according to a preset scanning algorithm to obtain a first bad track, send a preset file to the main control panel from the service panel, obtain a second bad track according to the difference between the file in the service panel and the main control panel and the original file, record the obtained bad track into a bad track list, sequentially process the bad tracks in the bad track list to obtain the repair logic of each bad track, and repair the bad tracks.
Example 9:
based on embodiment 5, as shown in fig. 4, the outputting the decryption result to obtain the communication information further includes:
step S401: decompressing the decrypted message according to a preset compression dictionary and the received first decompression code;
step S402: obtaining original position information of the message text according to the text position information, and sequencing the decompressed messages according to the original position information of the message text;
step S403: and outputting the sequenced result to obtain the communication information.
In the embodiment, the text position information records the text position information before the communication message is split; the ordering is to arrange the decompressed information into a correct order according to the text position information recorded before the communication message is split;
the beneficial effect of above-mentioned scheme: the invention can decompress the decrypted message according to the preset compression dictionary and the received first decompression code, and sequence the decompressed message, thereby ensuring that the finally obtained communication information is consistent with the original message information.
Example 10:
as shown in fig. 5, a communication system between single disks in a device includes:
the channel establishing module is used for establishing a communication channel in the service disk and performing communication connection with the master control disk;
the channel detection module is used for detecting the communication channel and packaging the communication message after determining that the communication channel can be normally used;
and the information sending module is used for sending the packaged communication message to a master control disk through a communication channel by the service disk, decrypting the packaged communication message by the master control disk to obtain the communication information and storing the communication information.
The beneficial effect of above-mentioned scheme: the invention can establish a communication channel between the service disk and the main control disk according to the channel establishing module, detect the channel, encapsulate the message according to a uniform communication protocol after determining that the channel can be normally used, and send the encapsulated message by establishing the communication channel, thereby avoiding the message sending need to respectively adjust the message to be sent according to different communication modes.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for communication between single disks in a device is characterized by comprising the following steps:
step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk;
step S102: detecting the communication channel, and packaging the communication message after determining that the communication channel can be normally used;
step S103: and sending the packaged communication message from the service disk to a master control disk through a communication channel, decrypting the packaged communication message by the master control disk to obtain communication information, and storing the communication information.
2. The method as claimed in claim 1, wherein the service disk has a transmitting end, the host disk has a receiving end, and a communication channel between the service disk and the host disk is established based on the transmitting end and the receiving end.
3. The method for communication between single disks inside a device according to claim 1, wherein said step S101: establishing a communication channel in the service disk, and performing communication connection with the master control disk, wherein the communication channel comprises:
step S201: sending a first connection request carrying proposal information to a receiving end by a transmitting end through a server;
step S202: a receiving end acquires a first communication proposal from proposal information carried by a received connection request, analyzes the first communication proposal and judges whether the first communication proposal is reasonable or not;
if the first communication protocol is reasonable, receiving a first connection request sent by the transmitting terminal;
if the first communication protocol is unreasonable, the receiving end corrects an unreasonable part in the first communication protocol to generate a second communication protocol, and the second communication protocol is fed back to the transmitting end;
step S203: the transmitting end analyzes the second communication protocol and judges whether the second communication protocol is reasonable or not;
if the connection is reasonable, a second connection request is sent to the receiving end;
if the number is not reasonable, a third communication protocol is generated and sent to the receiving end;
and repeating the steps S201 to S203 until a receiving end receives the connection request to construct a communication channel and realize the communication connection between the service disk and the master control disk.
4. The method for communication between single disks inside a device according to claim 1, wherein said step S102: detecting the communication channel, further comprising:
the transmitting end sends a preset detection signal to the receiving end through a communication channel, and the signal received by the receiving end is used as a first signal to be processed;
carrying out carrier phase estimation on the first signal to be processed to obtain a corresponding instantaneous carrier phase signal, carrying out filtering processing on the instantaneous carrier phase signal, and eliminating a noise signal therein to obtain a first instantaneous carrier phase signal;
generating a delay value based on the carrier phase estimation and the delay of the first instantaneous carrier phase signal relative to the instantaneous carrier phase signal, and performing delay processing on the received first signal to be processed based on the delay value to obtain a first detection signal;
obtaining a demodulation signal based on the first detection signal and the first instantaneous carrier phase signal, and obtaining baseband data of the communication channel according to the demodulation signal;
judging whether effective frame information exists in the communication channel or not according to the baseband data;
if yes, performing secondary demodulation on the demodulation signal;
if not, the communication channel is judged to be qualified.
5. The method for communication between single disks inside a device according to claim 1, wherein said step S103: decrypting the packaged communication message by the master control disk to obtain communication information, and further comprising:
acquiring a sending time sequence of a received encapsulated communication message;
calculating a time sequence difference value between a preset time sequence and a sending time sequence based on a preset decryption key corresponding to the preset time sequence and a corresponding key generation rule, and calculating a logic relationship between the preset decryption key and a message key corresponding to the sending time sequence according to the time sequence difference value and the key generation rule;
calculating the preset decryption key according to the logical relationship, and obtaining a message key for decrypting the received communication message according to the logical relationship;
decrypting the received encapsulated communication message by the message key, and outputting a decryption result to obtain communication information;
determining training texts of various types of the communication information according to preset type information;
inputting a plurality of training texts into a neural network model in batches, carrying out one-hot coding extraction on the extracted type training texts by adopting a random mask mode for each type of training texts in each batch to obtain text characteristics of each type of training texts in the current batch, and adjusting the neural network model according to the extracted text characteristics to obtain a classification model;
and inputting the obtained communication information into the classification model, outputting a result as text information in the communication information corresponding to each classification, and setting the text information in the communication information corresponding to each classification as classification information.
6. The method according to claim 1, wherein the step S103 of obtaining and storing the communication information comprises:
reading a hard disk interface of a master control disk, and acquiring use information of the master control disk;
calculating the transmission speed of the master control disk according to the use information of the master control disk, and judging whether the calculated transmission speed of the master control disk is within a preset transmission speed range;
if the calculated transmission speed of the main control panel is within a preset transmission speed range, judging that the main control panel is in a normal state;
and if the calculated transmission speed of the main control panel is not within the preset transmission speed range, judging that the main control panel is in an abnormal state, and alarming.
7. The method for communication between single disks inside a device according to claim 1, wherein said step S102: encapsulating the communication message, further comprising:
acquiring a communication message to be packaged, carrying out full-text analysis on the communication message, and analyzing the central content of the communication message;
setting the part corresponding to the central content as an untransformable part, extracting the message content of the unchangeable part to obtain first original content, taking the content except the untransformable part in the communication message as a transformable part, extracting the message content of the transformable part, and generating second original content;
compressing the first original content to generate a first compressed content, and generating a first decompression code according to the corresponding relation between the first original content and the compressed content;
compressing the second original content according to a preset compression dictionary to generate second compressed content;
encrypting the first compressed content and the second compressed content to obtain a packaged communication message;
acquiring the position information of the first original content and the second original content according to the communication message to be encapsulated to obtain text position information;
and sending the encapsulated communication message, the first decompression code, the second decompression code and the text position information to the receiving end from the transmitting end.
8. The method according to claim 6, wherein reading the hard disk interface of the master disk to obtain the use information of the master disk, further comprises:
detecting a main control panel according to a preset scanning algorithm, detecting whether a hard disk bad track exists in the main control panel, and if so, setting the detected bad track as a first bad track;
sending a preset file from a service disk to a master control disk, acquiring the difference between the service disk and the file in the master control disk and the original file, and determining a second bad track in the master control disk according to the corresponding difference position;
recording the first bad track information and the second bad track information into a database to generate a bad track list;
carrying out mirror image copying on the content at the corresponding position of the bad track in the bad track list, wherein a copied content storage area is a part without the bad track in the master control disk;
obtaining bad track information in the bad track list, generating a mapping relation between a bad track part and a no-bad track part in the main control panel according to a difference relation between the bad track file and an original file, and generating a bad track repairing logic according to the mapping relation;
based on the obtained bad track repairing logic, sequentially repairing the lists in the bad track list;
detecting the main control panel based on a preset scanning algorithm, and judging whether a hard disk bad track exists in the repaired main control panel;
if yes, preprocessing the detected bad track;
if the content does not exist, formatting the repaired part, and moving the mirror image copied content to the formatted master control disk.
9. The method according to claim 5, wherein the decrypting result is output to obtain the communication information, further comprising:
decompressing the decrypted message according to a preset compression dictionary and the received first decompression code;
obtaining original position information of the message text according to the text position information, and sequencing the decompressed messages according to the original position information of the message text;
and outputting the sequenced result to obtain the communication information.
10. A system for communication between individual disks within a device, comprising:
the channel establishing module is used for establishing a communication channel in the service disk and performing communication connection with the master control disk;
the channel detection module is used for detecting the communication channel and packaging the communication message after determining that the communication channel can be normally used;
and the information sending module is used for sending the packaged communication message to a master control disk through a communication channel by the service disk, decrypting the packaged communication message by the master control disk to obtain the communication information and storing the communication information.
CN202110887638.1A 2021-08-03 2021-08-03 Communication method and system between single disks in equipment Pending CN113556404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110887638.1A CN113556404A (en) 2021-08-03 2021-08-03 Communication method and system between single disks in equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110887638.1A CN113556404A (en) 2021-08-03 2021-08-03 Communication method and system between single disks in equipment

Publications (1)

Publication Number Publication Date
CN113556404A true CN113556404A (en) 2021-10-26

Family

ID=78133643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110887638.1A Pending CN113556404A (en) 2021-08-03 2021-08-03 Communication method and system between single disks in equipment

Country Status (1)

Country Link
CN (1) CN113556404A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263717A (en) * 2010-05-26 2011-11-30 北京创毅视讯科技有限公司 Signal demodulating equipment and signal demodulating method
CN103400602A (en) * 2013-07-24 2013-11-20 大唐移动通信设备有限公司 Automatic hard disk bad track repairing method and equipment
CN103731332A (en) * 2012-10-12 2014-04-16 上海斐讯数据通信技术有限公司 Master-slave communication method and OLT system
CN104283777A (en) * 2013-07-03 2015-01-14 华为技术有限公司 Message compression method and device
CN104811381A (en) * 2015-04-30 2015-07-29 瑞斯康达科技发展股份有限公司 Label-based data transmission method and label-based data transmission equipment under distributed environment
CN204667882U (en) * 2015-05-14 2015-09-23 宇帷国际股份有限公司 Solid state hard disc
CN105227418A (en) * 2014-05-29 2016-01-06 华为技术有限公司 Data channel establishing method and communication equipment
CN106452743A (en) * 2016-09-26 2017-02-22 深圳市紫光同创电子有限公司 Communication secret key acquisition method and apparatus and a communication message decryption method and apparatus
CN106817200A (en) * 2017-02-09 2017-06-09 武汉米风通信技术有限公司 Dynamic signal detection method based on multichannel communication reception system
CN108228090A (en) * 2016-12-22 2018-06-29 财团法人工业技术研究院 Hard disk array and its method for reconstructing
CN109245985A (en) * 2018-08-24 2019-01-18 烽火通信科技股份有限公司 Communication means and system between a kind of single-deck of equipment inside
CN111045871A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Hard disk bad track detection method and system
CN111159397A (en) * 2019-12-04 2020-05-15 支付宝(杭州)信息技术有限公司 Text classification method and device and server
CN112506744A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Method, device and equipment for monitoring running state of NVMe hard disk
CN112686021A (en) * 2021-01-04 2021-04-20 北京小米松果电子有限公司 Text feature extraction method, text feature extraction device, and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263717A (en) * 2010-05-26 2011-11-30 北京创毅视讯科技有限公司 Signal demodulating equipment and signal demodulating method
CN103731332A (en) * 2012-10-12 2014-04-16 上海斐讯数据通信技术有限公司 Master-slave communication method and OLT system
CN104283777A (en) * 2013-07-03 2015-01-14 华为技术有限公司 Message compression method and device
CN103400602A (en) * 2013-07-24 2013-11-20 大唐移动通信设备有限公司 Automatic hard disk bad track repairing method and equipment
CN105227418A (en) * 2014-05-29 2016-01-06 华为技术有限公司 Data channel establishing method and communication equipment
CN104811381A (en) * 2015-04-30 2015-07-29 瑞斯康达科技发展股份有限公司 Label-based data transmission method and label-based data transmission equipment under distributed environment
CN204667882U (en) * 2015-05-14 2015-09-23 宇帷国际股份有限公司 Solid state hard disc
CN106452743A (en) * 2016-09-26 2017-02-22 深圳市紫光同创电子有限公司 Communication secret key acquisition method and apparatus and a communication message decryption method and apparatus
CN108228090A (en) * 2016-12-22 2018-06-29 财团法人工业技术研究院 Hard disk array and its method for reconstructing
CN106817200A (en) * 2017-02-09 2017-06-09 武汉米风通信技术有限公司 Dynamic signal detection method based on multichannel communication reception system
CN109245985A (en) * 2018-08-24 2019-01-18 烽火通信科技股份有限公司 Communication means and system between a kind of single-deck of equipment inside
CN111045871A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Hard disk bad track detection method and system
CN111159397A (en) * 2019-12-04 2020-05-15 支付宝(杭州)信息技术有限公司 Text classification method and device and server
CN112506744A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Method, device and equipment for monitoring running state of NVMe hard disk
CN112686021A (en) * 2021-01-04 2021-04-20 北京小米松果电子有限公司 Text feature extraction method, text feature extraction device, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任爱华等: "《操作系统实用教程(第三版)》", 31 December 2010 *

Similar Documents

Publication Publication Date Title
CN103250395B (en) Asynchronous virtual machine clone method and device
US5303237A (en) Frame relay system capable of handling both voice and data frames
US11023412B2 (en) RDMA data sending and receiving methods, electronic device, and readable storage medium
JP2014064279A (en) Generation and delivery of multimedia content-adaptation notification
US7710892B2 (en) Smart match search method for captured data frames
CN105765941A (en) Illegal access server prevention method and device
CN111523782B (en) Industrial control asset management method, device, equipment and storage medium
CN110489322B (en) MOCK testing method, device, computer equipment and storage medium
CN113556404A (en) Communication method and system between single disks in equipment
US6446235B1 (en) Cumulative error detecting code
CN116828087B (en) Information security system based on block chain connection
CN114726893B (en) Internet of things application layer access method and system capable of supporting multiple underlying bearer protocols
CN102111401B (en) Protocol recognition method and device as well as equipment
CN101212480A (en) Method and apparatus for communication between universal serial bus (USB) host and USB device
CN113763596B (en) Airborne heterogeneous network data recording method
Wang et al. A classifier method for detection of covert channels over lte
JP2023019091A (en) Communication analysis system, communication analysis method, and computer program
CN116189706A (en) Data transmission method, device, electronic equipment and computer readable storage medium
CN115203096B (en) Method for realizing SIM card zooming
CN111740817A (en) Code tampering detection method and system for concentrator in electric power data acquisition system
CN108197456B (en) Equipment data caching method and device
EP0512882B1 (en) Method and device for detection and control of digital message templates transmitted to a reception device
JP3516998B2 (en) Address information reading device
US5878114A (en) Electronic switching system capable of analyzing charge data automatically
CN110517045A (en) Block chain data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211026