CN101729562A - Reliable data transmission method under unreliable network connection - Google Patents

Reliable data transmission method under unreliable network connection Download PDF

Info

Publication number
CN101729562A
CN101729562A CN200910229994A CN200910229994A CN101729562A CN 101729562 A CN101729562 A CN 101729562A CN 200910229994 A CN200910229994 A CN 200910229994A CN 200910229994 A CN200910229994 A CN 200910229994A CN 101729562 A CN101729562 A CN 101729562A
Authority
CN
China
Prior art keywords
request
network
access
netwoks
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910229994A
Other languages
Chinese (zh)
Inventor
王涛威
高乐光
Original Assignee
Inspur Group Shandong General Software 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 Inspur Group Shandong General Software Co Ltd filed Critical Inspur Group Shandong General Software Co Ltd
Priority to CN200910229994A priority Critical patent/CN101729562A/en
Publication of CN101729562A publication Critical patent/CN101729562A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a reliable data transmission method under unreliable network connection to solve the problems that how to completely and reliably transmit data between networks under the condition of intermittent or occasional connection of the networks. The method comprises the following steps of network access proxy, network state judgment, automatic data transmission and automatic data cache. The method is applied to the government industry and large-scale group enterprises on a large scale, a user offline makes documents or submits data under the condition that a user is transitory online by dialing or a gate keeper automatically intermittently communicate with inner and outer nets, and the data is automatically transmitted by the method when the network is communicated. The method has the characteristics of simple operation and safe, effective data uploading, and excellent promotion and use value.

Description

Reliable data transmission method under a kind of unreliable network connects
Technical field
The present invention relates to a kind of Computer Applied Technology, provided the reliable data transmission method under a kind of unreliable network connection specifically, solved under the situation that network connects off and on or connects once in a while, how complete between network, transmit the problem of data reliably.
Background technology
Adopt the information system of multi-layer framework often to require network to continue to connect and have enough bandwidth, therefore also more and more higher to the network degree of dependence, however in reality, network connects can't guarantee availability anywhere or anytime again.
The user of some industry or enterprise may temporarily lose network because of going on business and connect, perhaps have the network connection but exist and postpone or bandwidth problem, some part that perhaps may need to dismantle network is safeguarded, perhaps has a mind to by the automatic UNICOM's intranet and extranet at interval of gateway.But business can not be owing to the unreliable of network suspends, for partial service, single such as system, can pass through automatically at this machine buffer memory bills data, by a backstage service autopolling network state, when network UNICOM, automatically data are sent in the information system and go again.So just can increase work efficiency effectively.
Summary of the invention
The invention provides the reliable data transmission method under a kind of unreliable network connection.
1. information system direct access network services, but conduct interviews by the access to netwoks agency; The access to netwoks agency comprises that data are kept at client automatically to the access request of information system; The access to netwoks agency detects network state automatically, uploads data download when network UNICOM automatically.
2. access to netwoks agency's definition code is:
class?WebServiceProxy
{
void?AddReuest(Request?request);
bool?DoWhenOnLine();
bool?IsConnected{get;}
}
Wherein, the definition code of request class Request is:
public?class?Request
{
public?object[]CallParameters{get;set;}
public?string?Endpoint{get;set;}
public?string?MethodName{get;set;}
public?Guid?RequestId{get;set;}
Type?ProxyType{get;set;}
}
3. during the information system access network services, at first according to the definition of the network service of visit, make up the example of a Request class, AddReuest (Requestrequest) method of calling the WebServiceProxy class then increases a network access request.
4. when information system called AddReuest (Request request) method, this method inside was saved in request in the local database by following code and goes.
public?void?AddReuest(Request?request)
{
DBClient?client=DBFactory.OpenClient();
client.Set(request);
client.Close();
}
5. the access to netwoks agency network service request of reading buffer memory from the database of this locality makes up Request class example, makes up URL according to the EndPoint attribute of Request class, sends the HTTP request then, judges whether UNICOM of network according to request return state sign indicating number.When network UNICOM, the access to netwoks agency finishes the visit of network service according to ProxyType, MethodName, the CallParameters attribute of Request class example.Code is:
public?bool?DoWhenOnLine()
{
if(!IsConnected)return?false;
IList<Request>rqs=null;
DBClien?db=DBFactory.OpenClient();
rqs=db.Query<Request>(typeof(Request));
foreach(Request?rq?in?rqs)
{
Object?proxy=Activator.CreateInstance(rq.ProxyType);
proxy.Url=EndPoint;
MethodInfo?method=rq.ProxyType.GetMethod(rq.MethodName);
object?result=method.Invoke(proxy,rq.CallParameters);
db.Delete(rq);
}
db.Close();
return?true;
}
Excellent effect of the present invention is: can not only allow the user use its application program to carry out working when off-line fruitfully, and can in time upload off-line data when network UNICOM, improve customer productivity and operating efficiency effectively.This invention makes the off-line of information system use and obtains good support, has very high popularization and economic worth.
Embodiment
The invention provides the reliable data transmission method under a kind of unreliable network connection, comprise the access to netwoks agency; Network state is judged; Automatic data transmission; The automatic buffer memory of data.Access to netwoks agency is cached to this machine automatically with data, when network-in-dialing, automatically data upload is downloaded to this machine to server end or from server end then, so just can be under the state of unstable networks using system.
For make advantage of the present invention, purpose be more readily understood, understandable, do a detailed description with regard to concrete execution mode below.
1. every place that needs access network services in information system, the AddReuest of WebServiceProxy class (Request request) method.
2. when os starting, start the access to netwoks Agent automatically.For example: the access to netwoks Agent is put into " c: Documents and Settings All Users the Start menu program start " under the catalogue.
This system has light small and exquisite, the characteristics that are easy to dispose, can solve because of losing network to connect the problem that the information system that causes can't use.
The present invention at present widely applies in government's industry and large-scale synthesis type conglomerate, can not only allow the user when off-line, use its application program to carry out working fruitfully, and can when network UNICOM, in time upload off-line data, improve customer productivity and operating efficiency effectively.This invention makes the off-line of information system use and obtains good support, has very high popularization and economic worth.

