CN101212474A - Instant messaging based file publishing method - Google Patents

Instant messaging based file publishing method Download PDF

Info

Publication number
CN101212474A
CN101212474A CNA2006101716457A CN200610171645A CN101212474A CN 101212474 A CN101212474 A CN 101212474A CN A2006101716457 A CNA2006101716457 A CN A2006101716457A CN 200610171645 A CN200610171645 A CN 200610171645A CN 101212474 A CN101212474 A CN 101212474A
Authority
CN
China
Prior art keywords
file
server
document
publishing
information
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.)
Granted
Application number
CNA2006101716457A
Other languages
Chinese (zh)
Other versions
CN101212474B (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.)
Institute of Acoustics CAS
Original Assignee
Institute of Acoustics CAS
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 Institute of Acoustics CAS filed Critical Institute of Acoustics CAS
Priority to CN2006101716457A priority Critical patent/CN101212474B/en
Publication of CN101212474A publication Critical patent/CN101212474A/en
Application granted granted Critical
Publication of CN101212474B publication Critical patent/CN101212474B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for issuing documents based on an instant messaging technology, which includes an initialization process and a document issuing mechanism. The initialization process is a process that an IM server in an XMPP network defines an IP address and a JID mark of a legal document server and establishes a list of an online document server. The document issuing mechanism comprises the processes: issuing information is sent to an issuing server by a document issuer through a client; an online document server is chosen in the list of the online document server by the issuing server and the JID mark of the online document server is returned to a information issuer; the issuing document and the property information of the document are transmitted to the document server by the document issuer; the issuing information is sent to the issuing server by the document server; a new record is added in the issuing document list by the issuing server. The invention has the advantages that the issuer does not need stay online; the network flow of the issuer is reduced and the service quality when users download documents is enhanced.

Description

