[go: up one dir, main page]

CN102857504B - Network optimized approach and device - Google Patents

Network optimized approach and device Download PDF

Info

Publication number
CN102857504B
CN102857504B CN201210327313.9A CN201210327313A CN102857504B CN 102857504 B CN102857504 B CN 102857504B CN 201210327313 A CN201210327313 A CN 201210327313A CN 102857504 B CN102857504 B CN 102857504B
Authority
CN
China
Prior art keywords
client
service end
smbv2
agreement
bag
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
CN201210327313.9A
Other languages
Chinese (zh)
Other versions
CN102857504A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Network Technology Shenzhen 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 Sangfor Network Technology Shenzhen Co Ltd filed Critical Sangfor Network Technology Shenzhen Co Ltd
Priority to CN201210327313.9A priority Critical patent/CN102857504B/en
Publication of CN102857504A publication Critical patent/CN102857504A/en
Application granted granted Critical
Publication of CN102857504B publication Critical patent/CN102857504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention discloses a kind of network optimized approach, comprising: consult the communication protocol version between client and service end, make client and service end all support SMBv2 agreement; SMBv1 agreement and SMBv2 agreement are changed mutually in client and service end, adopts SMBv2 agreement and service end or other client mutual for client.The present invention also discloses a kind of network optimization device.The communication protocol version of the present invention through consultation between client and service end, client and service end is made all to support SMBv2 agreement, SMBv1 agreement and SMBv2 agreement be changed in client and service end, for the method that client adopts SMBv2 agreement and service end or other client mutual, have and promote service end and only support that SMBv1 agreement and client support the beneficial effect of the network optimization of SMBv2 agreement, decrease the interaction time delay of client and service end, improve the experience of network neighbor.<!--1-->

Description

