CN106713170B - A kind of message fragmenting method and device in the channel VSM - Google Patents

A kind of message fragmenting method and device in the channel VSM Download PDF

Info

Publication number
CN106713170B
CN106713170B CN201611260427.0A CN201611260427A CN106713170B CN 106713170 B CN106713170 B CN 106713170B CN 201611260427 A CN201611260427 A CN 201611260427A CN 106713170 B CN106713170 B CN 106713170B
Authority
CN
China
Prior art keywords
vsm
message
fragment
module
channel
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
CN201611260427.0A
Other languages
Chinese (zh)
Other versions
CN106713170A (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.)
Hangzhou DPtech Information Technology Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201611260427.0A priority Critical patent/CN106713170B/en
Publication of CN106713170A publication Critical patent/CN106713170A/en
Application granted granted Critical
Publication of CN106713170B publication Critical patent/CN106713170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal

Abstract

The application provides the message fragmenting method and device in a kind of channel VSM, the described method includes: the target data for needing to be transferred to the opposite end VSM member device that local terminal VSM member device will be sent in local target service module, is cached in message buffer corresponding with the channel VSM;MTU based on pre-configuration judges whether the target data needs fragment;If the target data needs fragment, fragment is carried out for the target data, and fragment message is sent to the opposite end VSM member device by the channel VSM;It is assembled with being directed to the fragment message corresponding to the target data received by opposite end VSM member device, and will assemble and sent in the obtained target data to its local business module corresponding with the target service module.The problem of present application addresses the independent communication mechanism of each business module is unfavorable for the stability of entire VSM system in the prior art.

Description