A kind of file publishing method based on instant messaging
Technical field
The present invention relates to the network service system that multi-service is merged, specially refer to a kind of file publishing method based on instant messaging.
Background technology
IM (Instant Messaging, instant messaging) is a kind of real-time the Internet exchange way, is sub-mail of relay and World Wide Web (WWW) the third-largest internet, applications afterwards.IM is mainly used in the daily interchange between the individual and keeps in touch, and in addition, it also is widely used in the office field, as call for Votes, the negotiation progress of work etc.The real-time of IM makes it can be used for Data transmission between the server effectively, carries out remote service and calls.A lot of companies all begin IM to launch multinomial special service as a main line around it, effectively merge its every business.As based on the file transfer of IM technology, voice and video service, subscribe to news service, network game service etc.
XMPP (Extensible Messaging and Presence Protocol, scalable message is handled and online protocol) is the advanced instant messaging agreement of a cover.It adopts XML (Extensible Makeup Language, extend markup language) order and the data in the language definition agreement, utilize XML highly versatile, easily expansion, and machine-readable advantage, made things convenient for agreement in expansion on the function and the intercommunication in application thereof.The XMPP core protocol is made up of RFC (Request for Comments) 3920 and RFC 3921, has comprised a series of Extended Protocols (XEPs, XMPP Extension Protocols).Extended Protocol XEP-0060 has defined a kind of distribution subscription mechanism, and XEP-0137 provides the way of a kind of issue streaming (stream) information on this basis.Its exemplary steps is: 1, information consumer is subscribed to certain type information to the publisher server; 2, the information of information publisher's certain type of issue on the publisher server; 3, publisher server notifies all to subscribe to the consumer of the type information; 4, information consumer is obtained actual information to the information publisher place.There are many weak points in above-mentioned mechanism, as when having only the information publisher online, the consumer just can obtain its information releasing; All information consumer all need to obtain information to the publisher place, have increased publisher's network traffics; Slow or release news when very big when information publisher's network speed, consumer's service quality is difficult to guarantee.
Summary of the invention
The objective of the invention is to overcome the defective of XMPP Extended Protocol, improve service quality, thereby a kind of file publishing method based on instant messaging is provided based on the instant messaging file distribution.
To achieve the above object of the invention, the file publishing method based on instant messaging provided by the invention comprises initialization procedure and file distribution mechanism.
Described server initialization procedure may further comprise the steps:
11) IP (InternetProtocol, Internet Protocol) address and the JID (Jabber Identifier, Jabber identifier) by the definition of the IM server in XMPP network legitimate files server identifies, and sets up an online file server tabulation; Wherein, the IM server has been realized distribution subscription function described in the XMPP Extended Protocol XEP-0060;
12) file server sends to the IM server according to the XMPP agreement with service support information;
13) the IM server judges according to message publisher's IP address and JID sign whether this entity is legal file server, as legal, feeds back successful information to described file server, and this document server is joined in the online file server tabulation; Otherwise, to described file server feeding back unsuccessful message.
Described file distribution mechanism comprises the steps:
21) file distribution person gives out information to publisher server by client; Described giving out information contained the attribute information of file publishing; The attribute information of described file publishing comprises unique identification, description and the type of this document;
22) publisher server judges that according to the unique identification of file publishing whether Already in this document in the file publishing tabulation of publisher server, if exist, attribute information according to this file publishing in the described change publisher server that gives out information, return success message to file distribution person, issuing process is finished; Otherwise, continue execution in step 23);
23) publisher server judges whether this publisher is one of legitimate files server, if continue execution in step 27 according to message publisher's IP address and JID sign); Otherwise continue execution in step 24);
24) publisher server is selected an online file server from the tabulation of online file server, and the JID sign of this online file server is returned to file distribution person;
25) file distribution person sends the attribute information of file publishing and this document to step 23) the middle file server of selecting;
26) described file server gives out information to publisher server, and described giving out information contains in steps 24) in the attribute information of the file publishing that receives; The attribute information of described file publishing comprises unique identification, description and the type of this document;
27) publisher server adds a new record in the file publishing tabulation, comprises the attribute information of described file publishing in the described new record.
In the described step 11), the legal file server of described IM server definition be the server that will have an a series of IP address or a series of JID sign as legal file server.The IM server prevents that with this way any client file server that disguises oneself as from stealing user profile.
The attribute information of described file publishing also comprises file name, file size, file format, document creation time, file copyright information etc.
The unique identification of described file publishing is made up of two parts, and first is the file content summary, and second portion is file distribution person's a JID sign; Described synopsis generates by hash algorithm (as MD5, SHA1 etc.) according to the content of file.Synopsis is only relevant with the content of file itself, and irrelevant as description, type etc. with other attribute of file.In the system, the file with same synopsis can be regarded as same file.
Described step 24) in, adopt stochastic selection algorithm when selecting an online file server from online file server tabulation, Round-Robin algorithm or other can be realized the selection algorithm of load balancing between a plurality of file servers.
File publishing method provided by the invention replenishes as one of the described information distribution subscription of XMPP Extended Protocol method.After using the method file publishing, it is online that the publisher needn't keep, and other users can download to this file publishing from file server; Behind publisher's file publishing, no matter this document is downloaded how many times, and the publisher is only produced flow one time, has reduced publisher's network traffics; File server network speed and bandwidth are more guaranteed, the service quality when having improved the user's download file.
Description of drawings
Fig. 1 is the overall framework figure of file distribution of the present invention;
Fig. 2 is the initialized flow chart of server of the present invention;
Fig. 3 is the flow chart of file distribution of the present invention;
Fig. 4 is the sequential chart of file distribution of the present invention;
Fig. 5 is the schematic diagram of three class entities involved in the present invention.
Embodiment
File distribution solution provided by the invention relates to three class entities: IM server, file server and client (as shown in Figure 5).
Wherein, the IM server is an instant communication server of having realized XMPP basic agreement and related expanding agreement, and it comprises the module of being in charge of the information distribution subscription, is called publisher server among the present invention.Publisher server has independently JID, can with other client communication.The IM server mainly is responsible for basic functions such as user management, message route, subscribing relationship management.
Client refers to realize XMPP agreement instant communication client, and it is the software entity on the hardware device normally.
File server is responsible for storing the file of user's issue, brings in realization as a special client, has independently JID, can pass through IM server and other client communication.
Client can be connected to the IM server by various wireless or wired modes, comprises xDSL (transmission mechanism that uses the telephone wire mode to carry out data communication), WLAN (802.11a, 802.11b, 802.11g etc.), WWAN (802.16) and various Ethernet access way (10Mbps, 100Mbps, 1000Mbps and 10Gbps).
The IM server then directly is connected by the Ethernet local area network (LAN) with file server.
Below in conjunction with the drawings and specific embodiments, be further elaborated based on the instant messaging file publishing method provided by the invention.
Provided by the inventionly comprise initialization procedure and file distribution mechanism based on the instant messaging file publishing method.
Embodiment 1
As shown in Figure 1, the file distribution based on instant messaging provided by the invention comprises:
Step 100: initialization procedure.
Step 200: file publishing method.
In the implementation case, the initialization procedure of step 100 comprises following substep as shown in Figure 2:
Step 110: by configuration file or database, the IP address of definition legitimate files server and JID sign, and the online file server tabulation of a sky of initialization;
Step 111: file server sends to the IM server with the function that it provided and the service details of realization.Pass through xmlns=http in the implementation case: //jabber.org/protocol/disco#infopub shows that this entity realized the Extended Protocol described in the present invention;
Step 112:IM server is according to sender of the message's IP address and JID sign, judges the file server that this entity is whether legal.IP address and JID sign can directly directly be obtained from session attribute, do not need in the message additionally subsidiary;
Step 113: if this entity is legal file server, the IM server is added in it in the line file server list; Otherwise, the error message of IM server feedback.
As shown in Figure 3 and Figure 4, the file publishing method of step 200 comprises following substep:
Step 210: the interface is provided, treats attributes such as the type of shared file and description for user input;
Step 211: client sends issue an order to publisher server, has comprised the attributes such as unique identification, type and description of this file publishing in the order.In the implementation case, the unique identification of file is made up of two parts, and first is the SHA1 summary of file content, and second portion is file distribution person's JID.
Step 212: after publisher server is received message, unique identification by file checks that whether Already in this document in the file publishing tabulation, if exist, (attribute information of file publishing can also comprise file name, file size according to the attribute information of this file publishing in the described change publisher server that gives out information, file format, the document creation time, file copyright information etc.), return success message to file distribution person; Otherwise, continue execution in step 213.
Step 213: publisher server judges according to file distribution person's IP address and JID sign whether this publisher is one of legal file server, if continue execution in step 217; Otherwise, continue execution in step 214;
Step 214: publisher server is selected an online file server from the tabulation of online file server, and the JID sign of this online file server is returned to file distribution person.Adopt stochastic selection algorithm when selecting an online file server from online file server tabulation, Round-Robin algorithm or other can be realized the selection algorithm of load balancing between a plurality of file servers.
Step 215: file distribution person sends the attribute information of file publishing and this file publishing to step 214) the middle file server of selecting, and specify the JID of the founder of this file publishing for this document publisher;
Step 216: described file server gives out information to publisher server, and described giving out information contains in steps 215) in the attribute information of the file publishing that receives; The attribute information of described file publishing comprises unique identification, description and the type of this document.
Step 217: publisher server adds a new record in the file publishing tabulation, comprise the attribute information of described file publishing in the described new record.

