CN109245985B - 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
CN109245985B
CN109245985B CN201810973731.2A CN201810973731A CN109245985B CN 109245985 B CN109245985 B CN 109245985B CN 201810973731 A CN201810973731 A CN 201810973731A CN 109245985 B CN109245985 B CN 109245985B
Authority
CN
China
Prior art keywords
message
disk
service
length
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.)
Active
Application number
CN201810973731.2A
Other languages
Chinese (zh)
Other versions
CN109245985A (en
Inventor
梁凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810973731.2A priority Critical patent/CN109245985B/en
Publication of CN109245985A publication Critical patent/CN109245985A/en
Application granted granted Critical
Publication of CN109245985B publication Critical patent/CN109245985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/166IP fragmentation; TCP segmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a method and a system for communication between single disks in equipment, wherein the method comprises the following steps: the service disk establishes a communication channel between the master control disk and the service disk; the message sending single disk acquires a message between a master control disk and a service disk, and encapsulates the message according to a preset encapsulation protocol, wherein the message sending single disk is the master control disk or the service disk; and the message sending single disk sends the packaged message through the communication channel. The invention encapsulates the message according to the uniform communication protocol, and sends the encapsulated message by establishing the communication channel, thereby avoiding the condition that a message sending single disk needs to respectively adjust the message to be sent according to different communication modes.

Description

Communication method and system between single disks in equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method and system for communication between single disks in a device.
Background
At present, various products are applied to FTTB/FTTC and MSAN networking, and services such as broadband access, VOIP, IPTV and the like are provided. The method comprises the following steps that a part of products adopt a plug-in card type design, interfaces such as ADSL, VDSL, Ethernet, PSTN and the like are provided on a user side through different service discs, and a user terminal is connected to realize the access of user data and voice services; a PON or ethernet interface is provided on the network side, and is connected to an upstream OLT (Optical Line Terminal) or a switch device, so as to implement convergence and uplink of services. The card-inserting design can meet the flexible expansion of access capacity and the mixed access of multiple services.
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 panel and the service panel are communicated through a back panel bus, a plurality of single panels (including the master control panel, the service panel, the power panel and the like) are inserted into a common machine frame and are connected through a back panel circuit on the machine frame, and the back panel provides a common channel for signal transmission (including control signals and data signals) between the single panels.
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 aims to provide a method and a system for communication between single disks in equipment, which are used for realizing message encapsulation according to a unified communication protocol and sending the encapsulated message by establishing a communication channel, so that the condition that the message to be sent needs to be respectively adjusted by a message sending single disk according to different communication modes is avoided.
The technical scheme provided by the invention is as follows:
the invention provides a communication method between single disks in equipment, which is characterized by comprising the following steps: the service disk establishes a communication channel between the master control disk and the service disk; the message sending single disk acquires a message between a master control disk and a service disk, and encapsulates the message according to a preset encapsulation protocol, wherein the message sending single disk is the master control disk or the service disk; and the message sending single disk sends the packaged message through the communication channel.
Further, the establishing, by the service disk, a communication channel between the master control disk and the service disk specifically includes: the service disk sends a registration request message to the master control disk; after receiving the registration request message, the master control disk sends a registration response message to the service disk, wherein the registration response message contains a communication address allocated to the service disk by the master control disk; after receiving the registration response message, the service disk checks the registration response message and establishes a communication channel according to the communication address; if the communication channel is successfully established, the service disk sends a registration response success message to the main control disk, and the main control disk records the successful registration of the service disk after receiving the registration response success message; and when the registration response message is wrong or the communication channel is failed to be established, the service disk sends a registration response failure message to the main control disk, and the main control disk resends the registration response message to the service disk after receiving the registration response failure message until the communication channel is successfully established.
Further, the method for communication between single disks in the device further includes: after the service disk sends the registration request message, if the service disk does not receive the registration response message for a first preset time, the service disk sends the registration request message again; after the master control disk sends the registration response message, if the master control disk does not receive the registration confirmation message for a second preset time, the master control disk sends the registration response message again, and the registration confirmation message is the registration response success message or the registration response failure message.
Further, the encapsulated message includes a preset header and a payload with a certain length, and the header includes single disc information and payload information.
Further, the message sending single disk obtains a message between the master control disk and the service disk, and encapsulates the message according to a preset encapsulation protocol, wherein the message sending single disk specifically includes: a message sending single disk acquires a message between a master control disk and a service disk, and judges whether the length of the message is greater than a preset length, wherein the preset length is the maximum transmission unit size of the message transmitted by the communication channel; if the message length is less than or equal to the preset length, updating a compression mark and payload information contained in a header; if the message length is larger than the preset length, compressing the data of the payload, and updating the compression mark and the payload information contained in the header.
Further, if the length of the packet is greater than the preset length, compressing the data of the payload, and updating the compression flag and the payload information included in the header specifically includes: if the message length is larger than the preset length, compressing the data of the payload, and judging whether the compressed message length is larger than the preset length; when the length of the compressed message is larger than the preset length, the compressed payload data is segmented into two or more segmented payload data according to a preset rule, the segmentation information and the payload information contained in the header are updated, the preset rule is that the payload data with the length of the difference between the preset length and the header length is segmented preferentially, the sum of the lengths of all the segmented payload data is equal to the length of the payload data before the segmentation, and the length of at most one segmented message is smaller than the preset length.
Further, after the message sending single disk sends the encapsulated message through the communication channel, the method further includes: the message receiving single disk receives the packaged message, when the compression mark shows that the message is compressed data, decompression processing is carried out on the received message, and when the message sending single disk is a master control disk, the message receiving single disk is a service disk; and when the message sending single disk is a service disk, the message receiving single disk is a master control disk.
The invention also provides a communication system between the single disks in the equipment, which is characterized by comprising a service disk, a master control disk and a message sending single disk, wherein the message sending single disk is the master control disk or the service disk: the service disk specifically comprises: the service disk communication module is used for establishing a communication channel between the master control disk and the service disk; the message sending single disc specifically comprises: the packaging module is used for acquiring a message between the master control disk and the service disk and packaging the message according to a preset packaging protocol; and the sending module sends the packaged message packaged by the packaging module through the communication channel.
Further, the communication system between the single disks in the device further includes a master disk: the service disk further comprises: the service disk registration module sends a registration request message to the master control disk; the master control panel specifically includes: the master control disk registration module is used for sending a registration response message to the service disk after receiving the registration request message; the service disk further comprises: the service disk communication module checks the registration response message after receiving the registration response message, establishes a communication channel according to the communication address, and sends a registration response success message to the master control disk when the communication channel is established successfully; the master control panel further comprises: and the master control disc registration module records the successful registration of the service disc after receiving the registration response success message.
Further, the encapsulation module specifically includes: the packaging unit is used for acquiring a message between a master control disk and a service disk and packaging the message, wherein the packaged message comprises a header and a payload with a preset certain length, and the header comprises single disk information and payload information; a compression unit, configured to compress the data of the payload and update a compression flag and payload information included in a header when the length of the encapsulated packet is greater than a preset length, where the preset length is a maximum transmission unit size of a transmission packet of the communication channel; and a fragmentation unit, when the length of the compressed message is greater than a preset length, fragmenting the compressed payload data into two or more fragmented payload data according to a preset rule, updating fragmentation information and payload information contained in a header, wherein the preset rule is to preferentially fragment payload data with the length of the difference between the preset length and the header length, the sum of the lengths of all fragmented payload data is equal to the length of the payload data before fragmentation, and the length of at most one fragmented communication message is less than the preset length.
The method and the system for communication between the single disks in the equipment can bring at least one of the following beneficial effects:
1. in the invention, the message is encapsulated according to a uniform communication protocol, and the encapsulated message is sent by establishing a communication channel, so that the condition that a message sending single disk needs to respectively adjust the message to be sent according to different communication modes is avoided.
2. In the invention, the message is encapsulated according to a uniform communication protocol, and the encapsulated message is sent by establishing a communication channel, which means that the management module and the service configuration module are shielded from the bottom-layer details (communication mode, communication bus type and the like) of the communication between the single disks, thereby reducing the design difficulty of the management module and the service configuration module.
3. In the invention, when the service disk type or the communication bus type is newly added, only the communication module is required to be modified to establish the communication channel, and the expansion is easy.
Drawings
The above features, technical features, advantages and implementations of a method and system for communication between single disks within a device will be further described in the following detailed description of preferred embodiments in a clearly understandable manner with reference to the accompanying drawings.
FIG. 1 is a flow chart of a first embodiment of a method for communication between single disks within a device according to the present invention;
FIG. 2 is a flow chart of a second embodiment of a method for inter-device single disk communication according to the present invention;
FIG. 3 is a flow chart of the registration between the service disk and the master control disk according to the present invention;
FIG. 4 is a flow chart of a third embodiment of a method for communication between single disks within a device according to the present invention;
FIG. 5 is a schematic diagram of a communication packet before and after compression according to the present invention;
FIG. 6 is a schematic diagram of a communication packet before and after fragmentation in accordance with the present invention;
FIG. 7 is a flow chart of a fourth embodiment of a method for communication between single disks within a device according to the present invention;
fig. 8 and 9 are schematic structural diagrams of a fifth embodiment of a communication system between single disks in a device according to the present invention;
FIG. 9 is a schematic structural diagram of a sixth embodiment of a communication system between single disks inside an apparatus according to the present invention;
fig. 10 is a schematic structural diagram of a seventh embodiment of the communication system between single disks in the device of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
A first embodiment of the present invention, as shown in fig. 1, is a method for communication between single disks in a device, including:
s100, the service disk establishes a communication channel between the master control disk and the service disk;
s200, acquiring a message between a master control disk and a service disk by a message sending single disk, and packaging the message according to a preset packaging protocol, wherein the message sending single disk is the master control disk or the service disk;
s300, the message sending single disk sends the packaged message through a communication channel.
Specifically, in this embodiment, the master control disk and the service disk both include communication modules, the service disk establishes a communication channel through the communication modules of the master control disk and the service disk, and all different types of service disks adopting different communication modes establish communication channels with the master control disk, and no matter whether the master control disk or the service disk sends a communication message, the message is encapsulated according to a unified communication protocol and then transmitted through the communication channel, so that it is avoided that messages to be sent need to be respectively adjusted according to different types of service disks, different communication modes, and the like, and bottom layer details of communication between the single disks can be shielded to the management module and the service configuration module by the above means, so that the design difficulty of the management module and the service configuration module is reduced, and when a service disk type or a communication bus type is newly added, only the communication module needs to be modified to establish a communication.
A second embodiment of the present invention is an optimized embodiment of the first embodiment, as shown in fig. 2, compared with the first embodiment, the main improvement of this embodiment is that the establishment of the communication channel between the master control disk and the service disk by the service disk specifically includes:
s110, the service disk sends a registration request message to the master control disk; after receiving the registration request message, the master control disk sends a registration response message to the service disk, wherein the registration response message contains a communication address allocated to the service disk by the master control disk;
s120, after receiving the registration response message, the service disk checks the registration response message and establishes a communication channel according to the communication address;
s130, if the communication channel is successfully established, the service disk sends a registration response success message to the main control disk, and the main control disk records the successful registration of the service disk after receiving the registration response success message;
s140, when the registration response message is wrong or the communication channel is failed to be established, the service disk sends the registration response failure message to the main control disk, and the main control disk resends the registration response message to the service disk after receiving the registration response failure message until the communication channel is successfully established;
s150, after the service disk sends the registration request message, if the service disk does not receive the registration response message for the first preset time, the service disk sends the registration request message again;
and S160, after the main control panel sends the registration response message, if the main control panel does not receive the registration confirmation message within the second preset time, the main control panel sends the registration response message again, wherein the registration confirmation message is a registration response success message or a registration response failure message.
Specifically, in this embodiment, a communication channel between the single disks is established through a registration mechanism between the service disk and the master control disk, where the communication channel includes selecting a communication mode between the single disks, allocating a communication address (IP), negotiating a communication parameter (e.g., a UDP port number), and the like. The registration process is as shown in fig. 3, after the service disk is powered on or reset, a registration request message is actively sent to the master control disk, and the message carries the slot position number and the disk type information of the service disk; if the single disk first preset duration requesting for registration does not receive the registration response message, retransmitting the request message; after receiving the registration request message, the master control disk sends a registration response message to the service disk request, and the message is accompanied by a communication address (such as an IP address and a UDP/TCP port number) allocated to the service disk; after the master control disk sends the registration response message, if the second preset time length does not receive the registration confirmation message, and the registration confirmation message is a registration response success message or a registration response failure message, retransmitting the response message, wherein the second preset time length and the first preset time length can be the same or different; after the service disk requesting registration receives the registration response message, checking the registration response message, and establishing a communication channel by using a communication address in the message; if the registration response message is wrong or the communication channel is failed to be established, the service disk requesting registration sends a registration response failure message; after receiving the registration response failure message, the master control disk resends the registration response message; if the request for registering the single disk to establish the communication channel is successful, a registration response success message is sent; after receiving the registration response success message, the master control disk records that the single disk registration is successful, at this time, the communication channel between the master control disk and the service disk is successfully established, and then the configuration and query command for the single disk can be executed.
The invention establishes a communication channel between the single disks through a registration mechanism, establishes a uniform communication protocol for the communication between the single disks and standardizes the message transmission process. And in the registration process, the message sent by the single disk is sent again if no reply is received within a certain time, so that the communication channel can be successfully established.
The third embodiment of the present invention is a preferred embodiment of the first embodiment, and as shown in fig. 4, compared with the first embodiment, the present embodiment has the main improvements that,
s210, the packaged message comprises a preset header and a payload with a certain length, wherein the header comprises single disc information and payload information;
s220, the message sending single disk acquires a message between the master control disk and the service disk, and judges whether the message length is greater than a preset length, wherein the preset length is the maximum transmission unit size of the message transmitted by the communication channel;
s230, if the length of the message is less than or equal to the preset length, updating a compression mark and payload information contained in a header;
s240, if the length of the message is larger than the preset length, compressing the data of the payload, and updating the compression mark and the payload information contained in the header;
s241, if the message length is larger than the preset length, compressing the data of the payload, and judging whether the compressed message length is larger than the preset length;
s242, when the length of the compressed message is larger than the preset length, the compressed payload data is fragmented into two or more fragmented payload data according to a preset rule, fragmentation information and payload information contained in the header are updated, the preset rule is that the payload data with the length of the difference between the preset length and the header length is preferentially fragmented, the sum of the lengths of all fragmented payload data is equal to the length of the payload data before fragmentation, and the length of at most one fragmented message is smaller than the preset length.
Specifically, in this embodiment, the communication packet between the single disks is encapsulated by using a unified communication protocol, and the encapsulated communication packet includes 2 portions, namely a Header (Header) and a Payload (Payload). The payload part is the original effective data of the communication message, and may be the configuration data sent by the master control disk to the service disk, or the query result sent by the service disk to the master control disk, and the original effective data of the length message is related and is not a fixed length. The header part is a header specified by a communication protocol, the length of the header part is a fixed length defined by a system or a user, and the header part carries the information of a single disk object and a payload of the communication, the information of the single disk object comprises a protocol version number, a service single disk slot number, a service disk type and a message type, the information of the payload comprises a message payload length, a compression mark, a fragment sequence number, a fragment total number, a payload original length and a session ID, and the type of the information contained in the header and the byte size occupied by a field are defined by the system or the user according to design requirements. The header contains information as shown in table 1:
table 1 header contains information
Figure BDA0001776889140000091
Table 2 the header contains an information description
Figure BDA0001776889140000092
Figure BDA0001776889140000101
The communication bus limits the length of the transmission message, and for the communication message with the length exceeding the preset length, the message payload needs to be compressed, the preset length is the size of the maximum transmission unit of the communication message, and the schematic diagram before and after the compression of the encapsulated message is as shown in fig. 5: wherein, L is payload length PayloadLen, C is compression flag compression, and L' is original payload length PayloadOrgLen. The maximum transmission unit size of the message is m, and the length of the header is fixed to h. The messages A and B are message messages to be compressed, the payload lengths of the messages A and B are a and B respectively before compression, and the payload length, the compression mark and the original payload length in the header are invalid (even if the message A and the message B have values before compression). For the message a, the total length h + a > m needs to be compressed, the length L of the payload in the header of the compressed message a ' is a ', the compression flag in the header is C1, and the length L ' of the original payload is a. For the message B, the total length h + B < m, compression is not needed, the compression module only updates the payload length L in the protocol header to B, the compression flag is set to 0, and the original payload length is invalid.
After the encapsulated message is compressed, if the message is still ultra-long and exceeds the preset length, the message payload is subjected to fragmentation processing. The schematic diagrams before and after message fragmentation are shown in fig. 6: wherein, L is payload length PayloadLen, C is compression flag Compress, L' is original payload length PayloadOrgLen, F is fragmentation flag Frag, N is fragmentation total number FragNum, and S is current fragmentation sequence number FragNo. The message a is a compressed message, and the total length h + a' > m of the message a needs to be fragmented. After fragmentation, the message a is decomposed into a1 and a2, which carry respective header portions, the payload lengths are k1 and k2, respectively, and h + k1 is m, that is, the payload length of the first fragment (including the non-last fragment) is the maximum fragment length minus the header length; k1+ k2 ═ a', i.e., the sum of the lengths of all fragmented payloads equals the length of the payload before fragmentation. In the protocol headers of the messages A1 and A2, the fragmentation flag is set to 1, and the fragmentation sequence number and the payload length are assigned accordingly. The session ids of the messages A, A1 and A2 are equal.
The invention encapsulates the message through the encapsulation protocol, compares and judges the encapsulated message and the maximum transmission unit size of the message in the communication channel, and ensures that the length of all the sent messages does not exceed the maximum transmission unit size through compression and fragmentation means, thereby ensuring the smooth sending of the messages.
A fourth embodiment of the present invention is an optimized embodiment of the first embodiment, as shown in fig. 7, compared with the first embodiment, the major improvement of this embodiment is that after the S300 message sending single disk sends the encapsulated message through the communication channel, the method further includes:
s400, the message receiving single disk receives the packaged message, when the compression mark shows that the message is compressed data, decompression processing is carried out on the received message, wherein when the message sending single disk is a master control disk, the message receiving single disk is a service disk; and when the message sending single disk is the service disk, the message receiving single disk is the master control disk.
Specifically, in this embodiment, the message receiving single disk receives the encapsulated message, first reads the compression flag included in the header, and further reads the fragmentation flag when the compression flag shows that compressed data exists, and if the fragmentation flag shows that fragments exist, reassembles the fragmented message first, and then decompresses the message. And if the fragment mark shows that no fragment exists, directly decompressing the message. When the message sending single disk is the master control disk, the message receiving single disk is the service disk; and when the message sending single disk is the service disk, the message receiving single disk is the master control disk. According to the method and the device, the related information of compression and fragmentation is written in the header of the packaged message, so that the message receiving single disk can logically and clearly process the received message.
A fifth embodiment of the present invention, as shown in fig. 8 and 9, is a communication system between single disks in a device, including a service disk 200, a master disk 300, and a message sending single disk 100, where the message sending single disk 100 is the master disk 300 or the service disk 200:
the service disk 200 specifically includes:
the service disk communication module 220 establishes a communication channel between the master control disk 300 and the service disk 200;
the message sending single disc 100 specifically includes:
the encapsulation module 120 acquires a message between the master control disk 300 and the service disk 200, and encapsulates the message according to a preset encapsulation protocol;
the sending module 130 sends the encapsulated message encapsulated by the encapsulating module 120 through the communication channel of the communication module 110 of the message sending single disc 100.
Specifically, in this embodiment, the single message sending disk 100 may be the master disk 300 or the service disk 200, both the master disk 300 and the service disk 200 have the communication module 110, and are divided into the service disk communication module 220 and the master disk communication module 320, and a communication channel is established through the service disk communication module 220 and the master disk communication module 320. The specific operation modes of the modules in this embodiment have been described in detail in the corresponding method embodiments, and thus are not described in detail again.
A sixth embodiment of the present invention is an optimized embodiment of the fifth embodiment, and as shown in fig. 9, compared with the fifth embodiment, the present embodiment is mainly improved in that the communication system between single disks in the device further includes a master control disk 300:
the service disk 200 further includes:
the service disk registration module 210 sends a registration request message to the master control disk 300;
the master control panel 300 specifically includes:
the master control disk registration module 310, after receiving the registration request message, sends a registration response message to the service disk 200;
the service disk 200 further includes:
the service disk communication module 220, after receiving the registration response message, checks the registration response message, establishes a communication channel according to the communication address, and sends a registration response success message to the master control disk 300 when the communication channel is successfully established;
the master control panel 300 further includes:
the master control disk registration module 310 records that the service disk 200 is successfully registered after receiving the registration response success message.
The specific operation modes of the modules in this embodiment have been described in detail in the corresponding method embodiments, and thus are not described in detail again.
A seventh embodiment of the present invention is an optimized embodiment of the fifth embodiment, and as shown in fig. 10, compared with the fifth embodiment, the present embodiment has the main improvements that the package module 120 specifically includes:
the encapsulating unit 121 is configured to obtain a message between the master control disk 300 and the service disk 200, and encapsulate the message, where the encapsulated message includes a header and a payload with a preset length, and the header includes single disk information and payload information;
a compressing unit 122, configured to compress data of the payload and update a compression flag and payload information included in the header when the length of the encapsulated packet is greater than a preset length, where the preset length is the maximum transmission unit size of a communication channel transmission packet;
and a fragmentation unit 123, when the length of the compressed message is greater than a preset length, fragmenting the compressed payload data into two or more fragmented payload data according to a preset rule, updating fragmentation information and payload information included in the header, where the preset rule is to preferentially fragment payload data of a length corresponding to a difference between the preset length and the header length, the sum of all fragmented payload data lengths is equal to the length of the payload data before fragmentation, and the length of at most one fragmented communication message is less than the preset length.
The specific operation modes of the modules in this embodiment have been described in detail in the corresponding method embodiments, and thus are not described in detail again.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A method for communication between single disks in a device is characterized by comprising the following steps:
the service disk establishes a communication channel between the master control disk and the service disk;
the message sending single disk acquires a message between a master control disk and a service disk, and encapsulates the message according to a preset encapsulation protocol, wherein the message sending single disk is the master control disk or the service disk;
the message sending single disk sends the packaged message through the communication channel;
the service disk establishing a communication channel between the master control disk and the service disk specifically includes:
the service disk sends a registration request message to the master control disk; after receiving the registration request message, the master control disk sends a registration response message to the service disk, wherein the registration response message contains a communication address allocated to the service disk by the master control disk;
after receiving the registration response message, the service disk checks the registration response message and establishes a communication channel according to the communication address;
if the communication channel is successfully established, the service disk sends a registration response success message to the main control disk, and the main control disk records the successful registration of the service disk after receiving the registration response success message;
and when the registration response message is wrong or the communication channel is failed to be established, the service disk sends a registration response failure message to the main control disk, and the main control disk resends the registration response message to the service disk after receiving the registration response failure message until the communication channel is successfully established.
2. The method according to claim 1, further comprising:
after the service disk sends the registration request message, if the service disk does not receive the registration response message for a first preset time, the service disk sends the registration request message again;
after the master control disk sends the registration response message, if the master control disk does not receive the registration confirmation message for a second preset time, the master control disk sends the registration response message again, and the registration confirmation message is the registration response success message or the registration response failure message.
3. The method according to claim 1, wherein the encapsulated packet includes a predetermined header and payload of a certain length, and the header includes single disc information and payload information.
4. The method according to claim 3, wherein the message sending single disk obtains a message between a master control disk and a service disk, and encapsulates the message according to a predetermined encapsulation protocol, wherein the message sending single disk specifically includes:
a message sending single disk acquires a message between a master control disk and a service disk, and judges whether the length of the message is greater than a preset length, wherein the preset length is the maximum transmission unit size of the message transmitted by the communication channel;
if the message length is less than or equal to the preset length, updating a compression mark and payload information contained in a header;
if the message length is larger than the preset length, compressing the data of the payload, and updating the compression mark and the payload information contained in the header.
5. The method according to claim 4, wherein if the length of the packet is greater than a preset length, the data of the payload is compressed, and updating the compression flag and the payload information included in the header specifically includes:
if the message length is larger than the preset length, compressing the data of the payload, and judging whether the compressed message length is larger than the preset length;
when the length of the compressed message is larger than the preset length, the compressed payload data is segmented into two or more segmented payload data according to a preset rule, the segmentation information and the payload information contained in the header are updated, the preset rule is that the payload data with the length of the difference between the preset length and the header length is segmented preferentially, the sum of the lengths of all the segmented payload data is equal to the length of the payload data before the segmentation, and the length of at most one segmented message is smaller than the preset length.
6. The method according to claim 4 or 5, wherein the sending message single disk further comprises, after sending the encapsulated message through the communication channel:
the message receiving single disk receives the packaged message, when the compression mark shows that the message is compressed data, decompression processing is carried out on the received message, and when the message sending single disk is a master control disk, the message receiving single disk is a service disk; and when the message sending single disk is a service disk, the message receiving single disk is a master control disk.
7. A communication system between single disks in equipment is characterized by comprising a service disk, a master control disk and a message sending single disk, wherein the message sending single disk is the master control disk or the service disk:
the service disk specifically comprises:
the service disk communication module is used for establishing a communication channel between the master control disk and the service disk;
the message sending single disc specifically comprises:
the packaging module is used for acquiring a message between the master control disk and the service disk and packaging the message according to a preset packaging protocol;
the sending module sends the packaged message packaged by the packaging module through the communication channel;
the communication system between the single disks in the equipment also comprises a master control disk,
the service disk further comprises:
the service disk registration module sends a registration request message to the master control disk;
the master control panel specifically includes:
the main control panel registration module is used for sending a registration response message to the service panel after receiving the registration request message, wherein the registration response message comprises a communication address allocated to the service panel by the main control panel;
the service disk further comprises:
the service disk communication module checks the registration response message after receiving the registration response message, establishes a communication channel according to the communication address, and sends a registration response success message to the master control disk when the communication channel is established successfully;
the master control panel further comprises:
and the master control disc registration module records the successful registration of the service disc after receiving the registration response success message.
8. The system according to claim 7, wherein the encapsulation module specifically comprises:
the packaging unit is used for acquiring a message between a master control disk and a service disk and packaging the message, wherein the packaged message comprises a header and a payload with a preset certain length, and the header comprises single disk information and payload information;
a compression unit, configured to compress the data of the payload and update a compression flag and payload information included in a header when the length of the encapsulated packet is greater than a preset length, where the preset length is a maximum transmission unit size of a transmission packet of the communication channel;
and a fragmentation unit, when the length of the compressed message is greater than a preset length, fragmenting the compressed payload data into two or more fragmented payload data according to a preset rule, updating fragmentation information and payload information contained in a header, wherein the preset rule is that the payload data with the length of the difference between the preset length and the header length is preferentially fragmented, the sum of the lengths of all fragmented payload data is equal to the length of the payload data before fragmentation, and the length of at most one fragmented communication message is less than the preset length.
CN201810973731.2A 2018-08-24 2018-08-24 Communication method and system between single disks in equipment Active CN109245985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810973731.2A CN109245985B (en) 2018-08-24 2018-08-24 Communication method and system between single disks in equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810973731.2A CN109245985B (en) 2018-08-24 2018-08-24 Communication method and system between single disks in equipment

Publications (2)

Publication Number Publication Date
CN109245985A CN109245985A (en) 2019-01-18
CN109245985B true CN109245985B (en) 2020-12-29

Family

ID=65068236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810973731.2A Active CN109245985B (en) 2018-08-24 2018-08-24 Communication method and system between single disks in equipment

Country Status (1)

Country Link
CN (1) CN109245985B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131932A (en) * 2019-12-04 2020-05-08 广东东研网络科技股份有限公司 Master-slave communication method in OLT system
CN111106963B (en) * 2019-12-25 2022-10-28 瑞斯康达科技发展股份有限公司 Method for realizing circuit simulation service and distributed system
CN113194057B (en) * 2020-01-14 2023-06-27 北京京东振世信息技术有限公司 AS 2-based data receiving, transmitting and interacting method and client
CN113556404A (en) * 2021-08-03 2021-10-26 广东九博科技股份有限公司 Communication method and system between single disks in equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070083321A (en) * 2006-02-21 2007-08-24 주식회사 케이티 Coexistence system to integrate heterogeneous wireless network devices using the same frequency band into one hardware board and its operation method
CN101304336A (en) * 2008-06-26 2008-11-12 烽火通信科技股份有限公司 Method for directly and remotely managing optical network node build-in single disk
CN106850261A (en) * 2016-12-26 2017-06-13 北京华为数字技术有限公司 The network equipment and data transmission method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635661B (en) * 2009-08-14 2011-09-14 烽火通信科技股份有限公司 Switching HDLC bus
CN103731332B (en) * 2012-10-12 2019-07-19 上海斐讯数据通信技术有限公司 Master-slave communication method and OLT system
CN103581063A (en) * 2013-10-15 2014-02-12 瑞斯康达科技发展股份有限公司 Service disk, master control disk, communication method between service disk and master control disk, access equipment and rack-mounted system
CN104283749B (en) * 2014-09-25 2017-12-01 烽火通信科技股份有限公司 Business disk upgrade method based on the half-duplex bus of RS 485
CN104394019B (en) * 2014-12-02 2020-05-19 上海斐讯数据通信技术有限公司 Detection method and system of ONU with repeated MAC address based on rack type OLT system
CN104811381B (en) * 2015-04-30 2018-03-27 瑞斯康达科技发展股份有限公司 Data transmission method and equipment based on label under a kind of distributed environment
CN105553595B (en) * 2015-12-16 2018-06-29 瑞斯康达科技发展股份有限公司 Equipment and its synchronous method in a kind of distributed system
CN107154871B (en) * 2017-04-28 2019-09-17 烽火通信科技股份有限公司 VOIP business master-slave conversion system and method based on distributed DSP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070083321A (en) * 2006-02-21 2007-08-24 주식회사 케이티 Coexistence system to integrate heterogeneous wireless network devices using the same frequency band into one hardware board and its operation method
CN101304336A (en) * 2008-06-26 2008-11-12 烽火通信科技股份有限公司 Method for directly and remotely managing optical network node build-in single disk
CN106850261A (en) * 2016-12-26 2017-06-13 北京华为数字技术有限公司 The network equipment and data transmission method

Also Published As

Publication number Publication date
CN109245985A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109245985B (en) Communication method and system between single disks in equipment
KR100334788B1 (en) Method and apparatus for connecting a node to a wireless network using standard protocols
US6091733A (en) Communication device using communication protocol including transport layer and communication method using communication protocol including transport layer
JP3751823B2 (en) Header compression in real-time services
EP1060598B1 (en) Reduced packet header in wireless communications network
US7720088B2 (en) Method for time division multiplexing data transport
KR100927669B1 (en) A dual proxy approach to tcp performance improvements over a wireless interface
EP1113626B1 (en) Interface link layer device to build a distributed network
US7388884B2 (en) Cable modem system and method for specialized data transfer
MXPA04009799A (en) Rlc for realtime multimedia mobile communication system.
US20090296738A1 (en) Method and apparatus for frame relay
CN101827031A (en) Method and device for packet transmission in user datagram protocol UDP tunnel
WO2011079785A1 (en) Method and apparatus for transmitting data packets
US6229823B1 (en) System and method for the compression of proprietary encapsulations
CN107948217B (en) Switch system and communication method
KR20060083968A (en) Data segregation and fragmentation in a wireless network for improving video performance
EP4106283A1 (en) Time-sensitive transmission of ethernet traffic between endpoint network nodes
KR101086871B1 (en) Method of transmitting ???? ???? data over a wireless link and apparatus implementing the method
CN109462591B (en) Data transmission method, receiving method, device and system
US11985217B2 (en) Network interface apparatus
KR100403301B1 (en) MAC processing equipment applying to POD module of the open cable, method for operating the same and MAC processing method
KR100291021B1 (en) Interprocessor communication method between host digital terminal and optical network unit in optical local distribution loop)
CN117676697A (en) Data transmission method and system of Internet of things equipment
US20100303018A1 (en) Specialized Data Transfer in a Wireless Communication System
US20090207858A1 (en) Transmission method and reception 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
GR01 Patent grant
GR01 Patent grant