Network optimized approach and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of network optimized approach and device.
Background technology
SMB(ServerMessageBlock, Server Message Block) communication protocol is mainly as the communications protocol of Microsoft network, and at intercomputer shared file, printer, serial ports etc., main version has SMBv1 and SMBv2.Windows(Windows) utilize network neighbor's host-host protocol SMBv2 to do a large amount of optimization and improvement in client and service end, compare the version SMBv1 before it, greatly reduce the time delay that client produces alternately to service end, accelerate browsing file when network exists time delay, File Upload and Download and open the speed of the operations such as preservation.
In prior art, SMBv1 agreement and SMBv2 agreement can not be directly compatible each other, and the network neighbor that SMBv2 can only set up mutually at WindowsVista or the Windows operating system higher than WindowsVista uses in connecting, because a lot of enterprise still uses the server of older version operating system in a large number and only supports the memory device of SMBv1 at present, the various benefits that SMBv2 brings thus cannot be enjoyed.Due to the limitation of SMBv1 agreement, it is limited all the time that it optimizes space, particularly when there being more interactive operation, even if adopt the SMBv1 agreement optimized, message transmission rate is still very low, and this causes the experience of the network neighbor when network delay is larger poor.
Summary of the invention
Main purpose of the present invention is to provide a kind of network optimized approach and device, is intended to solve when network delay is larger, the problem that network neighbor's experience is poor.
The invention discloses a kind of network optimized approach, comprise the following steps:
Consult the communication protocol version between client and service end, make client and service end all support SMBv2 agreement;
SMBv1 agreement and described SMBv2 agreement are changed mutually in client and service end, adopts described SMBv2 agreement and service end or other client mutual for client.
Preferably, the communication protocol version between described negotiation client and service end, client and service end are all supported, and the step of SMBv2 agreement specifically comprises:
Bag is responded in the negotiation that the negotiation request packet of the SMBv1 protocol format that intercepting and capturing client sends and service end return according to described negotiation request packet;
When service end does not support described SMBv2 agreement, consult to respond by described the SMBv2 negotiation response bag wrapping and distort as supporting described SMBv2 agreement, make client and service end all support described SMBv2 agreement.
Preferably, described the step that SMBv1 agreement and described SMBv2 agreement carry out mutually changing in client and service end specifically to be comprised:
SMBv2 client sent asks bag to be converted to SMBv1 request bag, and asks bag to send service end to, to communicate with service end described SMBv1;
Service end is wrapped according to described SMBv1 request the SMBv1 response bag sent and is converted to SMBv2 response bag, and send described SMBv2 response bag to client.
Preferably, described send described SMBv1 request bag the step of service end to before also comprise step:
Optimize described SMBv1 and ask bag.
Preferably, described response before bag sends the step of client to by described SMBv2 also comprises step:
Optimize described SMBv2 and respond bag.
The present invention also discloses a kind of network optimization device, comprising:
Version negotiation module, for consulting the communication protocol version between client and service end, makes client and service end all support SMBv2 agreement;
Protocol conversion module, for SMBv1 agreement and described SMBv2 agreement mutually being changed in client and service end, adopts described SMBv2 agreement and service end or other client mutual for client.
Preferably, described version negotiation module specifically comprises:
Data Packet Seize unit, bag is responded in the negotiation that negotiation request packet and service end for intercepting and capturing the SMBv1 protocol format that client sends return according to described negotiation request packet;
Respond bag and distort unit, for when service end does not support described SMBv2 agreement, described response bag of consulting being distorted as supporting that the SMBv2 of described SMBv2 agreement consults to respond bag, making client and service end all support described SMBv2 agreement.
Preferably, described protocol conversion module specifically comprises:
First converting unit, the SMBv2 for client being sent asks bag to be converted to SMBv1 request bag, and asks bag to send service end to, to communicate with service end described SMBv1;
Second converting unit, is converted to SMBv2 response bag for service end is wrapped according to described SMBv1 request the SMBv1 response bag sent, and sends described SMBv2 response bag to client.
Preferably, described protocol conversion module also comprises:
Optimizing unit, asking bag for optimizing described SMBv1;
Preferably, described optimization unit also for, optimize described SMBv2 respond bag.
The communication protocol version of the present invention through consultation between client and service end, make client and service end all support SMBv2 agreement and SMBv1 agreement and SMBv2 agreement are changed mutually in client and service end, for the method that client adopts SMBv2 agreement and service end or other client mutual, have and promote service end and only support that SMBv1 agreement and client support the beneficial effect of the network optimization of SMBv2 agreement, greatly reduce the time delay that client produces alternately to service end, improve the experience of network neighbor.
Accompanying drawing explanation
Fig. 1 is network optimized approach one embodiment schematic flow sheet of the present invention;
Fig. 2 is the communication protocol version consulted in network optimized approach of the present invention between client and service end, makes client and service end all support SMBv2 agreement one embodiment schematic flow sheet;
SMBv1 agreement and SMBv2 agreement carry out mutually changing the first embodiment schematic flow sheet in client and service end in network optimized approach of the present invention by Fig. 3;
Fig. 4 is that in network optimized approach of the present invention, unilateral arrangement optimization system structure disposes schematic diagram;
Fig. 5 is client and the service end data interaction schematic diagram of unilateral arrangement optimization system in network optimized approach of the present invention;
SMBv1 agreement and SMBv2 agreement carry out mutually changing the second embodiment schematic flow sheet in client and service end in network optimized approach of the present invention by Fig. 6;
Fig. 7 is that in network optimized approach of the present invention, bilateral agreements optimization system structure disposes schematic diagram;
Fig. 8 is client and the service end data interaction schematic diagram of bilateral agreements optimization system in network optimized approach of the present invention;
Fig. 9 is network optimization device one example structure schematic diagram of the present invention;
Figure 10 is version negotiation module one example structure schematic diagram in network optimization device of the present invention;
Figure 11 is protocol conversion module first example structure schematic diagram in network optimization device of the present invention;
Figure 12 is protocol conversion module second example structure schematic diagram in network optimization device of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Technical scheme of the present invention is further illustrated below in conjunction with Figure of description and specific embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Reference Fig. 1, Fig. 1 are network optimized approach one embodiment schematic flow sheets of the present invention; As shown in Figure 1, network optimized approach of the present invention comprises the following steps:
Step S01, the communication protocol version consulting between client and service end, make client and service end all support SMBv2 agreement;
First support that the client of SMBv2 can send the negotiation request packet of a SMBv1 protocol format, this negotiation request packet comprises the SMB version information that client is supported, comprises SMBv1 agreement and SMBv2 agreement.The negotiation request packet that network neighbor's service end sends according to client, sends the negotiation comprising the SMB version that service end self is supported and responds bag.In the present embodiment, the negotiation of the communication protocol version between client and service end is realized: bag is responded in the negotiation request packet that intercepting and capturing client sends and the negotiation that service end returns according to this negotiation request packet by following manner, analyze and judge whether client and service end support SMBv2 agreement, if service end itself supports SMBv2 agreement, then follow-up packet all sends with the form of SMBv2, and does not process follow-up packet or only do common optimization process; If service end itself does not support SMBv2 agreement, then the negotiation that service end is replied is responded the negotiation response bag that support SMBv2 agreement distorted into by bag, and return to client, such client just learns the SMBv2 protocol negotiation success with service end.
Step S02, SMBv1 agreement and SMBv2 agreement to be changed mutually in client and service end, adopt SMBv2 agreement and service end or other client mutual for client.
After the communication protocol negotiation success of client and service end, when client and service end are carried out mutual, need the mutual conversion carrying out communication protocol.For wide area network, in monolateral wan optimization system, the SMBv2 request bag that client sends, after wide area network, needs to be converted to SMBv1 request bag to communicate with service end.Service end sends SMBv1 and consults to respond bag after receiving this negotiation request packet, this SMBv1 negotiation response bag service end sent is converted to SMBv2 and consults to respond the client computer of wrapping and mailing to the wide area network other end.In bilateral wan optimization system, just do for SMBv2 agreement further on the basis of monolateral protocol conversion and optimize, such as compression, buffer memory, all kinds of Optimum Operation of looking ahead etc.
Network optimized approach of the present invention is not only applicable to wide area network, and any have the network environment of time delay all applicable; And network optimized approach of the present invention is not only suitable for network neighbor's agreement, as long as any application based on SMBv1 and SMBv2 agreement meets implementation condition of the present invention, the present invention all can be adopted to be optimized.
The communication protocol version of the present embodiment through consultation between client and service end, make client and service end all support SMBv2 agreement and SMBv1 agreement and SMBv2 agreement are changed mutually in client and service end, for the method that client adopts SMBv2 agreement and service end or other client mutual, have and promote service end and only support that SMBv1 agreement and client support the beneficial effect of the network optimization of SMBv2 agreement, greatly reduce the time delay that client produces alternately to service end, improve the experience of network neighbor.
Reference Fig. 2, Fig. 2 are the communication protocol versions consulted in network optimized approach of the present invention between client and service end, make client and service end all support SMBv2 agreement one embodiment schematic flow sheet; The present embodiment only to step S01, consult between client and service end communication protocol version, client and service end are all supported, and SMBv2 agreement is described specifically, other steps involved by network optimized approach of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in Figure 2, in network optimized approach of the present invention, step S01, the communication protocol version consulting between client and service end, client and service end are all supported, and SMBv2 agreement specifically comprises the following steps:
Bag is responded in the negotiation that step S11, the negotiation request packet intercepting and capturing the SMBv1 protocol format that client sends and service end return according to described negotiation request packet;
When carrying out the communication protocol version negotiation of client and service end, need the packet getting client and service end, to analyze according to the data packet format of client and service end the communication protocol version judging that client and service end are supported; The method that the present embodiment is taked is, bag is responded in the negotiation request packet that intercepting and capturing client sends and the negotiation that service end returns according to described negotiation request packet; In a preferred embodiment, described client is support the client of SMBv2 agreement, and the negotiation request packet that this client sends is the negotiation request packet of SMBv1 protocol format.
Step S12, judge whether service end supports SMBv2 agreement; If so, then step S13 is performed; If not, then step S14 is performed;
Step S13, follow-up data bag do not dealt with or only does common optimization process;
Step S14, by described consult respond bag distort for support described SMBv2 agreement SMBv2 consult respond bag, make client and service end all support described SMBv2 agreement.
Bag is responded in the negotiation that the negotiation request packet sent according to the client intercepted and captured and service end return according to this negotiation request packet, analyzes and judges whether service end supports SMBv2 agreement; If service end supports SMBv2 agreement, then client and the follow-up mutual packet of service end are not dealt with, all adopt SMBv2 agreement to carry out alternately; Or utilize prior art, only common optimization process is done to client and the follow-up mutual packet of service end.If service end does not support SMBv2 agreement, the negotiation then service end returned is responded bag and is distorted as supporting that the SMBv2 of SMBv2 agreement consults to respond bag, client and service end is made all to support SMBv2 agreement, so that subsequent client and service end directly use SMBv2 agreement to carry out alternately.
The method of the communication protocol version of the present embodiment through consultation between client and service end, has the beneficial effect making client and service end all support SMBv2 agreement, for the interactive speed between follow-up quickening client and service end provides major prerequisites.
SMBv1 agreement and SMBv2 agreement are carried out mutually changing the first embodiment schematic flow sheet in client and service end in network optimized approach of the present invention with reference to Fig. 3, Fig. 3; The present embodiment is only further described step S02, and other steps involved by network optimized approach of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in Figure 3, in network optimized approach of the present invention, step S02, the step that SMBv1 agreement and SMBv2 agreement carry out mutually changing in client and service end specifically to be comprised:
Step S21, SMBv2 client sent ask bag to be converted to SMBv1 request bag, and ask bag to send service end to, to communicate with service end described SMBv1;
Reference Fig. 4, Fig. 4 are that in network optimized approach of the present invention, unilateral arrangement optimization system structure disposes schematic diagram; As shown in Figure 4, after client is connected with network optimization system by network, the service end connected with same and network optimization system is carried out alternately.When client and service end are carried out mutual, network optimization system can adopt network optimized approach of the present invention to carry out work.When client sends SMBv2 request bag to service end, through network optimization system, this SMBv2 asks bag to be converted to SMBv1 request bag, to communicate with service end by network optimization system.Because a lot of service end only supports SMBv1 communication protocol now.
Step S22, service end is responded bag according to the SMBv1 that described SMBv1 request bag sends be converted to SMBv2 and respond bag, and described SMBv2 is responded bag send client to.
When service end receives the SMBv1 request bag after network optimization system conversion, ask bag to return SMBv1 according to this SMBv1 and respond bag to network optimization system, this SMBv1 is responded bag and is converted to SMBv2 response bag by network optimization system again, and this SMBv2 responded bag send client to, realize client and service end fast not alternately.
With reference to client and service end data interaction schematic diagram that Fig. 5, Fig. 5 are unilateral arrangement optimization system in network optimized approach of the present invention; As shown in Figure 5, when carrying out mutual between above-mentioned client and service end, network optimization system is responsible for the conversion of the communication protocol between these two ends.
The method of the present embodiment by SMBv1 agreement and described SMBv2 agreement are carried out in client and service end mutually changing, there is the beneficial effect accelerating data interaction between client and service end, greatly reduce the propagation delay time between client and service end, improve the experience of network neighbor.
SMBv1 agreement and SMBv2 agreement are carried out mutually changing the second embodiment schematic flow sheet in client and service end in network optimized approach of the present invention with reference to Fig. 6, Fig. 6; The present embodiment is increase only step S23 and step S24 with the difference that SMBv1 agreement and SMBv2 agreement are carried out mutually changing the first embodiment in client and service end; The present embodiment is only described specifically step S23 and step S24, and other steps involved by network optimized approach of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in Figure 6, in network optimized approach of the present invention, the step that SMBv1 agreement and SMBv2 agreement carry out mutually changing in client and service end is also comprised step:
Step S23, optimize described SMBv1 ask bag;
Step S24, optimize described SMBv2 respond bag.
For bilateral wan optimization system, be that in network optimized approach of the present invention, bilateral agreements optimization system structure disposes schematic diagram with reference to Fig. 7, Fig. 7; As shown in Figure 7, a network optimization system is affixed one's name in client and service end respectively; The SMBv2 request bag that client sends first carries out compressing through the network optimization system of client, buffer memory, to look ahead etc. and optimize after, the network optimization system being sent to service end again carries out decompress(ion), buffer memory, look ahead etc. optimize after, carry out the conversion of communication protocol again, asked by SMBv2 bag to be converted to SMBv1 request bag, respond for service end.The SMBv1 of response SMBv1 request bag is responded the network optimization system that bag is sent to service end by service end, this SMBv1 is responded bag and carries out protocol conversion and obtain after SMBv2 responds bag by the network optimization system of service end, carry out again compressing, buffer memory, to look ahead etc. optimize after be sent to the network optimization system of client, the network optimization system of client is responded after bag carries out decompress(ion), buffer memory, to look ahead etc. and optimize to SMBv2, then sends to client.Bilateral agreements optimizing process please refer to Fig. 8, and Fig. 8 is client and the service end data interaction schematic diagram of bilateral agreements optimization system in network optimized approach of the present invention; Be shown in Fig. 8 in network optimized approach, in bilateral agreements optimization system, the overall process of client and service end data interaction.
The present embodiment sends service end to by described SMBv1 being asked bag, sends between client by described SMBv2 response bag, respectively the method for wrapping and being optimized is responded to described SMBv1 request bag and SMBv2, there is the beneficial effect accelerating data interaction between client and service end further, further increasing the Consumer's Experience of network neighbor.
Reference Fig. 9, Fig. 9 are network optimization device one example structure schematic diagrames of the present invention; As shown in Figure 9, network optimization device of the present invention specifically comprises:
Version negotiation module 01, for consulting the communication protocol version between client and service end, makes client and service end all support SMBv2 agreement;
Support that the client of SMBv2 can send the negotiation request packet of a SMBv1 protocol format, this negotiation request packet comprises the SMB version information that client is supported, comprises SMBv1 agreement and SMBv2 agreement.The negotiation request packet that network neighbor's service end sends according to client, sends the negotiation comprising the SMB version that service end self is supported and responds bag.Version negotiation module 01 intercepts and captures negotiation request packet that client sends and bag is responded in the negotiation that service end returns according to this negotiation request packet, analyze and judge whether client and service end support SMBv2 agreement, if service end itself supports SMBv2 agreement, then follow-up packet all sends with the form of SMBv2, and does not process follow-up packet or only do common optimization process; If service end itself does not support SMBv2 agreement, the negotiation response bag that support SMBv2 agreement distorted into by bag is responded in the negotiation that then service end is replied by version negotiation module 01, and returning to client, such client just learns the SMBv2 protocol negotiation success with service end.
Protocol conversion module 02, for SMBv1 agreement and described SMBv2 agreement mutually being changed in client and service end, adopts described SMBv2 agreement and service end or other client mutual for client.
Version negotiation module 01, after the communication protocol negotiation success of client and service end, when client and service end are carried out mutual, needs protocol conversion module 02 to carry out the mutual conversion of communication protocol.For wide area network, in monolateral wan optimization system, the SMBv2 request bag that client sends, after wide area network, needs protocol conversion module 02 to be converted into SMBv1 request bag to communicate with service end.Service end sends SMBv1 and consults to respond bag after receiving this negotiation request packet, this SMBv1 negotiation response bag that service end sends by protocol conversion module 02 is converted to SMBv2 and consults to respond bag, and mails to the client computer of the wide area network other end.In bilateral wan optimization system, protocol conversion module 02 just does for SMBv2 agreement further on the basis of monolateral protocol conversion to be optimized, such as compression, buffer memory, all kinds of Optimum Operation of looking ahead etc.
Network optimization device of the present invention not necessarily will be deployed on independent equipment or server, and this network optimization device directly can be installed in network neighbor's server or client by the mode of pure software completely; And network optimization device of the present invention is not only applicable to wide area network, any have the network environment of time delay all applicable; And network optimization device of the present invention is not only suitable for network neighbor's agreement, as long as any application based on SMBv1 and SMBv2 agreement meets implementation condition of the present invention, the present invention all can be adopted to be optimized.
The communication protocol version of the present embodiment through consultation between client and service end, make client and service end all support SMBv2 agreement and SMBv1 agreement and SMBv2 agreement are changed mutually in client and service end, adopt SMBv2 agreement and service end or other client mutual for client, have and promote service end and only support that SMBv1 agreement and client support the beneficial effect of the network optimization of SMBv2 agreement, greatly reduce the time delay that client produces alternately to service end, improve the experience of network neighbor.
Reference Figure 10, Figure 10 are version negotiation module one example structure schematic diagrames in network optimization device of the present invention; The present embodiment is only further described version negotiation module 01, and other modules involved by network optimization device of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in Figure 10, in network optimization device of the present invention, version negotiation module 01 specifically comprises:
Data Packet Seize unit 011, bag is responded in the negotiation that negotiation request packet and service end for intercepting and capturing the SMBv1 protocol format that client sends return according to described negotiation request packet;
When carrying out the communication protocol version negotiation of client and service end, Data Packet Seize unit 011 needs the packet getting client and service end, to analyze according to the data packet format of client and service end the communication protocol version judging that client and service end are supported; Particularly, Data Packet Seize unit 011 intercepts and captures negotiation request packet that client sends and bag is responded in the negotiation that service end returns according to described negotiation request packet; In a preferred embodiment, described client is support the client of SMBv2 agreement, and the negotiation request packet that this client sends is the negotiation request packet of SMBv1 protocol format.
Respond bag and distort unit 012, for when service end does not support described SMBv2 agreement, described response bag of consulting being distorted as supporting that the SMBv2 of described SMBv2 agreement consults to respond bag, making client and service end all support described SMBv2 agreement.
Bag is responded in the negotiation that the negotiation request packet sent according to the client of Data Packet Seize unit 011 intercepting and capturing and service end return according to this negotiation request packet, analyzes and judges whether service end supports SMBv2 agreement; If service end supports SMBv2 agreement, then client and the follow-up mutual packet of service end are not dealt with, all adopt SMBv2 agreement to carry out alternately; Or utilize prior art, only common optimization process is done to client and the follow-up mutual packet of service end.If service end does not support SMBv2 agreement, then respond bag to distort negotiation that service end returns by unit 012 and respond bag and distort as supporting that the SMBv2 of SMBv2 agreement consults to respond bag, client and service end is made all to support SMBv2 agreement, so that subsequent client and service end directly use SMBv2 agreement to carry out alternately.
The communication protocol version of the present embodiment through consultation between client and service end, has the beneficial effect making client and service end all support SMBv2 agreement, for the interactive speed between follow-up quickening client and service end provides major prerequisites.
Reference Figure 11, Figure 11 are protocol conversion module first example structure schematic diagrames in network optimization device of the present invention; The present embodiment is only further described protocol conversion module 02, and other modules involved by network optimization device of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in figure 11, in network optimization device of the present invention, protocol conversion module 02 specifically comprises:
First converting unit 021, the SMBv2 for client being sent asks bag to be converted to SMBv1 request bag, and asks bag to send service end to, to communicate with service end described SMBv1;
Reference Fig. 4, Fig. 4 are that in network optimized approach of the present invention, unilateral arrangement optimization system structure disposes schematic diagram; As shown in Figure 4, after client is connected with network optimization system by network, the service end connected with same and network optimization system is carried out alternately.When client and service end are carried out mutual, in network optimization system, be provided with network optimization device of the present invention.When client sends SMBv2 request bag to service end, through network optimization system, this SMBv2 asks bag to be converted to SMBv1 request bag, to communicate with service end by the first converting unit 021.Because a lot of service end only supports SMBv1 communication protocol now.
Second converting unit 022, is converted to SMBv2 response bag for service end is wrapped according to described SMBv1 request the SMBv1 response bag sent, and sends described SMBv2 response bag to client.
When service end receives the SMBv1 request bag after the first converting unit 021 conversion, ask bag to return SMBv1 according to this SMBv1 and respond bag to network optimization system, this SMBv1 is responded bag and is converted to SMBv2 response bag by the second converting unit 022 again, and this SMBv2 responded bag send client to, realize client and service end fast not alternately.
The detailed process that first converting unit 021 and the second converting unit 022 carry out client and service end protocol conversion please refer to embodiment described in Fig. 5, does not repeat them here.
The present embodiment is by mutually changing SMBv1 agreement and described SMBv2 agreement in client and service end, there is the beneficial effect accelerating data interaction between client and service end, greatly reduce the propagation delay time between client and service end, improve the experience of network neighbor.
Reference Figure 12, Figure 12 are protocol conversion module second example structure schematic diagrames in network optimization device of the present invention.In the present embodiment and network optimization device, the difference of protocol conversion module first embodiment is, protocol conversion module 02 increase only optimizes unit 023, the present embodiment is only described specifically optimization unit 023, other modules involved by network optimization device of the present invention please refer to the specific descriptions of related embodiment, do not repeat them here.As shown in figure 12, in network optimization device of the present invention, protocol conversion module 02 also comprises:
Optimizing unit 023, asking bag for optimizing described SMBv1; Also for, optimize described SMBv2 respond bag.
For bilateral wan optimization system, be that in network optimized approach of the present invention, bilateral agreements optimization system structure disposes schematic diagram with reference to Fig. 7, Fig. 7; As shown in Figure 7, affix one's name to a network optimization system in client and service end respectively, this network optimization system comprises network optimization device of the present invention.The SMBv2 request bag that client sends first carries out compressing through the optimization unit 023 of client network optimization system, buffer memory, to look ahead etc. and optimize after, the optimization unit 023 being sent to service end network optimization system again carries out decompress(ion), buffer memory, look ahead etc. optimize after, the conversion of communication protocol is carried out again by protocol conversion module 02, asked by SMBv2 bag to be converted to SMBv1 request bag, respond for service end.The SMBv1 of response SMBv1 request bag is responded the network optimization system that bag is sent to service end by service end, this SMBv1 is responded bag and carries out protocol conversion and obtain after SMBv2 responds bag by the network optimization system of service end, again by optimizing that unit 023 carries out compressing, buffer memory, to look ahead etc. optimize after be sent to the network optimization system of client, the optimization unit 023 couple of SMBv2 of client network optimization system responds after bag carries out decompress(ion), buffer memory, to look ahead etc. and optimize, then sends to client.Bilateral agreements optimizing process please refer to embodiment described in Fig. 8, does not repeat them here.
The present embodiment sends service end to by described SMBv1 being asked bag, sends between client by described SMBv2 response bag, respond bag to described SMBv1 request bag and SMBv2 to be respectively optimized, there is the beneficial effect accelerating data interaction between client and service end further, further increasing the Consumer's Experience of network neighbor.
The foregoing is only the preferred embodiments of the present invention; not thereby its scope of the claims is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; directly or indirectly be used in the technical field that other are relevant, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. a network optimized approach, is characterized in that, comprises the following steps:
Send the negotiation request packet of a SeverMessageBlock service message block SMBv1 protocol format and network neighbor's server according to client and send according to the negotiation request packet that client sends the communication protocol version that the negotiate response bag comprising the SMB version that service end self is supported consults between client and service end, make client and service end all support second edition Server Message Block SMBv2 agreement;
First version Server Message Block SMBv1 agreement and described SMBv2 agreement are changed mutually in client and service end, adopts described SMBv2 agreement and service end or other client mutual for client;
SMBv2 client sent asks bag to be converted to SMBv1 request bag, and asks bag to send service end to, to communicate with service end described SMBv1;
Service end is wrapped according to described SMBv1 request the SMBv1 response bag sent and is converted to SMBv2 response bag, and send described SMBv2 response bag to client.
2. the method for claim 1, is characterized in that, the communication protocol version between described negotiation client and service end, and client and service end are all supported, and the step of SMBv2 agreement specifically comprises:
Bag is responded in the negotiation that the negotiation request packet of the SMBv1 protocol format that intercepting and capturing client sends and service end return according to described negotiation request packet;
When service end does not support described SMBv2 agreement, consult to respond by described the SMBv2 negotiation response bag wrapping and distort as supporting described SMBv2 agreement, make client and service end all support described SMBv2 agreement.
3. the method for claim 1, is characterized in that, described send described SMBv1 request bag the step of service end to before also comprise step:
Optimize described SMBv1 and ask bag.
4. the method for claim 1, is characterized in that, described response before bag sends the step of client to by described SMBv2 also comprises step:
Optimize described SMBv2 and respond bag.
5. a network optimization device, is characterized in that, comprising:
Version negotiation module, negotiation request packet and network neighbor's server for sending a SeverMessageBlock service message block SMBv1 protocol format according to client send the communication protocol version between negotiate response bag negotiation client and service end comprising the SMB version that service end self is supported according to the negotiation request packet that client sends, make client and service end all support SMBv2 agreement;
Protocol conversion module, for SMBv1 agreement and described SMBv2 agreement mutually being changed in client and service end, adopts described SMBv2 agreement and service end or other client mutual for client;
Described protocol conversion module specifically comprises:
First converting unit, the SMBv2 for client being sent asks bag to be converted to SMBv1 request bag, and asks bag to send service end to, to communicate with service end described SMBv1;
Second converting unit, is converted to SMBv2 response bag for service end is wrapped according to described SMBv1 request the SMBv1 response bag sent, and sends described SMBv2 response bag to client.
6. device as claimed in claim 5, it is characterized in that, described version negotiation module specifically comprises:
Data Packet Seize unit, bag is responded in the negotiation that negotiation request packet and service end for intercepting and capturing the SMBv1 protocol format that client sends return according to described negotiation request packet;
Respond bag and distort unit, for when service end does not support described SMBv2 agreement, described response bag of consulting being distorted as supporting that the SMBv2 of described SMBv2 agreement consults to respond bag, making client and service end all support described SMBv2 agreement.
7. device as claimed in claim 5, it is characterized in that, described protocol conversion module also comprises:
Optimizing unit, asking bag for optimizing described SMBv1.
8. device as claimed in claim 7, is characterized in that, described optimization unit also for, optimize described SMBv2 and respond bag.
CN201210327313.9A 2012-09-06 2012-09-06 Network optimized approach and device Active CN102857504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210327313.9A CN102857504B (en) 2012-09-06 2012-09-06 Network optimized approach and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210327313.9A CN102857504B (en) 2012-09-06 2012-09-06 Network optimized approach and device