Claims (4)

1. the file publishing method based on instant messaging comprises initialization procedure and file distribution mechanism, it is characterized in that,
Described server initialization procedure may further comprise the steps:
11) IP address and the JID by the definition of the IM server in XMPP network legitimate files server identifies, and sets up an online file server tabulation; Wherein, the IM server is an IM server of having realized distribution subscription function among the XMPP Extended Protocol XEP-0060;
12) file server sends to the IM server according to the XMPP agreement with service support information;
13) the IM server is according to the IP address and the JID sign of file server, judge whether this document server is legal file server, as legal, feed back successful information to described file server, and this document server is joined in the online file server tabulation; Otherwise, to described file server feeding back unsuccessful message.
Described file distribution mechanism comprises the steps:
21) file distribution person gives out information to publisher server by client; Described giving out information contained the attribute information of file publishing; The attribute information of described file publishing comprises unique identification, description and the type of this document;
22) publisher server judges that according to the unique identification of file publishing whether Already in this document in the file publishing tabulation of publisher server, if exist, attribute information according to this file publishing in the described change publisher server that gives out information, return success message to file distribution person, issuing process is finished; Otherwise, continue execution in step 23);
23) publisher server judges according to file distribution person's IP address and JID sign whether this publisher is one of legitimate files server, if continue execution in step 27); Otherwise, continue execution in step 24);
24) publisher server is selected an online file server from the tabulation of online file server, and the JID sign of this online file server is returned to the information publisher;
25) file distribution person sends the attribute information of file publishing and this document to step 24) the middle file server of selecting;
26) described file server gives out information to publisher server, and described giving out information contains in steps 25) in the attribute information of the file publishing that receives; The attribute information of described file publishing comprises unique identification, description and the type of this document;
27) publisher server adds a new record in the file publishing tabulation, comprises the attribute information of described file publishing in the described new record.
2. by the described file publishing method of claim 1, it is characterized in that the attribute information of described file publishing also comprises file name, file size, file format, document creation time, file copyright information based on instant messaging.
3. by the described file publishing method based on instant messaging of claim 1, it is characterized in that the unique identification of described file publishing is made up of two parts, first is the file content summary, and second portion is information publisher's a JID sign; Described synopsis generates by hash algorithm according to the content of file.
4. by the described file publishing method of claim 1 based on instant messaging, it is characterized in that, described step 24) in, adopt stochastic selection algorithm when selecting an online file server from online file server tabulation, Round-Robin algorithm or other can be realized the selection algorithm of load balancing between a plurality of file servers.
CN2006101716457A 2006-12-31 2006-12-31 Instant messaging based file publishing method Expired - Fee Related CN101212474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101716457A CN101212474B (en) 2006-12-31 2006-12-31 Instant messaging based file publishing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101716457A CN101212474B (en) 2006-12-31 2006-12-31 Instant messaging based file publishing method