Claims (3)

1. the reliable data transmission method under a unreliable network connects is characterized in that, comprises the access to netwoks agency; Network state is judged; Automatic data transmission; The automatic buffer memory of data, access to netwoks agency is cached to this machine automatically with data, when network-in-dialing, automatically data upload is downloaded to this machine to server end or from server end then, is implemented in using system under the state of unstable networks, may further comprise the steps:
1) the not direct access network services of information system, but conduct interviews by the access to netwoks agency; Its definition code is acted on behalf of in access to netwoks:
class?WebServiceProxy
{
void?AddReuest(Request?request);
bool?DoWhenOnLine();
bool?IsConnected{get;}
}
Wherein, the definition code of request class Request is:
public?class?Request
{
public?object[]CallParameters{get;set;}
public?string?Endpoint{get;set;}
public?string?MethodName{get;set;}
public?Guid?RequestId{get;set;}
Type?ProxyType{get;set;}
};
2) the access to netwoks agency comprises that data are kept at client automatically to the access request of information system;
3) the access to netwoks agency detects network state automatically, when network UNICOM, upload data download automatically "; concrete steps are as follows: access to netwoks agency reads buffer memory from the database of this locality network service request; make up Request class example; the EndPoint attribute according to the Request class makes up URL; send the HTTP request then; judge whether UNICOM of network according to request return state sign indicating number, when network UNICOM, the access to netwoks agency is according to the ProxyType of Request class example, MethodName, the CallParameters attribute, finish the visit of network service, code is:
public?bool?DoWhenOnLine()
{
if(!IsConnected)return?false;
IList<Request>rqs=null;
DBClien?db=DBFactory.OpenClient();
rqs=db.Query<Request>(typeof(Request));
foreach(Request?rq?in?rqs)
{
Object?proxy=
Activator.CreateInstance(rq.ProxyType);
proxy.Url=EndPoint;
MethodInfo?method=
rq.ProxyType.GetMethod(rq.MethodName);
object?result=method.Invoke(proxy,
rq.Cal?lParameters);
db.Delete(rq);
}
db.Close();
return?true;
}
2. according to the described method of claim 1, it is characterized in that, during the information system access network services, the at first definition of serving according to the network of visit, make up the example of a Request class, AddReuest (Request request) method of calling the WebServiceProxy class then increases a network access request.
3. according to the described method of claim 2, it is characterized in that when information system called AddReuest (Request request) method, this method inside was saved in request in the local database by following code and goes;
public?void?AddReuest(Request?request)
{
DBClient?client=DBFactory.OpenClient();
client.Set(request);
client.Close();
}。
CN200910229994A 2009-11-30 2009-11-30 Reliable data transmission method under unreliable network connection Pending CN101729562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910229994A CN101729562A (en) 2009-11-30 2009-11-30 Reliable data transmission method under unreliable network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910229994A CN101729562A (en) 2009-11-30 2009-11-30 Reliable data transmission method under unreliable network connection

Publications (1)

Publication Number Publication Date
CN101729562A true CN101729562A (en) 2010-06-09

Family

ID=42449760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910229994A Pending CN101729562A (en) 2009-11-30 2009-11-30 Reliable data transmission method under unreliable network connection

Country Status (1)