A kind of message fragmenting method and device in the channel VSM
Technical field
This application involves field of communication technology, in particular to a kind of the message fragmenting method and device in the channel VSM.
Background technique
VSM (Virtual Switch Matrix, virtual switch matrix) is a kind of the more network equipments to be invented one The new network device virtualization technology of the network equipment.In VSM environment, there are more member devices, between member device Network link is known as the channel VSM, and data message and protocol massages can be transmitted between member device by the channel VSM.Respectively Member device is again multiple business modules according to function distinguishing, and the same class business module of each member device can be in communication with each other, when When data volume is larger, each business module can split data, then send.
In the prior art, each business module carries out fragment processing, each business to interactive information according to self mechanism Module increases the block code for fragment processing, increases the probability of software faults, is unfavorable for the stabilization of entire VSM system Property.
Summary of the invention
In view of this, the application provides the message fragmenting method and device in a kind of channel VSM, for solving the prior art In, the independent communication mechanism of each business module increases the probability of software faults, is unfavorable for the stability of entire VSM system Problem.
Specifically, the application is achieved by the following technical solution:
A kind of message fragmenting method in the channel VSM is applied to local terminal VSM member device;Wherein, the local terminal VSM member Each business module of equipment and opposite end VSM member device is set in the local terminal VSM member device with opposite end VSM member in advance The corresponding channel processing module in the channel VSM between standby completes registration, comprising:
The target data for needing to be transferred to the opposite end VSM member device that will be sent in local target service module, Message buffer corresponding with the channel VSM is cached;
MTU based on pre-configuration judges whether the target data needs fragment;
If the target data needs fragment, fragment is carried out for the target data, and fragment message is passed through into institute It states the channel VSM and is sent to the opposite end VSM member device;Wherein, the fragment message carries the mark of the target service module Know, with by opposite end VSM member device determine the target service module in advance the channel VSM complete register when, for The fragment message corresponding to the target data received is assembled, and will send in the obtained target data of assembling to Its local business module corresponding with the target service module.
In the message fragmenting method in the channel VSM, further includes:
When local terminal VSM member device starting, receive what local each business module was submitted after completing initialization Registration request;
Based on each business module submit registration request, by each business module local terminal VSM member device and opposite end VSM The corresponding channel processing module in the channel VSM between member device completes registration.
In the message fragmenting method in the channel VSM, further includes:
Receive the data message that VSM member device in opposite end is sent;
Determine whether the business module is completed to register in the channel processing module;
If the business module is completed to register in the channel processing module, determine whether the data message is fragment Message if so, the fragment message received is cached in message buffer corresponding with the channel VSM, and is directed to The fragment message of caching is assembled, and will be sent in the data obtained after assembling to local service mould corresponding with the business module Block;
If the data message is not fragment message, will be sent in the data of the data message to the business module Corresponding local service module.
In the message fragmenting method in the channel VSM, further includes:
If the business module is not completed to register in the channel processing module, the datagram received is abandoned Text.
In the message fragmenting method in the channel VSM, further includes:
If the target data does not need fragment, after carrying out message encapsulation to the target data, pass through the VSM Channel is sent to the opposite end member VSM equipment, will be sent in the target data to it by the opposite end VSM member device The business module corresponding with the target service module on ground.
A kind of message fragment device in the channel VSM is applied to local terminal VSM member device;Wherein, the local terminal VSM member Each business module of equipment and opposite end VSM member device is set in the local terminal VSM member device with opposite end VSM member in advance The corresponding channel processing module in the channel VSM between standby completes registration, comprising:
Cache unit, for needing to be transferred to the opposite end VSM member device for what is sent in local target service module Target data, cached in message buffer corresponding with the channel VSM;
Judging unit judges whether the target data needs fragment for the MTU based on pre-configuration;
Transmission unit carries out fragment for the target data, and will divide if needing fragment for the target data Piece message is sent to the opposite end VSM member device by the channel VSM;Wherein, the fragment message carries the target The mark of business module, to determine the target service module in advance in the channel VSM completion by opposite end VSM member device The mesh for when registration, being assembled for the fragment message corresponding to the target data received, and assembling being obtained It is sent in mark data to its local business module corresponding with the target service module.
In the message fragment device in the channel VSM, further includes:
First receiving unit, for receiving local each business module complete when local terminal VSM member device starting At the registration request submitted after initialization;
Registering unit, the registration request for being submitted based on each business module are set each business module in local terminal VSM member The corresponding channel processing module in the standby channel VSM between the VSM member device of opposite end completes registration.
In the message fragment device in the channel VSM, further includes:
Second receiving unit, for receiving the data message of opposite end VSM member device transmission;
Determination unit, for determining the business module whether in channel processing module completion registration;
On send unit, if for the business module the channel processing module complete register, determine the data Whether message is fragment message, if so, by the fragment message received message buffer corresponding with the channel VSM into Row caching, and for caching fragment message assembled, will be sent in the data obtained after assembling to the business module pair The local service module answered;If the data message is not fragment message, by the data of the data message it is above-mentioned to institute State the corresponding local service module of business module.
In the message fragment device in the channel VSM, further includes:
Discarding unit, if not completing to register in the channel processing module for the business module, discarding is received The data message.
In the message fragment device in the channel VSM, further includes:
The transmission unit, if being further used for the target data does not need fragment, to the target data into After the encapsulation of row message, the opposite end VSM member device is sent to by the channel VSM, by the opposite end VSM member device It will be sent in the target data to its local business module corresponding with the target service module.
In the embodiment of the present application, the needs sent in local target service module are transferred to by local terminal VSM member device The target data of opposite end VSM member device, the channel pair VSM between local VSM member device and opposite end VSM member device The message buffer answered is cached;The MTU for being then based on pre-configuration judges whether the target data needs fragment;If It is to carry out fragment for the target data, and fragment message is sent to the opposite end VSM member by the channel VSM Equipment;Wherein, the fragment message carries the mark of the target service module, with by opposite end VSM member device determining Target service module is stated in advance when the channel VSM completes to register, for point for corresponding to the target data received Piece message is assembled, and will be sent in the obtained target data of assembling local corresponding with the target service module to it Business module.Since fragment of the application to message will uniformly be completed by the corresponding channel processing module in the channel VSM, and it is each A business module no longer needs independent progress message fragment processing, therefore can reduce the maintenance difficulties and dimension of each business module Cost is protected, the stability of entire VSM system is conducive to.
Detailed description of the invention
Fig. 1 is a kind of message fragmenting method in channel VSM shown in the application;
Fig. 2 is a kind of flow chart that target data is sent based on the channel VSM shown in the application;
Fig. 3 is a kind of schematic diagram of VSM message format shown in the application;
Fig. 4 is a kind of flow chart based on VSM channel reception target data shown in the application;
Fig. 5 is a kind of frame construction drawing of the message fragment device in channel VSM shown in the application;
Fig. 6 is a kind of hardware structure diagram of the message fragment device in channel VSM shown in the application.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to prior art and the present invention Technical solution in embodiment is described in further detail.
In VSM environment, there are more member devices, the network link between each member device is known as the channel VSM;Respectively at Member's equipment passes through the mutual data message transmission in the channel VSM and protocol massages.It is multiple for being divided by function again on each member device Business module can communicate with each other between the identical services module of each member device, if data volume is larger, business module can incite somebody to action from Body data are split, by the data assembling after fractionation at sending after fragment message.
In the prior art, each business module can carry out fragment processing to interactive information according to self mechanism, increase The block code of each module.Since the treatment mechanism of each business module is different, block code is also different, so that each business mould The code of block complicates, and increases software and the probability of BUG occurs, and then influences the stability of entire VSM system.
To solve the above problems, the technical solution of the embodiment of the present application, corresponding each business module, provide unification VSM communication mechanism effectively simplifies so that the fragment message of each business module channel processing module specified by equipment is handled The code of business module, reduces the probability of software errors, is conducive to the stability of whole system.
It is a kind of flow chart of the message fragmenting method in channel VSM shown in the application, the execution of this method referring to Fig. 1 Main body is local terminal VSM member device;Wherein, each business mould of the local terminal VSM member device and opposite end VSM member device Block, the in advance corresponding channel in the channel VSM between the local terminal VSM member device and opposite end VSM member device processing Module completes registration;It the described method comprises the following steps:
Step 101: the target for needing to be transferred to the opposite end VSM member device that will be sent in local target service module Data are cached in message buffer corresponding with the channel VSM.
Step 102: the MTU based on pre-configuration judges whether the target data needs fragment.
Step 103: if the target data needs fragment, carrying out fragment for the target data, and by fragment report Text is sent to the opposite end VSM member device by the channel VSM;Wherein, the fragment message carries the target service The mark of module, to determine that the target service module in advance register in the channel VSM by completion by opposite end VSM member device When, it is assembled for the fragment message corresponding to the target data received, and the obtained number of targets will be assembled According to above sending to its local business module corresponding with the target service module.
Above-mentioned business module may include the logic module based on software realization carried on VSM member device;For example, It can be the software module for corresponding to a certain function on VSM member device.
Above-mentioned channel processing module, each business module including handling local on VSM member device are set with opposite end VSM member The software module of the data of standby each business module interaction, for needing the data sent to unite local each business module One fragment is simultaneously sent, and is handled each business module is transferred to after the fragment message received assembling.
In the embodiment of the present application, in order to reduce the maintenance difficulties and maintenance cost of each business module, each business module will It is no longer participate in message fragment, but completes to register in the corresponding channel processing module in the channel VSM by being unified in, when needing to right When the transmission of corresponding business module needs the business datum of inter-process on the VSM member device of end, the industry that will can need send Data unique caching be engaged in the message buffer in the channel VSM, unified fragment processing is carried out by the channel processing module in the channel VSM, It is then forwarded to corresponding business module on the VSM member device of opposite end.
In the initial state, when each VSM member device starts, carry out mould that local each business module can synchronize Initialization block, and registration request actively is submitted to equipment when carrying out module initialization, Xiang Tongdao processing module initiates registration.
And each VSM member device is receiving its local each business module in the registration request for completing to submit when initialization Afterwards, the registration request that can be submitted based on each business module, by each business module local terminal VSM member device and opposite end VSM at The corresponding channel processing module in the channel VSM between member's equipment registered, by preconfigured corresponding to each business module Mark, is bound with above-mentioned channel processing module.
Wherein, the mark of the business module on each VSM member device corresponding to same class business is usually all identical.
After completing above-mentioned registration, if the target service module in local terminal VSM member device, need to opposite end VSM at It, then can be by the unified submission of the target data when corresponding business module transmission needs to carry out the target data of inter-process on member To above-mentioned channel processing module, fragment processing is carried out by above-mentioned channel processing module.
It referring to fig. 2, is a kind of flow chart that target data is sent based on the channel VSM shown in the application.
As shown in Fig. 2, target service module complete registration after, can on the VSM member device of opposite end corresponding business mould Block sends data.Target service module can will need the target data sent to be committed to above-mentioned channel processing module, by above-mentioned Channel processing module carries out fragment processing.
In the embodiment of the present application, local terminal VSM member device can the channel VSM between local and opposite end VSM equipment It is pre-configured a message buffer, which needs to be sent to opposite end VSM member device for caching each business module Data, and each business module of caching opposite end VSM member device is sent to the message of local terminal VSM member device.
Above-mentioned channel processing module receives the opposite end VSM member that needs to be transferred to sent in local target service module and sets After standby target data, which can be buffered in above-mentioned message buffer, and in caching to above-mentioned message buffer Afterwards, the message that can star pre-configuration at this time is given out a contract for a project process, and the target data of caching is further processed.
After above-mentioned message gives out a contract for a project flow startup, the MTU (Maximum that the above-mentioned channel VSM is pre-configured can be based upon first Transmission Unit, maximum transmission unit) determine whether the target data needs fragment.
It is a kind of schematic diagram of VSM message format shown in the application referring to Fig. 3;
As shown in figure 3, including purpose MAC, source MAC, protocol type, the peculiar information header of VSM, mould in VSM message format Block type, fragment message mark, fragment message number, check code and each module data section.
Wherein, purpose MAC, source MAC and protocol type field are ether network packet criteria field, and details are not described herein again;
The peculiar information header of VSM can carry information relevant to the channel VSM, for example, the mark of VSM member device;
Module type can carry the mark of business module, and VSM member device will according to the mark in the message received Corresponding business module is sent to handle in the data of message;
Fragment message is identified for recording order of the data of the fragment message in initial data;For example, if this point The data of piece message are located at the 5th position in initial data, then fragment message is identified as 5;
Fragment message number is used to record the split message number separated of initial data;
Fragment message length is used to record the data segment, length of the fragment message;
Whether the data that check code is used to verify each fragment message are split to obtain by the same initial data, same original The check code for each fragment message that data are split is identical;
Each module data section is used to carry the data of each business module interaction.
Due to purpose MAC, source MAC, protocol type, the peculiar information header of VSM, module type, fragment message mark, fragment The length of the fields such as message number, fragment message length and check code is fixed, so, the MTU of pre-configuration subtracts above-mentioned field Length just obtains the maximum length of each module data section.
In the embodiment of the present application, if above-mentioned channel processing module determines that the size of the target data is less than or equal to The maximum length of above-mentioned each module data section, then the target data does not need to split, and can directly report the target data After text encapsulation, opposite end VSM member device is sent to by the above-mentioned channel VSM.The module type of message after encapsulation records The mark of above-mentioned target service module;Since the target data is without fractionation, the fragment message of the message after encapsulation The message number of digital segment record is 1.
If above-mentioned channel processing module determines that the size of the target data is greater than most greatly enhancing for above-mentioned each module data section The target data can then be carried out fragment, and be fragment message by the data assembling after fragment by degree, pass through the above-mentioned channel VSM Successively it is sent to opposite end VSM member device.After the target data is sent completely, transmission flow terminates.
After completing registration in the above-mentioned channel VSM due to each business module, the data sent will be needed to transfer to local terminal VSM member The above-mentioned channel processing module of equipment will be sent by the channel processing module with unified Message processing mechanism after data processing.
It referring to fig. 4, is a kind of flow chart based on VSM channel reception target data shown in the application, still from local terminal VSM The angle of member device is described to process is received.
In the embodiment of the present application, when local terminal VSM member device is set by above-mentioned VSM channel reception to opposite end VSM member When the data message that preparation is sent, it can judge whether the data message comes from opposite end VSM by above-mentioned channel processing module first The business module that the channel processing module registration of member device is completed.
In a kind of embodiment shown, above-mentioned channel processing module can read the module class type-word of the data message Section illustrates the business module for sending the data message and does not complete registration, at this point it is possible to abandon the number if the field is sky According to message.
If module type field has recorded the mark of above-mentioned business module, illustrate the business mould for sending the data message Block has been completed to register, and in this case, above-mentioned channel processing module needs to handle the data message;It can be somebody's turn to do by reading The fragment message digital section of data message further determines that whether the data message is fragment message.
On the one hand, when the fragment message number of fragment message number field record is 1, the data message can be determined not Fragment message, at this point it is possible to by the data of the data message it is direct on send to local service corresponding with above-mentioned business module Module.
On the other hand, when the fragment message number of fragment message number field record is not 1, the datagram can be determined Text is fragment message, and in this case, above-mentioned channel processing module searches this point in the above-mentioned message buffer of pre-configuration Original message node where piece message.Wherein, which has reserved the space of target data.
In a kind of embodiment shown, above-mentioned channel processing module can be searched according to the check code of the fragment message Corresponding original message node.
On the one hand, if the original message node of the check code of the corresponding fragment message can not be found, illustrate before this Not yet receive other fragment messages of the corresponding target data of the fragment message;In this case, above-mentioned channel handles mould Block can create an original message node in message buffer, and the data of the fragment message are then stored in the original message In node, subsequent fragment message is waited.
On the other hand, if finding the original message node of the check code corresponding to the fragment message, illustrate before this Other fragment messages of the corresponding target data of the fragment message have been received;In this case, above-mentioned channel handles mould Block can take out the data segment of the fragment message, carry out with the message data in original message node assembled.It, can after the completion of assembly To determine whether target data has collected according to the fragment message digital section of the fragment message, if fragment message is not received Together, then subsequent fragment message can be waited.
When the fragment message for corresponding to target data collects, target data in original message node it is assembled it is complete after, can Will be sent in the target data to local service mould corresponding with above-mentioned business module according to the mark in module type field Block.At this point it is possible to the above-mentioned original message node in message buffer be deleted, to discharge its space occupied resource.
Above-mentioned channel processing module will be sent in the target data of assembly completion to local service module, and message receives process Terminate.
By above embodiments as it can be seen that the target service module of local terminal VSM member device is after the completion of VSM channel registration, Local terminal VSM member device can will be sent in the target data for needing to be transferred to opposite end VSM member device, VSM member sets by local terminal Standby channel processing module is uniformly processed;Message buffer of the channel processing module by target data in pre-configuration caches, so The MTU based on pre-configuration judges whether the target data needs fragment afterwards, can be right if the target data needs fragment The target data carries out fragment, and is assembled into fragment message and is sent to opposite end VSM member device.
On the one hand, since each business module on local terminal VSM member device is completed in above-mentioned channel processing module in advance Registration, and the fragment message carries the mark of above-mentioned target service module, thus opposite end VSM member device can be according to the mark Know to determine whether above-mentioned target service module is registered to above-mentioned channel processing module, and is determining above-mentioned target service module When being registered to above-mentioned channel processing module, assembled for the fragment message corresponding to above-mentioned target data received, so It will assemble and send in obtained complete above-mentioned target data to its local business module corresponding with above-mentioned target service module afterwards.
On the other hand, it since each business module needs to be transferred to the business datum of opposite end VSM member device, will transfer to above-mentioned Channel processing module carries out unified fragment processing, and each business module on local terminal VSM member device is no longer participate in message fragment, Function code relevant to fragment can be no longer thus needed to configure in each business module, so as to significantly reduce each industry The size of code and BUG probability of happening for module of being engaged in, while advantageously reducing the maintenance difficulties and maintenance cost of each business module.
Corresponding with the embodiment of message fragmenting method in the above-mentioned channel VSM, present invention also provides above-mentioned for executing The embodiment of the device of embodiment of the method.
It is a kind of frame construction drawing of the message fragment device in channel VSM shown in the application referring to Fig. 5:
As shown in figure 5, the message fragment device 50 in the channel VSM includes:
Cache unit 510, for setting the opposite end VSM member that needs to be transferred to sent in local target service module Standby target data is cached in message buffer corresponding with the channel VSM.
Judging unit 520 judges whether the target data needs fragment for the MTU based on pre-configuration.
Transmission unit 530 carries out fragment for the target data if needing fragment for the target data, and Fragment message is sent to the opposite end VSM member device by the channel VSM;Wherein, described in the fragment message carries The mark of target service module, to determine the target service module in advance in the channel VSM by opposite end VSM member device The institute for when completing registration, being assembled for the fragment message corresponding to the target data received, and assembling being obtained It states and is sent in target data to its local business module corresponding with the target service module.
In this example, described device further include:
First receiving unit 540, for receiving local each business module when local terminal VSM member device starting The registration request submitted after completing initialization.
Registering unit 550, the registration request for being submitted based on each business module, by each business module local terminal VSM at The corresponding channel processing module in the channel VSM between member's equipment and the VSM member device of opposite end is completed to register.
In this example, described device further include:
Second receiving unit 560, for receiving the data message of opposite end VSM member device transmission.
Determination unit 570, for determining the business module whether in channel processing module completion registration.
On send unit 580, if for the business module the channel processing module complete register, determine the number It whether is fragment message according to message, if so, by the fragment message received in message buffer corresponding with the channel VSM Cached, and for caching fragment message assembled, will be sent in the data obtained after assembling to the business module Corresponding local service module;If the data message is not fragment message, by the data of the data message it is above-mentioned to The corresponding local service module of the business module.
In this example, described device further include:
Discarding unit 590 is abandoned and is received if not completing to register in the channel processing module for the business module The data message arrived.
In this example, the transmission unit 530, if being further used for the target data does not need fragment, to institute After stating target data progress message encapsulation, the opposite end VSM member device is sent to by the channel VSM, by described right End VSM member device will be sent in the target data to its local business module corresponding with the target service module.
The embodiment of the message fragment device in the channel the application VSM can be applied on local terminal VSM member device.Device is real Applying example can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, make For the device on a logical meaning, being will be in nonvolatile memory by the processor of local terminal VSM member device where it Corresponding computer program instructions are read into memory what operation was formed.For hardware view, as shown in fig. 6, being the application A kind of hardware structure diagram of local terminal VSM member device where the message fragment device in the channel VSM, in addition to processor shown in fig. 6, The usual root of local terminal VSM member device except memory, network interface and nonvolatile memory, in embodiment where device According to the actual functional capability of the message fragment device in the channel VSM, it can also include other hardware, this is repeated no more.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of message fragmenting method in the channel VSM is applied to local terminal VSM member device;Wherein, the local terminal VSM member sets Standby and opposite end VSM member device each business module, in advance in the local terminal VSM member device and opposite end VSM member device Between the corresponding channel processing module in the channel VSM complete registration, which is characterized in that the registration includes will be preconfigured right It should mutually be bound in the mark of each business module with the channel processing module, which comprises
The target data for needing to be transferred to the opposite end VSM member device sent in target service module that will be local, with institute The corresponding message buffer in the channel VSM is stated to be cached;
MTU based on pre-configuration judges whether the target data needs fragment;
If the target data needs fragment, fragment is carried out for the target data, and fragment message is passed through into the VSM Channel is sent to the opposite end VSM member device;Wherein, the fragment message carries the mark of the target service module, with By opposite end VSM member device when determining that the target service module is completed to register in the channel VSM in advance, for receiving The fragment message corresponding to the target data assembled, and will the obtained target data of assembling according to the mark On send to its local business module corresponding with the target service module.
2. the method according to claim 1, wherein the method also includes:
When local terminal VSM member device starting, the registration that local each business module is submitted after completing initialization is received Request;
Based on each business module submit registration request, by each business module local terminal VSM member device and opposite end VSM member The corresponding channel processing module in the channel VSM between equipment completes registration.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Receive the data message that VSM member device in opposite end is sent;
Determine whether the business module is completed to register in the channel processing module;
If the business module is completed to register in the channel processing module, determine whether the data message is fragment report Text, if so, the fragment message received is cached in message buffer corresponding with the channel VSM, and for slow The fragment message deposited is assembled, and will be sent in the data obtained after assembling to local service mould corresponding with the business module Block;
If the data message is not fragment message, will be sent in the data of the data message to corresponding with the business module Local service module.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the business module is not completed to register in the channel processing module, the data message received is abandoned.
5. the method according to claim 1, wherein the method also includes:
If the target data does not need fragment, after carrying out message encapsulation to the target data, pass through the channel VSM It is sent to the opposite end member VSM equipment, will be sent in the target data by the opposite end VSM member device to its local Business module corresponding with the target service module.
6. a kind of message fragment device in the channel VSM is applied to local terminal VSM member device;Wherein, the local terminal VSM member sets Standby and opposite end VSM member device each business module, in advance in the local terminal VSM member device and opposite end VSM member device Between the corresponding channel processing module in the channel VSM complete registration, which is characterized in that the registration includes will be preconfigured right It should mutually be bound with the channel processing module, described device includes: in the mark of each business module
Cache unit, the mesh for needing to be transferred to the opposite end VSM member device for will be sent in local target service module Data are marked, are cached in message buffer corresponding with the channel VSM;
Judging unit judges whether the target data needs fragment for the MTU based on pre-configuration;
Transmission unit carries out fragment for the target data, and by fragment report if needing fragment for the target data Text is sent to the opposite end VSM member device by the channel VSM;Wherein, the fragment message carries the target service The mark of module, to determine that the target service module in advance register in the channel VSM by completion by opposite end VSM member device When, it is assembled for the fragment message corresponding to the target data received, and obtained assembling according to the mark The target data on send to its local business module corresponding with the target service module.
7. device according to claim 6, which is characterized in that described device further include:
First receiving unit is completed just for when local terminal VSM member device starting, receiving local each business module The registration request submitted after beginningization;
Registering unit, the registration request for being submitted based on each business module, by each business module local terminal VSM member device with The corresponding channel processing module in the channel VSM between the VSM member device of opposite end completes registration.
8. device according to claim 7, which is characterized in that described device further include:
Second receiving unit, for receiving the data message of opposite end VSM member device transmission;
Determination unit, for determining the business module whether in channel processing module completion registration;
On send unit, if for the business module the channel processing module complete register, determine the data message It whether is fragment message, if so, the fragment message received is delayed in message buffer corresponding with the channel VSM It deposits, and is assembled for the fragment message of caching, will be sent in the data obtained after assembling to corresponding with the business module Local service module;If the data message is not fragment message, by the data of the data message it is above-mentioned to the industry The corresponding local service module of module of being engaged in.
9. device according to claim 8, which is characterized in that described device further include:
Discarding unit abandons the institute received if not completing to register in the channel processing module for the business module State data message.
10. device according to claim 6, which is characterized in that described device further include:
The transmission unit reports the target data if being further used for the target data does not need fragment After text encapsulation, the opposite end VSM member device is sent to by the channel VSM, with by the opposite end VSM member device by institute It states and is sent in target data to its local business module corresponding with the target service module.
CN201611260427.0A 2016-12-30 2016-12-30 A kind of message fragmenting method and device in the channel VSM Active CN106713170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611260427.0A CN106713170B (en) 2016-12-30 2016-12-30 A kind of message fragmenting method and device in the channel VSM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611260427.0A CN106713170B (en) 2016-12-30 2016-12-30 A kind of message fragmenting method and device in the channel VSM