Publications (2)

Publication Number Publication Date
CN102857504A CN102857504A (en) 2013-01-02
CN102857504B true CN102857504B (en) 2016-01-06

Family

ID=47403698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210327313.9A Active CN102857504B (en) 2012-09-06 2012-09-06 Network optimized approach and device

Country Status (1)

Country Link
CN (1) CN102857504B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595720B (en) * 2013-11-15 2017-07-07 华为技术有限公司 Unloading data transmission method, device and client
CN109428773B (en) * 2017-08-22 2022-04-22 深圳市道通智能航空技术股份有限公司 A communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761259A (en) * 2004-10-11 2006-04-19 三星电子株式会社 Be used to use server message block protocol to come the apparatus and method of print data
EP1727056B1 (en) * 2005-05-25 2008-11-05 Microsoft Corporation Data communication protocol
CN101867572A (en) * 2010-05-11 2010-10-20 中兴通讯股份有限公司 Implementation method and system for wireless U disk
CN102571756A (en) * 2010-12-06 2012-07-11 微软公司 Multichannel connections in file system sessions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1761259A (en) * 2004-10-11 2006-04-19 三星电子株式会社 Be used to use server message block protocol to come the apparatus and method of print data
EP1727056B1 (en) * 2005-05-25 2008-11-05 Microsoft Corporation Data communication protocol
CN101867572A (en) * 2010-05-11 2010-10-20 中兴通讯股份有限公司 Implementation method and system for wireless U disk
CN102571756A (en) * 2010-12-06 2012-07-11 微软公司 Multichannel connections in file system sessions

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SMB协议分析;周伟;《襄樊职业技术学院学报》;20080131;第7卷(第1期);第7-8、31页 *