Country Link
CN (1) CN101729562A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289476A (en) * 2011-07-29 2011-12-21 河南辉煌科技股份有限公司 Method for recording transaction log
CN102325130A (en) * 2011-07-15 2012-01-18 上海久娱网络科技有限公司 Online game system with ArkNet embedded in client
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102457499A (en) * 2010-10-26 2012-05-16 腾讯科技(深圳)有限公司 Offline working method for client, and offline working client
WO2012062151A1 (en) * 2010-11-11 2012-05-18 腾讯科技(深圳)有限公司 Method and system for processing network data
CN103312754A (en) * 2012-03-12 2013-09-18 阿尔卡特朗讯 Agency parameter updating method and device
CN103685367A (en) * 2012-09-10 2014-03-26 腾讯科技(深圳)有限公司 Offline download system and offline download method
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS
US8726010B2 (en) 2010-10-21 2014-05-13 Qumu Corporation Secure content distribution
CN103812902A (en) * 2012-11-13 2014-05-21 中国电信股份有限公司 Mobile terminal and offline working method and system by using same

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333082A (en) * 2010-08-23 2012-01-25 微软公司 The URL of safety shortens
CN102333082B (en) * 2010-08-23 2016-09-14 微软技术许可有限责任公司 The URL of safety shortens
US8935532B2 (en) 2010-10-21 2015-01-13 Qumu Corporation Content distribution and aggregation
US8726010B2 (en) 2010-10-21 2014-05-13 Qumu Corporation Secure content distribution
CN102457499A (en) * 2010-10-26 2012-05-16 腾讯科技(深圳)有限公司 Offline working method for client, and offline working client
WO2012062151A1 (en) * 2010-11-11 2012-05-18 腾讯科技(深圳)有限公司 Method and system for processing network data
CN102325130A (en) * 2011-07-15 2012-01-18 上海久娱网络科技有限公司 Online game system with ArkNet embedded in client
CN102289476A (en) * 2011-07-29 2011-12-21 河南辉煌科技股份有限公司 Method for recording transaction log
CN103312754A (en) * 2012-03-12 2013-09-18 阿尔卡特朗讯 Agency parameter updating method and device
CN103685367A (en) * 2012-09-10 2014-03-26 腾讯科技(深圳)有限公司 Offline download system and offline download method
CN103685367B (en) * 2012-09-10 2018-07-20 腾讯科技(深圳)有限公司 Off-line download system and method
CN103812902A (en) * 2012-11-13 2014-05-21 中国电信股份有限公司 Mobile terminal and offline working method and system by using same
CN103812902B (en) * 2012-11-13 2018-09-21 中国电信股份有限公司 Method, system and the mobile terminal handled official business offline are realized using mobile terminal
CN103746929A (en) * 2014-01-13 2014-04-23 刘保太 Optimal access flow scheduling method based on DNS (Domain Name System) and optimal access flow scheduling equipment based on DNS

Similar Documents

Publication Publication Date Title
CN101729562A (en) Reliable data transmission method under unreliable network connection
US7519950B2 (en) Method and system for version negotiation of distributed objects
US8751442B2 (en) Synchronization associated duplicate data resolution
CN104899274B (en) A kind of memory database Efficient Remote access method
CN203206476U (en) Data content generating and sharing system based on dual-network
KR20060044313A (en) Intergration architecture for non-integrated tools
WO2011130940A1 (en) Multi-service integration processing method and service integration platform
CN102769709B (en) A kind of for providing the method and apparatus of service contact information to user
CN101615270B (en) B/S model-based workflow analysis and presence system and method
WO2013083056A1 (en) Method, device and system for managing mobile broadband device
CN105306418A (en) Method and system for sharing communication connection by multiple application programs
CN104216787A (en) Method, device and system for synchronizing clipboards between terminal equipment
CN109104701A (en) Method for sending information and server based on equipment mark code
CN102833015B (en) Method for determining public software interface of satellite automatic testing system
CN104009866B (en) WEB network management systems Modular implement method and device based on RIA
CN101155174A (en) Remote subscriber interface service implementing method based on common protocol
CN102148869B (en) Method and device for JAVA application to transfer information to local
CN101183973A (en) Method of implementing command line configuration distribution in distributed system
CN113297148B (en) Method, device and equipment for collecting service log data and readable storage medium
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers
CN115086311A (en) Management system of enterprise cross-system service based on cloud service bus
CN106331051A (en) File transmission method and system, file receiving device and file transmission device
US20060047667A1 (en) System and method for data interchange
WO2006036551A2 (en) Usage data collection system and method
TW200828871A (en) A software deployment management system with adjustable process functionality

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: PAN YUXING

Free format text: FORMER OWNER: LIU JUAN

Effective date: 20101101

C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Gao Leguang

Inventor after: Wang Taowei

Inventor after: Ma Juan

Inventor before: Wang Taowei

Inventor before: Gao Leguang

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 262500 NO.1726, LINGLONGSHAN MIDDLE ROAD, QINGZHOU CITY, SHANDONG PROVINCE TO: 262500 QINGZHOU PEOPLE S HOSPITAL, NO.1726, LINGLONGSHAN MIDDLE ROAD, QINGZHOU CITY, SHANDONG PROVINCE

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100609