Publications (2)

Publication Number Publication Date
CN101212474A true CN101212474A (en) 2008-07-02
CN101212474B CN101212474B (en) 2010-08-11

Family

ID=39612141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101716457A Expired - Fee Related CN101212474B (en) 2006-12-31 2006-12-31 Instant messaging based file publishing method

Country Status (1)

Country Link
CN (1) CN101212474B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031310A1 (en) * 2008-09-19 2010-03-25 华为技术有限公司 Method, device and system for accessing service based on extensible messaging and presence protocol (xmpp)
CN102546646A (en) * 2012-01-17 2012-07-04 深圳市乐唯科技开发有限公司 System and method for realizing voice talkback function
CN102571799A (en) * 2012-01-17 2012-07-11 深圳市乐唯科技开发有限公司 System and method for realizing extension of server
CN104426895A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Information processing method and terminal equipment
CN105787379A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Information management method and system as well as electronic device
CN106888240A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of page data dissemination method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179153A1 (en) * 2004-03-22 2006-08-10 Nam-Yul Lee Streaming based contents distribution network system and methods for splitting, merging and retrieving files
CN100407686C (en) * 2004-08-31 2008-07-30 腾讯科技(深圳)有限公司 Methoe for realizing object sharing in network storage service based on instant communication tool

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010031310A1 (en) * 2008-09-19 2010-03-25 华为技术有限公司 Method, device and system for accessing service based on extensible messaging and presence protocol (xmpp)
CN102546646A (en) * 2012-01-17 2012-07-04 深圳市乐唯科技开发有限公司 System and method for realizing voice talkback function
CN102571799A (en) * 2012-01-17 2012-07-11 深圳市乐唯科技开发有限公司 System and method for realizing extension of server
CN102546646B (en) * 2012-01-17 2015-06-24 深圳市乐唯科技开发有限公司 System and method for realizing voice talkback function
CN104426895A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Information processing method and terminal equipment
CN104426895B (en) * 2013-09-09 2018-07-03 联想(北京)有限公司 Information processing method and terminal device
CN105787379A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Information management method and system as well as electronic device
CN105787379B (en) * 2014-12-24 2018-10-16 北京奇虎科技有限公司 Approaches to IM and system and electronic equipment
CN106888240A (en) * 2015-12-16 2017-06-23 天脉聚源(北京)科技有限公司 A kind of page data dissemination method and system

Also Published As

Publication number Publication date
CN101212474B (en) 2010-08-11

Similar Documents

Publication Publication Date Title
CN101102211B (en) A method for sharing the document in data conference and its system
CN101212474B (en) Instant messaging based file publishing method
CN1855910B (en) Web based uniform communication system and method and Web communication managing device
EP1981219A1 (en) An apparatus for providing the end-to-end qos guarantee and a method thereof
KR101859235B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
Thomas et al. Enhancing MPEG DASH performance via server and network assistance
US8379544B2 (en) Communications
CN102299810B (en) Method and system for notifying group change event
MXPA06014817A (en) Method, system and computer program to enable sip event-based discovery of services and content within a community built on context information.
US8228824B2 (en) VoIP contextual information processing
WO2007140721A1 (en) A method and system for data transmission based on peer to peer
CN101984430A (en) Multi-user collaborative graphic editing method and system for mobile terminal
CN102209120A (en) Game picture sharing system and method based on P2P (Peer to Peer) technology
WO2023000936A1 (en) Data processing method, function device and readable storage medium
US20070263607A1 (en) Extensible metadata structure
US7983247B2 (en) Metadata collection
WO2013189338A2 (en) Method, device and system for achieving multi-service server distribution of session initiation protocol
JP6254530B2 (en) Apparatus and method for inviting subscription of contact information
JP2009539313A (en) Improved network communication
CN103139087B (en) A kind of for the load optimized method and system of presence information of file transmission in XMPP territory
CN101399781B (en) Message sending method, system, device and message server
CN116708391A (en) Signaling negotiation method, information transmission method and content distribution system
CN101026813B (en) Information processing method for communication system
Timmerer et al. Guest editorial adaptive media streaming
Tari et al. On the performance of web services

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100811

Termination date: 20121231