Also Published As

Publication number Publication date
CN102857504A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN102546800B (en) Handshake and communication methods for gateway, gateway and Web communication system
US10813154B2 (en) Enabling interface aggregation of mobile broadband network interfaces
CN108769017B (en) Data communication method and device
CN103582012B (en) A kind of data distributing method and device
KR101938623B1 (en) Openflow communication method, system, controller, and service gateway
CN102857505B (en) A kind of Internet of Things data bus middleware system
CN106936875B (en) An Improved TCP Proxy Method Based on Wide Area Network Data Compression
CN107395572A (en) A kind of data processing method and things-internet gateway
CN114584603B (en) Method and device for connecting desktop client software with server and readable storage medium
CN114070833A (en) Multi-protocol service compatible method, system, device, medium, and program product
CN108200158A (en) request transmission system, method, device and storage medium
WO2013120325A1 (en) Browser-to-browser direct communication method, device and communication system
US20150289297A1 (en) Packet Transmission Method and System, and Station
CN102857504B (en) Network optimized approach and device
CN102710518B (en) The method and system that NAT penetrates are realized under wide area network
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
AU2010350106B2 (en) System and method for improving service subscription or unsubscription speed for wireless application protocol (WAP) roaming users
CN117579664A (en) A communication method, communication device and remote diagnosis system
CN113163025B (en) Data transmission method, device, equipment and storage medium
CN113301104B (en) Data processing system and method
CN105323729B (en) A kind of note transmission method and device
CN102202332B (en) Base station maintenance system
CN112583934B (en) Data communication method, apparatus and computer-readable storage medium
HK40059125A (en) Data processing system and method
CN116095140A (en) Unified access gateway method and system based on WebSocket

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200617

Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park building A1 layer

Patentee after: SANGFOR TECHNOLOGIES Inc.

Address before: 518000 Nanshan Science and Technology Pioneering service center, No. 1 Qilin Road, Guangdong, Shenzhen 418, 419,

Patentee before: Shenxin network technology (Shenzhen) Co.,Ltd.