Publications (2)

Publication Number Publication Date
CN106713170A CN106713170A (en) 2017-05-24
CN106713170B true CN106713170B (en) 2019-09-06

Family

ID=58905678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611260427.0A Active CN106713170B (en) 2016-12-30 2016-12-30 A kind of message fragmenting method and device in the channel VSM

Country Status (1)

Country Link
CN (1) CN106713170B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822646B (en) * 2021-04-19 2021-08-13 中兴通讯股份有限公司 Message processing method and device, electronic equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7844056B1 (en) * 2003-10-01 2010-11-30 Cisco Technology, Inc. Method and apparatus for encapsulating long messages over limited fibre channel extended link service
CN100486225C (en) * 2006-01-24 2009-05-06 华为技术有限公司 Method for reducing data IP fragmentation quantity in PS network
CN101217540A (en) * 2008-01-04 2008-07-09 杭州华三通信技术有限公司 A self-adapting regulation method, device and system of message tunnel slicing
CN102118356A (en) * 2009-12-30 2011-07-06 华为技术有限公司 Message transmission method and transmission device
CN104270255B (en) * 2014-09-05 2018-10-09 烽火通信科技股份有限公司 A kind of inter-node communication system and method based on LINX processes
CN105933232B (en) * 2016-03-29 2018-10-23 东北大学 Support the Multipath Transmission control terminal and method of multi-service data transmission demand

