Background technology
Development along with New Economy, it is more and more perfect that network becomes, it can provide multiple interactive modes such as Email, BBS, USENET, voice-enabled chat, Web conference, distance between the people has furthered, networks development has also promoted the variation of means of communication simultaneously, and traditional interactive mode can not satisfy people's requirement.Rapid development of network, the particularly widespread usage of Internet and correlation technique thereof in recent years make network become the mutual basic platform of present people.Under such background, calculate on several station servers that only have been confined to no longer as before in the network, but require all computers all to be dissolved into this overall situation of Distributed Calculation.
In this at present the hugest network environment of Internet, the complexity of application system architecture and institutional framework constantly increases, and traditional method for designing can't satisfy actual network interaction needs, and distributed, intellectuality is only the mutual basic orientation of planned network from now on.Mutual distributed target is will be with mutual transparent proceduresization, be independent of actual network node by the interworking entity of flexible stalwartness and finish reciprocal process, and the target of interactive intelligenceization is to realize the coordination of intelligent behavior between mutual both sides.
In current network interaction mode, instant messaging (Instant Messenger) technology can allow the user promptly carry out in real time alternately with mutual the other side on network.General instant communication method uses udp protocol to send and receive " message " in user interaction process, and the user is a service end, is again client.When login, subscriber's main station is connected on instant messaging service provider's the master server as client, when mutual both sides carry out when mutual, if both direct connections are more stable, their interaction content all is that form with UDP transmits between computer each other so.If both connections are not very stable, instant communication server can carry out transfer for both interaction contents so.
But current instant messaging technology is after mutual both sides connect, they fix in the position of network, in case the user moves to another network node from a network node, both connections and original interaction mode must rebulid, thereby this interactive mode is not emphasized the persistence and the robustness that connect.
From realizing angle, current network interaction still depends on the interactive mode based on client/server to a great extent, such network interaction all needs the evaluation work that a central server is handled the overwhelming majority, and client and service end are in diverse role.Client sends a request usually, and service end is in the status of a domination, obtains this request, calculates, and returns a result then and responds this request.This have a significant disadvantages to be exactly alternately: along with increasing of client's number of serving, the required resource that takies of service end also increases thereupon, thereby has finally restricted the growth of client's number.In addition, present network interaction depends on network communication protocol usually too much, and these agreements need to carry out repeatedly mutual in the process of finishing the work, thereby are easy to cause network congestion.
From higher level, current network instant communication method has embodied the peer-to-peer network thought of (Peer to Peer is called for short P2P later on) on different levels.The P2P technology is a kind of being used between the different pc users, and without the technology of direct swap data of trunking or service, it allows directly to carry out between the network user mutual, and does not need to be connected to server.Because eliminated intermediate link, so the P2P technology makes the communication on the network become easier, more direct.To distributed skew, the core that is to say network application is from the terminal equipment diffusion of central server to network edge from centralized for P2P directs network computation schema, and the all-network node can be set up the P2P dialogue.This make the interbehavior of people on network referred a higher level, people are participated in the network interaction in deep mode more initiatively go.But in the current general P2P implementation method, among the P2P equity side more emphasize into network node with and the user of representative, and lack reactivity, autonomy, ambulant consideration.
Mobile agent is a software entity independently, it has reactivity, autonomy, target goal and at outside the characteristics such as environment, also have mobility, promptly can independently move to another main frame from a main frame on network, representative of consumer is finished the task of appointment.Mobile agent can move in soft, the hardware net environment of isomery.The mobile agent computation schema can reduce asynchronous autonomous mutual, the dynamic adaptable network environment of offered load, raising communication efficiency, support disconnected operation, support in the Distributed Calculation effectively.The mobile agent computation schema has been concentrated the advantage of traditional distributed technology such as Client, distributed object technology, mobile code technology, and provides general, open, comprehensive, an easy Distributed Application Development Framework in conjunction with the distributed artificial intelligence technology.Mobile proxy technology for solve complexity, dynamic, distributed, intelligentized network interaction provides a kind of brand-new implementation method.
Summary of the invention
Technical problem: the purpose of this invention is to provide a kind of network distributed interacting method based on mobile agent, the distributed virtual interactive environment of in network, make up a location transparency, being convenient to control, utilize mobile agent in network, to move as required whenever and wherever possible and keep interaction mode as mutual peer-entities, for people provide dynamically interactive mode flexibly alternately in network, solve current network alternately, the deficiency of instant messaging and general P2P implementation method especially.
Technical scheme: network distributed interacting method of the present invention is: to tie up in open, the dynamic network environment carrying out location transparency, lasting with the interbehavior that is similar to human society and pass mutual by having independence, the intelligent and ambulant interactive agent that is realized by mobile agent for the user, interactive agent in this reciprocal process representative of consumer as mutual peer-entities.On the one hand, interactive agent is to have reactivity, autonomy, ambulant entity, can represent one or more users; On the other hand, a user can have one or more mutual peer identity simultaneously, shows as one or more interactive agent.
Described network distributed interacting method is the distributed virtual interactive environment that interactive user makes up a location transparency, is convenient to control, and the all-network node all is dissolved in this environment, for the multiple interactive mode in the network provides dynamically flexible services.
One, architecture
Network distributed interacting architecture based on mobile agent of the present invention comprises network (comprising network node), other execution environment, and interactive agent and network interaction are used.Other execution environment is the infrastructure that supports interactive agent, and it creates a location transparency, be convenient to control, safe and reliable running environment, for interactive agent provides various function supports, comprises establishments, operation, hang-up, termination, transmission, reception and protects.Interactive agent has intelligent and software entity independence as one, representative of consumer individuality or user group, suitable reaction is made in the service that utilizes other execution environment to provide, and anytime anywhere moves according to user's needs, and is comprehensive and support flexibly for providing alternately between the user.Network interaction is used and is finished different interactive modes and content based on dissimilar interactive agent.Network distributed interacting provides brand-new network interaction to use by the agency who creates difference in functionality.
In the described network distributed interacting method based on mobile agent, interactive agent utilizes different communication protocol to realize each other communication, and between the user is to realize by the communication between the interactive agent alternately.In network, the user is by the communication protocol of interactive agent control lower floor, and this control ability will make up transparent, a healthy and strong and reciprocal process flexibly for the user.
In the described network distributed interacting method based on mobile agent, interactive agent runs on dynamic environment, capacity of self-government with height, acceptance need also be served in network for it in mutual user's trust, the interbehavior of simulating human society and relation have certain intelligence and autonomous operation.
Two, method flow
1, creates network distributed interacting infrastructure and interactive agent
Network distributed interacting infrastructure of the present invention comprises directory service and all other execution environments.The user carries out network distributed interacting by interactive agent under the support of mutual infrastructure.
(1) sets up directory service
In the network distributed interacting method of the present invention, each interactive agent all is assigned with a unique sign, and this sign does not rely on concrete network and node environment.Mutual both sides depend on this and identify and locate and handle concrete mutual.Network distributed interacting of the present invention is located these interactive agent by directory service in constructed interactive environment.
In this method, set up one or more server for interactive agent provides one or more levels directory service, be used to register, inquire about, change and nullify sign, address, state and authority and other information that helps network interaction of interactive agent.
(2) create other execution environment, form network distribution type virtual interacting environment
In the network distributed interacting method of the present invention, each can be used to carry out mutual network node and all set up other execution environment for interactive agent, is used for creating, moves, hangs up, stops, transmits, receives and protects interactive agent.
A distributed virtual interactive environment is formed in other execution environment and directory service, and this environment is independent of network and concrete equipment, and gives virtual interactive space of user.The interactive agent of representative of consumer only depends on its running environment, so user's being not limited to specific node or region alternately and can anytime anywhere moving by the needs according to the user in this virtual interactive space in network.
(3) create interactive agent
Corresponding to different interactive application, the interactive agent of customization difference in functionality.An interactive application is made of a plurality of interactive agent and reciprocal process thereof.When carrying out network interaction, user side according to the role of dissimilar users and representative thereof create different numbers or (with) interactive agent of difference in functionality.
If the user is the individual consumer and represents single mutual role, creates an interactive agent so;
If the user is the individual consumer and represents multiple mutual role, creates a plurality of interactive agent so;
If the user is the user of colony and represents single mutual role, creates an interactive agent so;
If the user is the user of colony and represents multiple mutual role, creates a plurality of interactive agent so.
In the described network distributed interacting method, network node can resident a plurality of interactive agent, and an interactive agent can move to a plurality of network nodes.The sign that is all obtained to the directory service registration when each interactive agent is created and about self address, state, authority and other help the information of network interaction.
In the described network distributed interacting method, the distribution of interactive environment depends on the removable of interactive agent, and virtual the transparent of interactive agent position that depend on of interactive environment, and real-time positioning interaction agency and execution environment thereof are responsible in directory service, guarantees mutual dynamically and transparent.
2, network distributed interacting
In the described network distributed interacting method, concrete each time interactive step is divided into two stages after network distributed interacting infrastructure and interactive agent establishment: the mutual stage of (1) user and interactive agent, (2), interactive agent and other execution environment, mutual stage of directory service.
(1) the mutual stage of user and interactive agent
In this mutual stage, the user connects with the mutual side of want by the interactive agent request as required; The user asks to make to reply to the connecting of other mutual sides that interactive agent is submitted to; The user with to send to mutual side literal, voice, image and (or) image and other interactive information submit to interactive agent; Interactive agent with the mutual side's of receive literal, voice, image and (or) image and other interactive information submit to the user; The user asks interactive agent to migrate to the mutual node of specified network as required.
(2) interactive agent and other execution environment, mutual stage of directory service.
In this mutual stage, interactive agent is under other execution environment is supported, by the interactive agent of the interactive user of wanting in the directory service fixer network; The interactive agent of the interactive agent and the interactive user of wanting is by the communication exchange information between the agency; Interactive agent is moved to the network interaction node of indication according to user's request.
In described network distributed interacting method, the user by interactive agent and network interaction the other side connect location that process and interactive agent fixer network interactive agent process finish network interaction be connected; Exchange between user and the interactive agent literal, voice, image and (or) finish the transmission and the reception of network interaction information between the process of image and other interactive information and the interactive agent by the process of agent communication interchange information; Interactive agent migrates to the migration that another network interaction node is finished interactive agent according to user's request.
In the described network distributed interacting method, for the interactive agent of user interactions service from a node motion to another node, the interaction mode of that time continues to carry out keeping mutual continuity alternately with mutual the other side before the last node migration.
In the described network distributed interacting method, each interactive agent is all upgraded about self up-to-date address, state, authority and other to directory service after moving and is helped the information of network interaction; The user finish mutual after, the interactive agent of its representative is all nullified sign about self, address, state, authority and other help the information of network interaction to the directory service application when destroying.
In the described network distributed interacting method, for the interactive agent of user service has adaptability to changes to unexpected state and incident, make the network distributed interacting process have robustness and fault-tolerance, when a mutual node will be closed, all interactive agent moved to and continue in another mutual node to carry out alternately with the other side.
The step that described method comprises is specially:
Phase I, create network distributed interacting infrastructure and interactive agent, described network distributed interacting infrastructure comprises directory service and all other execution environments, the user carries out network interaction by interactive agent under the support of mutual infrastructure,
Step 1), set up directory service:
On one or more server, set up one or more levels directory service, be used to register, inquire about, change and nullify the sign, address, state, authority of interactive agent and other help the information of network interaction;
Step 2), create other execution environment, composition network distribution type virtual interacting environment:
Each can be used to carry out mutual network node and all set up other execution environment for interactive agent, is used for creating, moves, hangs up, stops, transmits, receives and protects interactive agent;
A distributed virtual interactive environment is formed in other execution environment and directory service, and the interactive agent of representative of consumer needs according to the user in this interactive environment anytime anywhere move;
Step 3), establishment interactive agent:
Corresponding to different interactive application, the interactive agent of customization difference in functionality, when carrying out network interaction, user side according to the role of dissimilar users and representative create different numbers or and the interactive agent of difference in functionality:
If the user is the individual consumer and represents single mutual role, create an interactive agent so,
If the user is the individual consumer and represents multiple mutual role, create a plurality of interactive agent so,
If the user is the user of colony and represents single mutual role, create an interactive agent so,
If the user is the user of colony and represents multiple mutual role, creates a plurality of interactive agent so;
Second stage, network distributed interacting:
Step 4), user and interactive agent are mutual:
The user connects with the mutual side of want by the interactive agent request as required, the user makes the request of connecting of other mutual sides in the interactive agent related network and replying, the user with to send to mutual side literal, image and or image information submit to interactive agent, interactive agent with the mutual the other side's of receive literal, voice, image and or image and other interactive information submit to the user, the user asks interactive agent to migrate to the mutual node of specified network as required;
Step 5), interactive agent and other execution environment, directory service are mutual:
Interactive agent is under other execution environment is supported, interactive agent by the interactive user of wanting in the directory service fixer network, interactive agent and mutual the other side's interactive agent communication exchange information, interactive agent is moved to the network interaction node of indication according to user's request.
Each interactive agent is assigned with a unique sign when creating, this sign does not rely on concrete network and node environment, mutual both sides depend on this and identify and locate and handle concrete network interaction, interactive agent to directory service register this sign and about self address, state, authority and other help the information of network interaction.
Each interactive agent from a node motion to another node, the interaction mode that moves preceding that time from a last node continues to carry out alternately with mutual the other side, node can resident a plurality of interactive agent, and an interactive agent can move to a plurality of network nodes.
Each interactive agent has the adaptability to changes to unexpected state and incident, makes reciprocal process have robustness and fault-tolerance, and when a mutual node will be closed, all interactive agent moved to and continue in another mutual node to carry out alternately with the other side.
Different interactive application is corresponding to the interactive agent of the difference in functionality that is customized and their Collaboration mode, in virtual distributed interactive environment, interactive agent has different types, provides corresponding interface to carry out finishing different interactive application alternately to other agencies.
The network distributed interacting mode comprise individual to individual, individual to colony, colony to three kinds of interactive modes of colony, described individuality is in the individual interactive mode, two interactive agent reside in carry out in the other execution environment of two network nodes mutual, each interactive agent is represented one or more users, and two interactive agent do not move, have a side to move both sides or both sides keep continuous reciprocal process when mobile always; Described individuality is in the group interaction mode, and an independent interactive agent is represented individual, the individual respectively corresponding interactive agent of each in the colony; Described colony is in the population distribution formula interactive mode, and two interactive agent are represented a mutual colony respectively.
Beneficial effect:
In the network distributed interacting method based on mobile agent of the present invention, complete reciprocal process of interactive agent encapsulation, the network node that independently moving to the user then needs is proceeded alternately, this interactive mode realized between mobile peer-to-peer and the mobile peer-to-peer (MP2MP:mobile peer to mobile peer) alternately.Specifically, method of the present invention has following beneficial effect:
(1) very busy or when running into the reason that is not useable for network interaction when the main frame at place, network interaction side, main frame or other main frame that can be used for network interaction that interactive agent is movable to the comparison free time continue to carry out alternately with mutual the other side, do not connect and do not need to disconnect, mutual the other side does not need to understand this behavior simultaneously.As seen, network distributed interacting method of the present invention has been realized the transparency of network interaction.
(2) network distributed interacting method of the present invention has been realized mutual between an entity and a plurality of entity.User's mutual by between the interactive agent can in real time and carry out mutual between a plurality of peer-entities.
(3) in network distributed interacting method of the present invention, the mutual function that realizes shared information between the interactive agent, and the mobility of interactive agent and intelligent more strengthened information sharing flexibly.Interactive agent moves to the place of mutual the other side's information needed, and does not influence mutual with the other side's reality, and need not the huge server and the bandwidth of excess in this reciprocal process.
(4) network distributed interacting method of the present invention provides communication at any time, the interactive service of interaction in time, the interactive agent that develops into of the development of 3G (Third Generation) Moblie technology and hand-held terminal device software and hardware provides more wide more powerful execution environment, interactive agent is between PC, and moving between PC and the hand-held terminal device and between the hand-held terminal device promoted communication at any time, timely interactive quality and mutual theory more.
(5) network distributed interacting method of the present invention has been strengthened the intelligent of network interaction, by expanding the intelligence of interactive agent, improve its knowledge and reactivity, can realize that automation is mutual, that is to say that mutual one can be enough independently moves to the place that can make a response according to the opposing party's interaction content.
(6) in network distributed interacting method of the present invention, the interactive agent of representative of consumer can its running environment of perception, and make suitable reaction according to the variation of environment, and reciprocal process can stalwartness be carried out constantly.The mutual network platform is isomery often, and exchange method of the present invention is independent of specific hardware environment, only depends on its running environment, thereby interactive agent can be for providing seamless reciprocal process between the user.
Embodiment
For a more detailed description to accompanying drawing some embodiment of the present invention below.
According to Fig. 1, the present invention is based upon on the basis of mobile proxy system, and concrete execution mode is (describing as Fig. 2):
1, sets up directory service
On one or more server, set up one or more levels directory service, registration, inquiry, change and nullify the sign, address, state, authority of interactive agent and other help the information of network interaction.
2, create other execution environment, form network distribution type virtual interacting environment
Each can be used to carry out mutual network node and all set up other execution environment for interactive agent.A distributed virtual interactive environment is formed in other execution environment and directory service.
3, create interactive agent
Corresponding to different interactive application, the interactive agent of customization difference in functionality, when carrying out network interaction, user side according to the role of dissimilar users and representative create different numbers or (with) interactive agent of difference in functionality.
If the user is the individual consumer and represents single mutual role, creates an interactive agent so;
If the user is the individual consumer and represents multiple mutual role, creates a plurality of interactive agent so;
If the user is the user of colony and represents single mutual role, creates an interactive agent so;
If the user is the user of colony and represents multiple mutual role, creates a plurality of interactive agent so.
4, implement concrete network interaction
(1) user and interactive agent are mutual
The user connects with the mutual side of want by the interactive agent request as required;
The user asks to make to reply to the connecting of other mutual sides that interactive agent is submitted to;
The user with to send to mutual side literal, voice, image and (or) image and other interactive information submit to interactive agent;
Interactive agent with the mutual side's of receive literal, voice, image and (or) image and other interactive information submit to the user;
The user asks interactive agent to migrate to the mutual node of specified network as required.
(2) interactive agent and other execution environment, directory service are mutual
Interactive agent is under other execution environment is supported, by the interactive agent of the interactive user of wanting in the directory service fixer network;
The interactive agent of the interactive agent and the interactive user of wanting is by the communication exchange information between the agency;
Interactive agent is moved to the network interaction node of indication according to user's request.
5, form diverse network distributed interactive mode
In the network distributed interacting method of the present invention, various actions mode that interactive agent is customized and the Collaboration mode between a plurality of interactive agent constitute different interactive application, form diverse network distributed interactive mode.
Describe three interactive mode embodiment of the present invention below in detail.
First kind of interactive mode: individual to individual distributed interactive mode
Fig. 3 has described individual distributed interactive mode to individuality, and two interactive agent reside in carries out alternately in the other execution environment of two network nodes, and each interactive agent represents one or more users.
(1) two interactive agent keeps non-moving state when mutual, describe as Fig. 3 (a), and each interactive agent correspondence a network node (locality).
(2) a mutual side moves to another network node, describes as Fig. 3 (b).In the present invention, a side who moves continues to keep being connected with the other side.Interactive agent is carried information (comprise and act on behalf of running status, interactive information and link information) and is reverted to interaction mode before the migration according to these information when a network node is moved to another network node in moving process.In this process, a side who moves does not have other mutual problems except may feeling unusually in moving side's moving process.
(3) mutual both sides move in reciprocal process, describe as Fig. 3 (c).Mutual both sides intelligence and entrained information according to self after moving rebulids connection.In the present invention, for the user, mutual both sides' connection effect with original connection for reality mutual is the same.
Second kind of interactive mode: individual to population distribution formula interactive mode
Fig. 4 has described individual distributed interactive mode to colony, and an independent interactive agent is represented individual, and each the individual respectively corresponding interactive agent in the colony.
Be convenient and describe that describe as Fig. 4, grey side's interactive agent represent individuality, the black interactive agent is represented each individuality in the colony respectively, can represent in the main frame of black resident at each.
In the reciprocal process of individuality to colony, the position of each mutual side all is transparent concerning the opposing party, and grey side's interactive agent needs and each black interactive agent is carried out alternately, and the black interactive agent is and grey side's interactive agent is carried out alternately.Interactive agent anytime anywhere moves according to user's demand.Represent individual grey side's interactive agent can represent a plurality of actual interactive user, and represent in the colony each individual black interactive agent also can represent a plurality of users.In the present invention, interactive agent is the application entity of network interaction reality, and the identity of its representative is determined by the user.
The third interactive mode: colony is to population distribution formula interactive mode
Fig. 5 has described the distributed interactive mode of colony to colony, and two interactive agent are represented a mutual colony respectively.
Describe for convenient, describe as Fig. 5, black interactive agent and grey side's interactive agent are represented two mutual colonies (black and ash side) respectively, body one by one (unique user) in the corresponding black of each the black main frame colony, and the body one by one (unique user) in the corresponding grey side of each the grey side's main frame colony.In network interaction, each main frame of a mutual side can be distributed in any position of the Internet.
In the reciprocal process of colony and colony, black or grey side's interactive agent move at corresponding main frame according to mutual needs.The reciprocal process of network is carried out representing between each side's the interactive agent, and the concrete position of this interactive agent is transparent for mutual the opposing party.In the present invention, this interactive mode is hidden the concrete identity of unique user in each mutual colony.From reciprocal process, two sides' connection is keeping always.