Also Published As

Publication number Publication date
CN106713170A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
US11016911B2 (en) Non-volatile memory express over fabric messages between a host and a target using a burst mode
JP6569020B2 (en) Networking technology
US7103888B1 (en) Split model driver using a push-push messaging protocol over a channel based network
US9003053B2 (en) Message acceleration
CN100552626C (en) With network stack synchronously with upload the method that unloaded network stack is connected
US7577707B2 (en) Method, system, and program for executing data transfer requests
US7831745B1 (en) Scalable direct memory access using validation of host and scatter gather engine (SGE) generation indications
WO2017000593A1 (en) Packet processing method and device
TW200404430A (en) ISCSI driver to adapter interface protocol
US11108671B2 (en) Systems and methods for processing network traffic using dynamic memory
WO2021128927A1 (en) Message processing method and apparatus, storage medium, and electronic apparatus
US10609125B2 (en) Method and system for transmitting communication data
US6898638B2 (en) Method and apparatus for grouping data for transfer according to recipient buffer size
CN111064680B (en) Communication device and data processing method
CN105389120A (en) Supporting RMA API over active message
CN111026324B (en) Updating method and device of forwarding table entry
US9871666B2 (en) Intermediate unicast network and method for multicast data networks
CN106713170B (en) A kind of message fragmenting method and device in the channel VSM
CN112565018B (en) Flow statistical method, device, gateway equipment and storage medium
US8630837B2 (en) Multicast emulation
CN112968919B (en) Data processing method, device, equipment and storage medium
US20050240678A1 (en) Method, system, and program for communicating data transfer requests between data transfer protocols
CN111698274A (en) Data processing method and device
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN114138707A (en) Data transmission system based on FPGA

Legal Events

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

Effective date of registration: 20210621

Address after: 310051 05, room A, 11 floor, Chung Cai mansion, 68 Tong Xing Road, Binjiang District, Hangzhou, Zhejiang.

Patentee after: Hangzhou Dip Information Technology Co.,Ltd.

Address before: 6 / F, Zhongcai building, 68 Tonghe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou DPtech Technologies Co.,Ltd.

TR01 Transfer of patent right