CN103546559B - Data distributing method and device - Google Patents
Data distributing method and device Download PDFInfo
- Publication number
- CN103546559B CN103546559B CN201310508307.8A CN201310508307A CN103546559B CN 103546559 B CN103546559 B CN 103546559B CN 201310508307 A CN201310508307 A CN 201310508307A CN 103546559 B CN103546559 B CN 103546559B
- Authority
- CN
- China
- Prior art keywords
- application program
- data
- node
- network
- adjacent
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of data distributing method and device.The data distributing method includes:Data distributing node receives the first application program and asked to the data distribution of the second application program;Data distributing node asks to determine the data distribution path between the first application program and the second application program according to data distribution;And the data distributed according to the first application program of data distribution path distribution to the second application program.By the present invention, the distribution efficiency of data is improved.
Description
Technical field
The present invention relates to internet arena, in particular to a kind of data distributing method and device.
Background technology
With the development of Internet technology and the emergence of various new applications, increasing large-scale application program
Need to carry out substantial amounts of data distribution between the thousands of machines in internet.Existing data dissemination techniques are to pass through
Embedded module in the application carries out data distribution, when carrying out data distribution, it is necessary to which application selection agent node, this
Data distributing method is unfriendly to application program, network occur fluctuating or act on behalf of failure when, existing data distribution without
Method ensures distribution efficiency.In addition, the above method is applied to point-to-point data distribution, for one-to-many or multi-to-multi application
The data distribution of program is less efficient.
For the problem of data distribution efficiency is low in the prior art, effective solution is not yet proposed at present.
The content of the invention
It is low to solve data distribution efficiency it is a primary object of the present invention to provide a kind of data distributing method and device
Problem.
To achieve these goals, according to an aspect of the invention, there is provided a kind of data distributing method.According to this hair
Bright data distributing method includes:Data distributing node receives the first application program please to the data distribution of the second application program
Ask;Data distributing node asks to determine the data distribution road between the first application program and the second application program according to data distribution
Footpath;And the data distributed according to the first application program of data distribution path distribution to the second application program.
Further, data distributing node according to data distribution ask to determine the first application program and the second application program it
Between data distribution path include:According to data distribution request the first application program of determination and the second application program in a network
Position;And determine that the first application program and second should according to the position of the first application program and the second application program in a network
With the data distribution path between program.
Further, the first application program is determined according to the position of the first application program and the second application program in a network
And the second data distribution path between application program includes:According to the first application program and the second application program in a network
Whether the application program of position judgment first and the second application program are in adjacent networks;If the first application program and second should
Be in program in adjacent networks, via the first data distributing node to the second data distributing node distribute the first application program to
The data that second application program is sent, wherein, position of first data distributing node with the first application program in a network is adjacent,
Position of second data distributing node with the second application program in a network is adjacent.
Further, the first application program is determined according to the position of the first application program and the second application program in a network
And the second data distribution path between application program includes:According to the first application program and the second application program in a network
Whether the application program of position judgment first and the second application program are in adjacent network;If the first application program and second
Application program, which is in, to be separated by network, and the data of the first application program are sent to the first core section using the first data distributing node
Point;The data of the first application program are sent to the second data distributing node using the first core node, wherein, the first data point
Hair node is adjacent with the first application program, and the second data distributing node is adjacent with the second application program, and the first core node is used for
Forward between the first data distributing node and the second data distributing node and distribute from the first application program to the second application program
Data.
Further, the first application program is determined according to the position of the first application program and the second application program in a network
And the second data distribution path between application program includes:According to the first application program and the second application program in a network
Whether the application program of position judgment first and the second application program are in adjacent network;If the first application program and second
The position of application program in a network is in the network being separated by, and the first application program is sent using the first data distributing node
Data are to the first core node;First core node sends the data of the first application program to the second core node;Second core
Heart node sends the data of the first application program to the second data distributing node, wherein, the first data distributing node and first
Application program is adjacent, and the second data distributing node is adjacent with the second application program, the first core node and the first data distribution section
Point is adjacent, and the second core node is adjacent with the second data distributing node.
Further, the first application program is determined according to the position of the first application program and the second application program in a network
And the second data distribution path between application program includes:If the first application program is applied to the second application program and the 3rd
Program sends data, according to the first application program and the second application program application program of position judgment first in a network and the
Whether two application programs are sentenced in adjacent network according to the position of the first application program and the 3rd application program in a network
Whether disconnected first application program and the 3rd application program are in adjacent network;If the first application program, second apply journey
Sequence and the 3rd application program are in the network being mutually separated by, and the number of the first application program is sent using the first data distributing node
The data of the first application program are sent to the second core node and the 3rd core according to the first core node, the first core node
Node;Second core node sends the data of the first application program to the second data distributing node, and the 3rd core node is by
The data of one application program are sent to the 3rd data distributing node, wherein, the first data distributing node and the first application program phase
Neighbour, the second data distributing node is adjacent with the second application program, and the 3rd data distributing node is adjacent with the 3rd application program, and first
Core node is adjacent with the first data distributing node, and the second core node is adjacent with the second data distributing node, the 3rd core section
Point is adjacent with the 3rd data distributing node.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of data delivery device.According to this hair
Bright data delivery device includes:Receiving unit, please to the data distribution of the second application program for receiving the first application program
Ask;Selecting unit, for being asked to determine the data distribution between the first application program and the second application program according to data distribution
Path;And Dispatching Unit, for the number distributed according to the first application program of data distribution path distribution to the second application program
According to.
Further, selecting unit includes:Locating module, for according to data distribution ask determine the first application program and
The position of second application program in a network;And distribution module, for being existed according to the first application program and the second application program
Position in network determines the data distribution path between the first application program and the second application program.
Further, distribution module includes:Judging submodule, for being existed according to the first application program and the second application program
Whether the application program of position judgment first and the second application program in network are in adjacent networks;First distribution submodule,
For when the first application program and the second application program are in adjacent networks, being counted via the first data distributing node to second
Distribute the data that are sent to the second application program of the first application program according to distribution node, wherein, the first data distributing node and the
The position of one application program in a network is adjacent, position phase of second data distributing node with the second application program in a network
It is adjacent.
Further, distribution module includes:Judging submodule, for being existed according to the first application program and the second application program
Whether the application program of position judgment first and the second application program in network are in adjacent network;Second distribution submodule
Block, for when the first application program and the second application program are in and be separated by network, being sent using the first data distributing node
The data of first application program are sent the data of the first application program to using the first core node to the first core node
Two data distributing nodes, wherein, the first data distributing node is adjacent with the first application program, the second data distributing node and second
Application program is adjacent, and the first core node is used between the first data distributing node and the second data distributing node forwarding by the
The data that one application program is distributed to the second application program.
Further, distribution module includes:Judging submodule, for being existed according to the first application program and the second application program
Whether the application program of position judgment first and the second application program in network are in adjacent network;3rd distribution submodule
Block, when being in for the position in the first application program and the second application program in a network in the network being separated by, utilize first
Data distributing node sends the data of the first application program to the first core node, and journey is applied by first using the first core node
The data of sequence are sent to the second core node, are sent the data of the first application program to the second data using the second core node
Distribution node, wherein, the first data distributing node is adjacent with the first application program, and the second data distributing node and second applies journey
Sequence is adjacent, and the first core node is adjacent with the first data distributing node, and the second core node is adjacent with the second data distributing node.
Further, distribution module includes:Judging submodule, in the first application program to the second application program and
When three application programs send data, applied according to the position judgment of the first application program and the second application program in a network first
Whether program and the second application program are in adjacent network, according to the first application program and the 3rd application program in a network
The application program of position judgment first and the 3rd application program whether in the adjacent network;4th distribution submodule, is used for
When the first application program, the second application program and the 3rd application program are in the network being mutually separated by, the first data are utilized
Distribution node sends the data of the first application program to the first core node, and the first core node is by the data of the first application program
Send to the second core node and the 3rd core node, the second core node and send the data of the first application program to the second number
According to distribution node, the 3rd core node sends the data of the first application program to the 3rd data distributing node, wherein, the first number
Adjacent with the first application program according to distribution node, the second data distributing node is adjacent with the second application program, the 3rd data distribution
Node is adjacent with the 3rd application program, and the first core node is adjacent with the first data distributing node, the second core node and second
Data distributing node is adjacent, and the 3rd core node is adjacent with the 3rd data distributing node.
By the present invention, receiving the first application program using data distributing node please to the data distribution of the second application program
Ask, and the data distribution path between first application program and the second application program is determined according to data distribution request, press
Distribute the method for the data that the first application program is distributed to the second application program according to data distribution path, solve data distribution effect
The problem of rate is low, and then improve the effect of data distribution efficiency.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structure chart of data distribution systems according to embodiments of the present invention;
Fig. 2 is data distribution systems DFD according to embodiments of the present invention;
Fig. 3 is the flow chart of data distributing method according to a first embodiment of the present invention;
Fig. 4 is the flow chart of data distributing method according to a second embodiment of the present invention;
Fig. 5 is the flow chart of determination distribution path according to a first embodiment of the present invention;
Fig. 6 is the schematic diagram of data distributing method corresponding with embodiment illustrated in fig. 5;
Fig. 7 is the flow chart of determination distribution path according to a second embodiment of the present invention;
Fig. 8 is the schematic diagram of data distributing method corresponding with embodiment illustrated in fig. 7;
Fig. 9 is the flow chart of determination distribution path according to a third embodiment of the present invention;
Figure 10 is the schematic diagram of data distributing method corresponding with embodiment illustrated in fig. 9;
Figure 11 is the flow chart of determination distribution path according to a fourth embodiment of the present invention;
Figure 12 is the schematic diagram of data distributing method corresponding with embodiment illustrated in fig. 11;
Figure 13 is the schematic diagram of data delivery device according to a first embodiment of the present invention;
Figure 14 is the schematic diagram of data delivery device according to a second embodiment of the present invention;
Figure 15 is the schematic diagram of data delivery device according to a third embodiment of the present invention;
Figure 16 is the schematic diagram of data delivery device according to a fourth embodiment of the present invention;
Figure 17 is the schematic diagram of data delivery device according to a fifth embodiment of the present invention;And
Figure 18 is the schematic diagram of data delivery device according to a sixth embodiment of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so that embodiments of the invention described herein for example can be with except scheming herein
Show or describe those beyond order implement.In addition, term " comprising " and " having " and their any deformation, it is intended that
In cover it is non-exclusive include, need not for example, containing the process of series of steps or unit, method, system, product or equipment
Be limited to those steps or the unit clearly listed, but may include not list clearly or for these processes, method,
The intrinsic other steps of product or equipment or unit.
Fig. 1 is the structure chart of data distribution systems according to embodiments of the present invention.As illustrated, the data distribution systems bag
Include fringe node, core node and management node.It should be noted that the fringe node in figure can be in the embodiment of the present invention
Data distributing node, core node can be the first core node in the embodiment of the present invention, second core node etc., hereafter
The data distributing node mentioned can correspond to the fringe node in figure, repeat no more.
Fringe node can be the data distribution program on each machine being deployed in application system.Each fringe node
It is reciprocity, can send data person or reception data person.The major function of fringe node is for application program
General data transceiver interface is provided, and is connected to nearby on some core node and accesses data distribution systems, is selected by dynamic
Select the strategy such as transmission path, data processing and realize that application addressing accelerates with data transfer.
Core node can be by more be distributed in each operator, each geographic area server group into every core
Heart node server may include one or more network egresses, be provided well for each node in whole data distribution systems
The network coverage.The major function of core node is to provide application program ID inquiries to realize using addressing, while passes through core
The network coverage ability of node is forwarded to data to realize delivery acceleration.
The effect of management node is to manage whole data distribution systems, including core node and the edge section of each application
Point.The major function of management node is the management of application program NameSpace, configuration management, monitoring alarm etc., ensures data distribution
The normal O&M of system.But in notebook data dissemination system, the management node does not undertake data in real data forwarding and turned
The responsibility of hair, therefore, in the case of no management node, notebook data dissemination system can also ensure the situation of distribution efficiency
The lower distribution for carrying out data.
Fig. 2 is data distribution systems DFD according to embodiments of the present invention.As illustrated, the data distribution systems can
To carry out data distribution between fringe node and fringe node, data point can be carried out between fringe node and core node
Hair, can also carry out data distribution between core node and core node, meanwhile, in the case where there is management node, may be used also
To realize management node and the communication of fringe node or core node.Data point below in conjunction with Fig. 2 to the embodiment of the present invention
The data flow interaction of hair system illustrates.
Solid line is routine data in figure, and dotted line is route data, and dotted line is management data, wherein, route data is used for table
Show the positional information of each node.
Solid line 1 represents that application program is given application data to local fringe node and is transmitted in Fig. 2, or from this rand
Application data is obtained on edge node.
Fig. 2 dotted lines 2 represent that fringe node configures from the machine or management node obtains the application program ID of the machine, and to core
Heart Node registry application program ID obtains application program ID from core node.
The application route of each fringe node is mutually in step in Fig. 2 between the expression of dotted line 3 core node.
Dotted line 4 represents that fringe node inquires about application route from core node in Fig. 2, and destination application is route
Detection, selects optimal transmission path.
Solid line 5 represents that application data according to routing select result, is forwarded to core node or other by fringe node in Fig. 2
Fringe node, or receive the application data sent of core node.
After solid line 6 represents that core node receives application data in Fig. 2, other core nodes or target side are forwarded the data to
Edge node.
Fig. 2 dotted lines 7 represent that the statistics of local is sent to management node and collected by fringe node.
Fig. 2 dotted lines 8 represent that management node will apply the information such as ID, configuration to be distributed to core node and fringe node.
In the data distribution systems, fringe node provides general data transceiver interface.Application program only need to it is adjacent
Fringe node interact, it is possible to it is reliable, quickly transmit data to one or more application targets, or from one
Or receive data in multiple application program targets.Fringe node is responsible for selecting best transmission mode and transmission path, without application
Program awareness network topological sum transmits details.
Application program can describe one or more application program targets by the application ID of customized stratification, such as
App1.node1.shanghai.huadong.dx, this ID describe the application 1 of telecommunications East China Shanghai node 1.Edge section
Point is to core node registrer application ID, and core node, which is safeguarded, entirely applies NameSpace, and fringe node can be according to application
Program ID searches out unique application program.Fringe node and core node interact using route, realize accurately match or
Represent that target is the application 1 on all nodes by the application addressing of rule match, such as app1.*, * .huadong.dx represent target
It is all applications of all nodes in telecommunications East China.
Core node and fringe node all have data forwarding function.For different data and send target, Ke Yidong
The optimal transmission speed of state real-time selection, host-host protocol and next-hop node, by the network coverage ability of core node by number
Reliably, quickly it is transferred to according to by optimal path on destination node, realizes that the data distribution to cross operator, across geographic area adds
Speed.When network fluctuation or some core node break down, core node or fringe node can intelligently make route handoff,
Ensure the efficiency and stability of data distribution.
When it is multiple to send target, core node or fringe node can be according to file size, network bandwidth, mesh
The factors such as number, target phase recency are marked, it is intelligent that the merging of multiple targets is forwarded to next-hop node, continued by the node
Distribution, so as to effectively reduce the network bandwidth consumption of unit and improve efficiency of transmission.
The embodiments of the invention provide a kind of data distributing method.
Fig. 3 is the flow chart of data distributing method according to a first embodiment of the present invention.As illustrated, this method is included such as
Lower step:
Step S101, data distributing node receive the first application program and asked to the data distribution of the second application program.
Data distributing node receives the first application program and asked to the data distribution of the second application program, data distribution request
Can be the second application program ID sent to data distributing node, data distributing node is sent by receiving the first application program
The second application program ID receive data distribution from the first application program to the second application program ask.Wherein, second journey is applied
Sequence ID can need to carry out self-defined according to distributing programs and network, can characterize the ID using logic, can also use
Accurate or fuzzy ID describes application program, application program ID mentioned here can with the real ip address of application program without
Close, by this naming method can application program ID description more flexibly, it is simple.
Data distributing node mentioned here can be one or more data distributing nodes, and these data distributing nodes are also
Fringe node, core node and management node can be included.Wherein, fringe node can directly carry out data with application program
The node of transmitting-receiving, core node can be the nodes that data transmit-receive is directly carried out with fringe node and management node, management node
The id information of all programs in network can be managed.
It should be noted that fringe node mentioned here and core node are all data distributing nodes, can be carried out
The distribution of data, it is intended merely to description conveniently and introduces, do not form inappropriate limitation of the present invention.
Step S102, data distributing node according to data distribution ask to determine the first application program and the second application program it
Between data distribution path.
After data distributing node receives data distribution request, the second application program ID is can determine, second applies journey
Sequence ID can the position of the application program of making the grade second in a network.Data distributing node can be according to the second application program and first
The position of application program, calculate the data distribution path between the first application program and the second application program.It should be noted that
Mentioned here first, second is used to distinguish different application programs, is not used in the sequencing of defining application and residing
The position of network.
Preferably, data distributing node is after data distribution request is received, can according to current network-like or
The state of data distributing node dynamically selects optimal transmission path in data distribution systems.By dynamically selecting first
Data distribution path between application program and the second application program, can avoid network state bad or data distributing node
Distribution efficiency is reduced when breaking down, can ensure it is reliable, the first application data be quickly distributed to second apply journey
Sequence.
The distribution path of determination can distribute the data of the first application program by two data distributing nodes in network,
The data of the first application program can also be distributed by three data above distribution nodes in network.
Step S103, the data distributed according to the first application program of data distribution path distribution to the second application program.
It is determined that after data distribution path, distributing the first application program according to the data distribution path of determination should to second
With the data of program distribution.The data that transmitting path according to determination distributes the first application program can be via adjacent networks
Two data distributing nodes distribute the data of the first application program or via adjacent networks or be separated by network three
Data above distribution node distributes the data of the first application program.
Fig. 4 is the flow chart of data distributing method according to a second embodiment of the present invention.As illustrated, this method is included such as
Lower step:
Step S201, data distributing node receive the first application program and asked to the data distribution of the second application program.Number
The first application program is received according to distribution node to ask to the data distribution of the second application program, data distribution request can be to number
The the second application program ID sent according to distribution node, the second application that data distributing node is sent by receiving the first application program
Program ID receives the first application program and asked to the data distribution of the second application program.
Step S202, asked to determine the position of the first application program and the second application program in a network according to data distribution
Put.First application program can send the second application program ID should according to second to data distributing node, data distributing node
The position of the second application program is determined with program ID.Wherein, the first application program is adjacent with the first data distributing node, by true
The position of fixed first application program and the second application program determines that the first application program and the second application program are in adjacent net
Network or the network being separated by, the data distribution of the first application program and the second application program can be further determined that by the position
Path.
Step S203, the first application program is determined according to the position of the first application program and the second application program in a network
And the second data distribution path between application program.First application program and the second application program may be at adjacent networks or
It is separated by network, the position that data distributing node can be according to the first application program and the second application program in a network, determines
Data distribution path between one application program and the second application program.Such as:In the first application program and the second application program
During in adjacent networks, data distribution is carried out via two data distributing nodes, the two data distributing nodes can be two
Fringe node;When the first application program and the second application program are in the network being separated by, via three or three data above
Distribution node carries out data distribution, and three or three data above distribution nodes can include two fringe nodes and a core
Node, wherein, core node is used for the data for receiving the distribution of first edge node, and by the data forwarding to second edge section
Point.
Step S204, the data distributed according to the first application program of data distribution path distribution to the second application program.
After data distribution path is determined, according to data distribution path via two or three and three data above distribution nodes
Send data.
Fig. 5 is the flow chart of determination distribution path according to a first embodiment of the present invention.As illustrated, the flow illustrates
First application program and the second application program determined according to the position of the first application program and the second application program in a network
Between data distribution path, the method for the determination distribution path of embodiment illustrated in fig. 5 can be used as data distribution side shown in Fig. 4
The preferred embodiment of method, the method for the determination distribution path comprise the following steps:
Step S301, according to the application program of position judgment first of the first application program and the second application program in a network
With the second application program whether in adjacent networks.Data distributing node is receiving the distribution request of data of the first application program
When obtained the first application program in the position of network, after the second application program ID is obtained, can determine first
Application program and the second application program in adjacent networks or are separated by network in a network.
Step S302, if the first application program and the second application program are in adjacent networks, via the first data point
The data that hair node is sent to the first application program of the second data distributing node distribution to the second application program, wherein, the first number
Adjacent according to position of the distribution node with the first application program in a network, the second data distributing node is with the second application program in net
Position in network is adjacent.As shown in fig. 6, the first data distributing node can be the fringe node P1 in figure, the second data distribution
Node can be the fringe node P2 in figure, and the first application program (not shown) is adjacent with the first data distributing node P1,
When the data for needing to distribute are sent to the first data distributing node P1 by the first application program, the first data distributing node P1 is visited
The data distributing node surveyed around it, it is adjacent with the second application program to detect the second data distributing node P2, it is determined that will need
The data distribution of distribution is distributed to the second data distributing node P2 by the first data distributing node P1.Because P1 and P2 are not used in finger
Some fixed specific data distributing node, therefore, said process can also distribute data to first by the second distribution node P2
Data distributing node P1, accordingly by the data distribution of the second application program to the first application program.
Fig. 7 is the flow chart of determination distribution path according to a second embodiment of the present invention.As illustrated, the flow illustrates
First application program and the second application program determined according to the position of the first application program and the second application program in a network
Between data distribution path, the method for the determination distribution path of embodiment illustrated in fig. 7 can be used as data distribution side shown in Fig. 4
The preferred embodiment of method, the method for the determination distribution path comprise the following steps:
Step S401, according to the application program of position judgment first of the first application program and the second application program in a network
With the second application program whether in adjacent network.Data distributing node please in the distribution data for receiving the first application program
It is known that the first application program is in the position of network when asking, after the second application program ID is obtained, can determine
One application program and the second application program in adjacent networks or are separated by network in a network.
Step S402, it is separated by if the first application program and the second application program are in network, utilizes the first data point
Send out node and send the data of the first application program to the first core node.
It is determined that the first application program and the second application program pass through the first core node pair after being separated by network
Data are distributed.As shown in figure 8, the first data distributing node can be fringe node P1, the detection of the first data distributing node
The data distributing node of surrounding, can detect the first core node C1 and the second data distributing node P2, wherein, the second data
Distribution node P2 is the destination node of data distribution.First data distributing node P1 will need the data distribution distributed to the first core
Heart node C1.
Step S403, the data of the first application program are sent to the second data distributing node using the first core node,
Wherein, the first data distributing node is adjacent with the first application program, and the second data distributing node is adjacent with the second application program, the
One core node is used between the first data distributing node and the second data distributing node forwarding from the first application program to the
The data of two application programs distribution.
It is adjacent with the second application program that first core node detects the second data distributing node, it would be desirable to the data of distribution
The second data distributing node is forwarded to, data are distributed to the second application program by the second data distributing node.In the present embodiment
The first data distributing node can be fringe node P1 in embodiment illustrated in fig. 8, the second data distributing node can be Fig. 8
Fringe node P2 in illustrated embodiment, the first core node can be the core node C1 in embodiment illustrated in fig. 8.
Fig. 9 is the flow chart of determination distribution path according to a third embodiment of the present invention.As illustrated, the flow illustrates
First application program and the second application program determined according to the position of the first application program and the second application program in a network
Between data distribution path, the method for the determination distribution path of embodiment illustrated in fig. 9 can be used as data distribution side shown in Fig. 4
The preferred embodiment of method, the method for the determination distribution path comprise the following steps:
Step S501, according to the application program of position judgment first of the first application program and the second application program in a network
With the second application program whether in adjacent network.Data distributing node please in the distribution data for receiving the first application program
The first application program has been obtained when asking in the position of network, after the second application program ID is obtained, can determine
One application program and the second application program in adjacent networks or are separated by network in a network.
Step S502, if the position of the first application program and the second application program in a network is in the network being separated by
It is interior, the data of the first application program are sent to the first core node using the first data distributing node.
If the position of the first application program and the second application program in a network is in the network being separated by, first is utilized
Data distributing node, the second data distributing node and two core nodes are distributed the first application program and distributed to the second application program
Data.Before data distribution is carried out, the first data distributing node and the second data distributing node can first will be each adjacent
Application program ID send to adjacent core node, for example, the first data distributing node by the first application program ID send to
First core node adjacent with the first data distributing node, the second data distributing node by the second application program ID send to
The second adjacent core node of second data distributing node.First application program ID can be synchronized to network by the first core node
In other core nodes, similarly, the second application program ID can also be synchronized to other cores in network by the second core node
Heart node.
First data distributing node receives distribution of first application program to the second application program distribution data and asked, and first
Data distributing node sends the data for needing to distribute to the first core node.As shown in Figure 10, the first data distributing node can
To be the fringe node P1 in Figure 10, the first core node can be the core node C1 in Figure 10.Fringe node P1 is detected
Core node C1, core node C1 get the second application program ID, so as to judge that the sending node of next step is core section
Point C2, the core node C2 in figure can be the second core node in the present embodiment, the second core node and the second data point
It is adjacent to send out node.
Step S503, the first core node send the data of the first application program to the second core node.In the first core
Heart node detect next step transmission target be the second core node after, the data of the first application program are sent to second
Core node.As shown in Figure 10, will after core node C1 receives the data of the first application program of fringe node P1 transmissions
First application data is sent to core node C2.
Step S504, the second core node send the data of the first application program to the second data distributing node, wherein,
First data distributing node is adjacent with the first application program, and the second data distributing node is adjacent with the second application program, the first core
Heart node is adjacent with the first data distributing node, and the second core node is adjacent with the second data distributing node.As shown in Figure 10, core
Heart node C2 sends data to fringe node P2, and fringe node P2 is the second data distributing node in the present embodiment, edge
Node P2 is adjacent with the second application program.
, can be by the way that application program ID be synchronized in network first, in number by above-mentioned steps S501 to step S504
It when carrying out data distribution according to distribution node, can be addressed according to application program ID, select distribution path and carry out data point
Hair.
Figure 11 is the flow chart of determination distribution path according to a fourth embodiment of the present invention.It the flow diagrams illustrate according to
The position of one application program and the second application program in a network determines the number between the first application program and the second application program
According to distribution path, the method for the determination distribution path of embodiment illustrated in fig. 11 can be as the excellent of data distributing method shown in Fig. 4
Embodiment is selected, the method for the determination distribution path comprises the following steps:
Step S601, if the first application program sends data to the second application program and the 3rd application program, according to the
Whether one application program and the second application program application program of position judgment first in a network and the second application program are in
In adjacent network, according to the application program of position judgment first and of the first application program and the 3rd application program in a network
Whether three application programs are in adjacent network.If the first application program is sent out to the second application program and the 3rd application program
Data are sent, data distributing node can detect the position of the first application program, the second application program and the 3rd application program, according to
Whether the application program of position judgment first and the second application program of the first application program and the second application program are adjacent
Network, whether located according to the application program of position judgment first and the 3rd application program of the first application program and the 3rd application program
In adjacent network.
Step S602, if the first application program, the second application program and the 3rd application program are in the net being mutually separated by
In network, the data of the first application program are sent to the first core node using the first data distributing node.
First data distributing node sends the data of the first application program to the first core node.As shown in figure 12, first
Data distributing node can be the fringe node P1 in Figure 12, and the second application program can be fringe node P2 in figure, and the 3rd should
Can be that fringe node P3 or fringe node P4 in figure, fringe node P2 and fringe node P3 apply with second respectively with program
Program and the 3rd application program are adjacent.Fringe node P4 in Fig. 6 can also be adjacent with the 3rd application program.Wherein, edge section
The transmitting-receiving of data can also be directly carried out between point P4 and fringe node P5.
Step S603, the data of the first application program are sent to the second core node and the 3rd using the first core node
Core node.First core node of the embodiment can be the core node C1 shown in Figure 12, and the second core node can be
Core node C2 shown in Figure 12, the 3rd core node can be the core node C3 shown in Figure 12.Core node C1 is by first
Application data is distributed to core node C2 and core node C3, and core node C2 sends the first application data to side
Edge node P2, core node C3 send the first application data to fringe node P3.Each core node distribution first should
Unrelated with other core nodes the first application data of distribution with routine data, the data distribution of each core node is all only
Vertical, the data distribution of fringe node and the data distribution of core node are also independent.
After the first application data is distributed to the first core node by the first data distributing node, by the first core
Node continues to distribute first application data, meanwhile, the first data distributing node can continue to send out to the first core node
Other data of the first application program are sent, that is, the first data distributing node distribution data and core node distribution data are phases
Mutually independent process.
Because the data dissemination process of each node is independent, other data distributing nodes or core section are not influenceed
The data distribution efficiency of point, so as to during data forwarding is carried out.Data distributing node can distribute road with dynamic select
Footpath, also, each node can distribute data parallel in data dissemination process is carried out, and be mutually independent of each other distribution efficiency, so as to
Improve the distribution efficiency and stability of whole dissemination system.
Step S604, the second core node send the data of the first application program to the second data distributing node, and the 3rd
Core node sends the data of the first application program to the 3rd data distributing node, wherein, the first data distributing node and the
One application program is adjacent, and the second data distributing node is adjacent with the second application program, the 3rd data distributing node and the 3rd application
Program is adjacent, and the first core node is adjacent with the first data distributing node, the second core node and the second data distributing node phase
Neighbour, the 3rd core node are adjacent with the 3rd data distributing node.
Second core node can be core node C2 in Figure 12, and the second data distributing node can be the edge section in figure
Point P2, the 3rd data distributing node can be fringe node P3 or P4 in figure.Core node C2 is by the first application program number
The first application data is sent to fringe node P3 according to sending to fringe node P2, core node C3.Figure 12 also show
Core node C3 sends the first application data can be by the first application data to fringe node P4, fringe node P4
Send to application program adjacent thereto, meanwhile, the first application data can also be directly forwarded to side by fringe node P4
Edge node P5.
Fringe node P1 in figure is adjacent with the first application program, and fringe node P2 is adjacent with the second application program, edge
Node P3 and the 3rd application data, core node C1 is adjacent with fringe node P1, core node C2 and fringe node P2 phases
Neighbour, core node C3 are adjacent with fringe node P3.
In figure 12 it can be seen that each node is when next distribution node select, with the first application program with
The position of second application program is foundation, and selection carries out data distribution with the nearest node of each node.Carrying out Path selection
When can contemplate current network condition, can be carried out the selection in path in each node, so as to some section
Point selects other nodes to carry out data distribution when can not transmitting data, ensure that data distribution efficiency.
It should be noted that can in one embodiment of the invention use above-mentioned data distributing method in one kind or
It is a variety of, a variety of distribution methods are combined, the distribution stability of data distribution systems can be ensured, improve data distribution systems
Distribute efficiency.
The embodiment of the present invention additionally provides a kind of data delivery device.
The data distributing method of the embodiment of the present invention can by data statistics device that the embodiment of the present invention is provided come
Perform, the data delivery device of the embodiment of the present invention can be used for performing the data distribution side that the embodiment of the present invention is provided
Method.
Figure 13 is the schematic diagram of data delivery device according to a first embodiment of the present invention.As illustrated, the data distribution
Device includes receiving unit 10, selecting unit 20 and Dispatching Unit 30.
Receiving unit 10 is used to receive data distribution request of first application program to the second application program.Receiving unit 10
Receive the first application program to ask to the data distribution of the second application program, data distribution request can be to data distributing node
The the second application program ID sent, receiving unit 10 receive the by receiving the second application program ID that the first application program is sent
One application program is asked to the data distribution of the second application program.Wherein, the second application program ID can according to distributing programs and
Network needs to carry out self-defined, can characterize the ID using logic, can also use accurate or fuzzy ID descriptions application
Program, application program ID mentioned here can be unrelated with the real ip address of application program, can be with by this naming method
So that application program ID description is more flexibly, simply.
Selecting unit 20 is used to be asked to determine the number between the first application program and the second application program according to data distribution
According to distribution path.
After receiving unit 10 receives data distribution request, the second application program ID, the second application program can determine
ID can the position of the application program of making the grade second in a network.Selecting unit 20 can be applied according to the second application program and first
The position of program, calculate the data distribution path between the first application program and the second application program.It should be noted that here
Described first, second is used to distinguish different application programs, is not used in the sequencing of defining application and residing network
Positional information.
Preferably, receiving unit 10 is after data distribution request is received, can according to current network state or
The state of data distributing node dynamically selects optimal transmission path in data distribution systems.By dynamically selecting first
Data distribution path between application program and the second application program, can avoid network state bad or data distributing node
Distribution efficiency is reduced when breaking down, can ensure it is reliable, the first application data be quickly distributed to second apply journey
Sequence.
The distribution path of determination can distribute the data of the first application program by two data distributing nodes in network,
The data of the first application program can also be distributed by three data above distribution nodes in network.
Dispatching Unit 30 is used for the number distributed the first application program according to data distribution path and distributed to the second application program
According to.
After selecting unit 20 determines data distribution path, journey is applied according to the data distribution path distribution first of determination
The data that sequence is distributed to the second application program.According to determination transmitting path distribute the first application program data can be via
Two data distributing nodes distribute the data of the first application program or via adjacent networks or phase filter in adjacent networks
Three data above distribution nodes in network distribute the data of the first application program.
Figure 14 is the schematic diagram of data delivery device according to a second embodiment of the present invention.As illustrated, the data distribution
Device includes receiving unit 10, selecting unit 20 and Dispatching Unit 30, wherein, selecting unit 20 also includes the He of locating module 201
Distribution module 202.Wherein, receiving unit 10 and Dispatching Unit 30 and the receiving unit 10 and the function of Dispatching Unit 30 shown in Figure 13
It is identical, it will not be described here.
Locating module 201 is used to be asked to determine the first application program and the second application program in a network according to data distribution
Position.First application program can send the second application program ID to data distributing node, and data distributing node is according to
Two application program ID determine the position of the second application program.Wherein, the first application program is adjacent with data distributing node, by true
The position of fixed first application program and the second application program determines that the first application program and the second application program are in adjacent net
Network or the network being separated by, the data distribution of the first application program and the second application program can be further determined that by the position
Path.
Distribution module 202 is used to determine that first should according to the position of the first application program and the second application program in a network
With the data distribution path between program and the second application program.First application program and the second application program may be at same
Network or heterogeneous networks, may be at adjacent networks or be separated by network, data distributing node can according to the first application program and
The position of second application program in a network, determines the data distribution path between the first application program and the second application program.
Such as:When the first application program and the second application program are in adjacent networks, data are carried out via two data distributing nodes
Distribution, the two data distributing nodes can be two fringe nodes;Phase is in the first application program and the second application program
Every network when, carry out data distributions, three or three data above distributions via three or three data above distribution nodes
Node can include two fringe nodes and a core node, wherein, core node is used to receive the distribution of first edge node
Data, and by the data forwarding to second edge node.
Figure 15 is the schematic diagram of data delivery device according to a third embodiment of the present invention.As illustrated, the data distribution
Device includes judging submodule 2020 and the in receiving unit 10, Dispatching Unit 30, locating module 201 and distribution module 202
One distribution submodule 2021.Wherein, connecing shown in the receiving unit 10 in figure, Dispatching Unit 30 and locating module 201 and Figure 14
It is same to receive unit 10, Dispatching Unit 30 and the function phase of locating module 201, will not be described here.
Judging submodule 2020 is used for according to the first application program and the second application program position judgment in a network the
Whether one application program and the second application program are in adjacent networks.Receiving unit 10 is receiving the distribution of the first application program
The first application program has been obtained when request of data in the position of network, after the second application program ID is obtained, judgement
Submodule 2020 can determine that the first application program and the second application program are in adjacent net in a network according to application program ID
Network is separated by network.
First distribution submodule 2021 is used for when the first application program and the second application program are in adjacent networks, warp
The data sent from the first data distributing node to the first application program of the second data distributing node distribution to the second application program,
Wherein, position of first data distributing node with the first application program in a network is adjacent, the second data distributing node and second
The position of application program in a network is adjacent.When the first application program and the second application program are in adjacent networks, first point
Send out module 2021 and send the first application program to the second application program via the first data distributing node, the second data distributing node
Data.
Figure 16 is the schematic diagram of data delivery device according to a fourth embodiment of the present invention.As illustrated, the data distribution
Device includes judging submodule 2020 and the in receiving unit 10, Dispatching Unit 30, locating module 201 and distribution module 202
Two distribution submodules 2022.Wherein, connecing shown in the receiving unit 10 in figure, Dispatching Unit 30 and locating module 201 and Figure 14
It is same to receive unit 10, Dispatching Unit 30 and the function phase of locating module 201, will not be described here.
Judging submodule 2020 is used for according to the first application program and the second application program position judgment in a network the
Whether one application program and the second application program are in adjacent network.Data distributing node is receiving the first application program
The first application program has been obtained when distributing request of data in the position of network, after the second application program ID is obtained,
Judging submodule 2020 can determine that the first application program and the second application program are in phase in a network according to application program ID
Adjacent network is separated by network.
Second distribution submodule 2022 is used for when the first application program and the second application program are in and be separated by network, profit
The data of the first application program are sent to the first core node with the first data distributing node, using the first core node by first
The data of application program are sent to the second data distributing node, wherein, the first data distributing node is adjacent with the first application program,
Second data distributing node is adjacent with the second application program, and the first core node is used to count in the first data distributing node and second
The data distributed according to being forwarded between distribution node from the first application program to the second application program.It is determined that the first application program and
For second application program after being separated by network, the second distribution submodule 2022 sends first using the first data distributing node
The data of application program are sent the data of the first application program to the second number using the first core node to the first core node
According to distribution node.
First data distributing node can be fringe node P1 in Fig. 8, and the first data distributing node detects the data of surrounding
Distribution node, the first core node C1 and the second data distributing node P2 can be detected, wherein, the second data distributing node P2
For the destination node of data distribution.First data distributing node P1 will need the data distribution distributed to the first core node C1.
It is adjacent with the second application program that first core node detects the second data distributing node, it would be desirable to the data of distribution
The second data distributing node is forwarded to, data are distributed to the second application program by the second data distributing node.In the present embodiment
The first data distributing node can be fringe node P1 in embodiment illustrated in fig. 8, the second data distributing node can be Fig. 8
Fringe node P2 in illustrated embodiment, the first core node can be the core node C1 in embodiment illustrated in fig. 8.
Figure 17 is the schematic diagram of data delivery device according to a fifth embodiment of the present invention.As illustrated, the data distribution
Device includes judging submodule 2020 and the in receiving unit 10, Dispatching Unit 30, locating module 201 and distribution module 202
Three distribution submodules 2023.Wherein, connecing shown in the receiving unit 10 in figure, Dispatching Unit 30 and locating module 201 and Figure 14
It is same to receive unit 10, Dispatching Unit 30 and the function phase of locating module 201, will not be described here.
Judging submodule 2020 is used for according to the first application program and the second application program position judgment in a network the
Whether one application program and the second application program are in adjacent network.Data distributing node is receiving the first application program
The first application program has been obtained when distributing request of data in the position of network, after the second application program ID is obtained,
Judging submodule 2020 can determine that the first application program and the second application program are in phase in a network according to application program ID
Adjacent network is separated by network.
The position that 3rd distribution submodule 2023 is used in the first application program and the second application program in a network is in
When in the network being separated by, the data for sending the first application program using the first data distributing node utilize to the first core node
First core node sends the data of the first application program to the second core node, is applied using the second core node by first
The data of program are sent to the second data distributing node, wherein, the first data distributing node is adjacent with the first application program, and second
Data distributing node is adjacent with the second application program, and the first core node is adjacent with the first data distributing node, the second core section
Point is adjacent with the second data distributing node.
If the position of the first application program and the second application program in a network is in the network being separated by, first is utilized
Data distributing node, the second data distributing node and two core nodes are distributed the first application program and distributed to the second application program
Data.Before data distribution is carried out, the first data distributing node and the second data distributing node can first will be each adjacent
Application program ID send to adjacent core node, for example, the first data distributing node by the first application program ID send to
First core node adjacent with the first data distributing node, the second data distributing node by the second application program ID send to
The second adjacent core node of second data distributing node.First application program ID can be synchronized to network by the first core node
In other core nodes, similarly, the second application program ID can also be synchronized to other cores in network by the second core node
Heart node.
First data distributing node receives distribution of first application program to the second application program distribution data and asked, and first
Data distributing node sends the data for needing to distribute to the first core node.As shown in Figure 10, the first data distributing node can
To be the fringe node P1 in Figure 10, the first core node can be the core node C1 in Figure 10.Fringe node P1 is detected
Core node C1, core node C1 get the second application program ID, so as to judge that the sending node of next step is core section
Point C2, the core node C2 in figure can be the second core node in the present embodiment, the second core node and the second data point
It is adjacent to send out node.
The first core node detect next step transmission target be the second core node after, by the first application program
Data send to the second core node.As shown in Figure 10, core node C1 receives the first application of fringe node P1 transmissions
After the data of program, the first application data is sent to core node C2.Core node C2 sends data to edge
Node P2, fringe node P2 are the second data distributing nodes in the present embodiment, and fringe node P2 is adjacent with the second application program.
Figure 18 is the schematic diagram of data delivery device according to a sixth embodiment of the present invention.As illustrated, the data distribution
Device includes judging submodule 2020 and the in receiving unit 10, Dispatching Unit 30, locating module 201 and distribution module 202
Four distribution submodules 2024.Wherein, connecing shown in the receiving unit 10 in figure, Dispatching Unit 30 and locating module 201 and Figure 14
It is same to receive unit 10, Dispatching Unit 30 and the function phase of locating module 201, will not be described here.
Judging submodule 2020 is used to send data to the second application program and the 3rd application program in the first application program
When, according to the application program of position judgment first and the second application program of the first application program and the second application program in a network
Whether in adjacent network, applied according to the position judgment first of the first application program and the 3rd application program in a network
Whether program and the 3rd application program are in adjacent network.
If the first application program sends data to the second application program and the 3rd application program, data distributing node can
The position of the first application program, the second application program and the 3rd application program is detected, is applied according to the first application program and second
Whether the application program of position judgment first and the second application program of program are in adjacent network, according to the first application program and
Whether the application program of position judgment first and the 3rd application program of the 3rd application program are in adjacent network.
4th distribution submodule 2024 is used to be in phase in the first application program, the second application program and the 3rd application program
When in the network being mutually separated by, the data of the first application program are sent to the first core node using the first data distributing node, the
One core node sends the data of the first application program will to the second core node and the 3rd core node, the second core node
The data of first application program send to the second data distributing node, the 3rd core node and send the data of the first application program
To the 3rd data distributing node, wherein, the first data distributing node is adjacent with the first application program, the second data distributing node with
Second application program is adjacent, and the 3rd data distributing node is adjacent with the 3rd application program, the first core node and the first data point
Hair node is adjacent, and the second core node is adjacent with the second data distributing node, the 3rd core node and the 3rd data distributing node
It is adjacent.
First data distributing node sends the data of the first application program to the first core node.As shown in figure 12, first
Data distributing node can be the fringe node P1 in Figure 12, and the second application program can be fringe node P2 in figure, and the 3rd should
Can be that fringe node P3 or fringe node P4 in figure, fringe node P2 and fringe node P3 apply with second respectively with program
Program and the 3rd application program are adjacent.Fringe node P4 in Fig. 6 can also be adjacent with the 3rd application program.Wherein, edge section
The transmitting-receiving of data can also be directly carried out between point P4 and fringe node P5.
First core node of the embodiment can be the core node C1 shown in Figure 12, and the second core node can be figure
Core node C2 shown in 12, the 3rd core node can be the core node C3 shown in Figure 12.Core node C1 should by first
Core node C2 and core node C3 are distributed to routine data, core node C2 sends the first application data to edge
Node P2, core node C3 send the first application data to fringe node P3.Each application of core node distribution first
Routine data is unrelated with other core nodes the first application data of distribution, and the data distribution of each core node is all independent
, the data distribution of fringe node and the data distribution of core node are also independent.
Second core node can be core node C2 in Figure 12, and the second data distributing node can be the edge section in figure
Point P2, the 3rd data distributing node can be fringe node P3 or P4 in figure.Core node C2 is by the first application program number
The first application data is sent to fringe node P3 according to sending to fringe node P2, core node C3.Figure 12 also show
Core node C3 sends the first application data can be by the first application data to fringe node P4, fringe node P4
Send to application program adjacent thereto, meanwhile, the first application data can also be directly forwarded to side by fringe node P4
Edge node P5.
Fringe node P1 in figure is adjacent with the first application program, and fringe node P2 is adjacent with the second application program, edge
Node P3 and the 3rd application data, core node C1 is adjacent with fringe node P1, core node C2 and fringe node P2 phases
Neighbour, core node C3 are adjacent with fringe node P3.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium.The computer-readable storage medium can have program stored therein,
The program is used to perform the part or all of step in above-mentioned data distributing method.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind
Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
- A kind of 1. data distributing method, it is characterised in that including:Data distributing node receives the first application program to the by receiving the second application program ID that the first application program is sent Two application programs data distribution request, wherein, application program by customized stratification application ID come describe one or Multiple application program targets;The data distributing node determines that first application program and described second applies journey according to data distribution request Data distribution path between sequence, the second application program ID can mark the position of the second application program in a network, wherein, institute Data distributing node is stated to be used for according to the state of current network state or the data distributing node dynamically from the number According to selecting optimal transmission path in distribution path;The data distributing node determines described the according to data distribution request Data distribution path between one application program and second application program includes:Asked to determine institute according to the data distribution State the position of the first application program and second application program in a network;And according to first application program and described The position of second application program in a network determines the data point between first application program and second application program Send out path;Wherein, the first application program ID and the second application program ID are unrelated with the practical IP of application program, management Node is used for the id information for managing all programs in network;AndThe data distributed according to data distribution path distribution first application program to second application program;If the first application program, the second application program and the 3rd application program are in the network that is mutually separated by and described first Application program sends data to second application program and the 3rd application program, is sent using the first data distributing node The data of first application program to the first core node, the first core node sends the data of the first application program to the second core Heart node and the 3rd core node;Second core node sends the data of the first application program to the second data distributing node, 3rd core node sends the data of the first application program to the 3rd data distributing node, wherein, the first data distributing node Adjacent with the first application program, the second data distributing node is adjacent with the second application program, the 3rd data distributing node and the 3rd Application program is adjacent, and the first core node is adjacent with the first data distributing node, the second core node and the second data distribution section Point is adjacent, and the 3rd core node is adjacent with the 3rd data distributing node.
- 2. data distributing method according to claim 1, it is characterised in that according to first application program and described The position of two application programs in a network determines the data distribution between first application program and second application program Path includes:According to the first application program described in the position judgment of first application program and second application program in a network With second application program whether in adjacent networks;If first application program and second application program are in adjacent networks, via the first data distributing node The data sent to the second data distributing node distribution first application program to second application program, wherein, it is described Position of first data distributing node with first application program in a network is adjacent, second data distributing node and institute It is adjacent to state the position of the second application program in a network.
- 3. data distributing method according to claim 1, it is characterised in that according to first application program and described The position of two application programs in a network determines the data distribution between first application program and second application program Path includes:According to the first application program described in the position judgment of first application program and second application program in a network With second application program whether in adjacent network;It is separated by if first application program and second application program are in network, utilizes the first data distributing node The data of first application program are sent to the first core node;The data of first application program are sent to the second data distributing node using first core node,Wherein, first data distributing node is adjacent with first application program, second data distributing node and institute It is adjacent to state the second application program, first core node is used in first data distributing node and second data point The data distributed from first application program to second application program are forwarded between hair node.
- 4. data distributing method according to claim 1, it is characterised in that according to first application program and described The position of two application programs in a network determines the data distribution between first application program and second application program Path includes:According to the first application program described in the position judgment of first application program and second application program in a network With second application program whether in adjacent network;If the position of first application program and second application program in a network is in the network being separated by, utilize First data distributing node sends the data of first application program to the first core node;First core node sends the data of first application program to the second core node;Second core node sends the data of first application program to the second data distributing node,Wherein, first data distributing node is adjacent with first application program, second data distributing node and institute It is adjacent to state the second application program, first core node is adjacent with first data distributing node,Second core node is adjacent with second data distributing node.
- 5. data distributing method according to claim 1, it is characterised in that according to first application program and described The position of two application programs in a network determines the data distribution between first application program and second application program Path includes:If first application program sends data to second application program and the 3rd application program, according to described first The first application program and described second applies journey described in the position judgment of application program and second application program in a network Whether sequence is sentenced in adjacent network according to the position of first application program and the 3rd application program in a network Whether first application program of breaking and the 3rd application program are in adjacent network.
- A kind of 6. data delivery device, it is characterised in that including:Receiving unit, first is received by receiving the second application program ID that the first application program is sent for data distributing node Application program is asked to the data distribution of the second application program, wherein, application program applies ID by customized stratification To describe one or more application program targets;Selecting unit, for according to the data distribution ask to determine first application program and second application program it Between data distribution path, the second application program ID can mark the position of the second application program in a network, wherein, the number It is used for according to distribution node according to the state of current network state or the data distributing node dynamically from the data point Hair selects optimal transmission path in path;The selecting unit includes:Locating module, for being asked according to the data distribution Determine the position of first application program and second application program in a network;And distribution module, for according to institute State the position of the first application program and second application program in a network and determine first application program and described second Data distribution path between application program;Wherein, the first application program ID and the second application program ID and application The practical IP of program is unrelated, and management node is used for the id information for managing all programs in network;AndDispatching Unit, for distributing first application program to second application program point according to the data distribution path The data of hair;If it is additionally operable to the first application program, the second application program and the 3rd application program to be in the network that is mutually separated by and institute State the first application program and send data to second application program and the 3rd application program, utilize the first data distribution section Point sends the data of the first application program to the first core node, the first core node by the data of the first application program send to Second core node and the 3rd core node;Second core node sends the data of the first application program to the second data distribution Node, the 3rd core node send the data of the first application program to the 3rd data distributing node, wherein, the first data distribution Node is adjacent with the first application program, and the second data distributing node is adjacent with the second application program, the 3rd data distributing node with 3rd application program is adjacent, and the first core node is adjacent with the first data distributing node, the second core node and the second data point Hair node is adjacent, and the 3rd core node is adjacent with the 3rd data distributing node.
- 7. data delivery device according to claim 6, it is characterised in that the distribution module includes:Judging submodule, for the position judgment institute according to first application program and second application program in a network The first application program and second application program are stated whether in adjacent networks;First distribution submodule, for when first application program and second application program are in adjacent networks, Distribute first application program to second application program to the second data distributing node via the first data distributing node The data of transmission, wherein, position of first data distributing node with first application program in a network is adjacent, described Position of second data distributing node with second application program in a network is adjacent.
- 8. data delivery device according to claim 6, it is characterised in that the distribution module includes:Judging submodule, for the position judgment institute according to first application program and second application program in a network The first application program and second application program are stated whether in adjacent network;Second distribution submodule, for when first application program and second application program are in and are separated by network, The data of first application program are sent to the first core node using the first data distributing node,The data of first application program are sent to the second data distributing node using first core node,Wherein, first data distributing node is adjacent with first application program, second data distributing node and institute It is adjacent to state the second application program, first core node is used in first data distributing node and second data point The data distributed from first application program to second application program are forwarded between hair node.
- 9. data delivery device according to claim 6, it is characterised in that the distribution module includes:Judging submodule, for the position judgment institute according to first application program and second application program in a network The first application program and second application program are stated whether in adjacent network;3rd distribution submodule, is in for the position in first application program and second application program in a network When in the network being separated by, the data of first application program are sent to the first core node using the first data distributing node,The data of first application program are sent to the second core node using first core node,The data of first application program are sent to the second data distributing node using second core node,Wherein, first data distributing node is adjacent with first application program, second data distributing node and institute It is adjacent to state the second application program, first core node is adjacent with first data distributing node,Second core node is adjacent with second data distributing node.
- 10. data delivery device according to claim 6, it is characterised in that the distribution module includes:Judging submodule, for sending data to second application program and the 3rd application program in first application program When, according to the first application program described in the position judgment of first application program and second application program in a network and Whether second application program exists in adjacent network according to first application program and the 3rd application program Whether the first application program described in the position judgment in network and the 3rd application program are in adjacent network;4th distribution submodule, in first application program, second application program and the 3rd application program When in the network being mutually separated by, the data of first application program are sent to the first core using the first data distributing node Heart node,First core node sends the data of first application program to the second core node and the 3rd core node,Second core node sends the data of first application program to the second data distributing node, the 3rd core Heart node sends the data of first application program to the 3rd data distributing node.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310508307.8A CN103546559B (en) | 2013-10-24 | 2013-10-24 | Data distributing method and device |
PCT/CN2014/089385 WO2015058705A1 (en) | 2013-10-24 | 2014-10-24 | Data distribution method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310508307.8A CN103546559B (en) | 2013-10-24 | 2013-10-24 | Data distributing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103546559A CN103546559A (en) | 2014-01-29 |
CN103546559B true CN103546559B (en) | 2018-02-02 |
Family
ID=49969598
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310508307.8A Active CN103546559B (en) | 2013-10-24 | 2013-10-24 | Data distributing method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103546559B (en) |
WO (1) | WO2015058705A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546559B (en) * | 2013-10-24 | 2018-02-02 | 网宿科技股份有限公司 | Data distributing method and device |
CN106790197A (en) * | 2016-12-30 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of cross-domain transmission method of flow data, device and system |
CN106713138A (en) * | 2016-12-30 | 2017-05-24 | 北京奇虎科技有限公司 | Cross-domain transmission method and apparatus of streaming data |
CN109981461B (en) * | 2017-12-27 | 2020-10-09 | 华为技术有限公司 | Data transmission method, device and system |
CN108366098B (en) * | 2018-01-19 | 2021-02-02 | 奇安信科技集团股份有限公司 | Data interaction method and device for network nodes |
WO2020042150A1 (en) * | 2018-08-31 | 2020-03-05 | 重庆小雨点小额贷款有限公司 | Blockchain system, information sharing method and related device |
CN109919704A (en) * | 2019-01-21 | 2019-06-21 | 浙江口碑网络技术有限公司 | A kind of distribution method of resource data, apparatus and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101658001A (en) * | 2007-04-12 | 2010-02-24 | 雅马哈株式会社 | Multicast distribution system and multicast distribution method |
CN103023768A (en) * | 2013-01-11 | 2013-04-03 | 中国科学院声学研究所 | Edge routing node and method for prefetching content from multisource by edge routing node |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006069601A2 (en) * | 2004-12-29 | 2006-07-06 | Sap Aktiengesellschaft | Optimizing vehicle loading operations |
US7660296B2 (en) * | 2005-12-30 | 2010-02-09 | Akamai Technologies, Inc. | Reliable, high-throughput, high-performance transport and routing mechanism for arbitrary data flows |
JP4637145B2 (en) * | 2007-07-20 | 2011-02-23 | 株式会社コナミデジタルエンタテインメント | Network system, node device, data distribution method, and program |
CN101540775B (en) * | 2009-04-30 | 2012-05-23 | 华为技术有限公司 | Method and device for distributing contents and network system for distributing contents |
CN103150304B (en) * | 2011-12-06 | 2016-11-23 | 郑红云 | Cloud Database Systems |
CN103218267A (en) * | 2013-04-16 | 2013-07-24 | 百度在线网络技术(北京)有限公司 | Method and device for system process of terminal to distribute data to application program process |
CN103546559B (en) * | 2013-10-24 | 2018-02-02 | 网宿科技股份有限公司 | Data distributing method and device |
-
2013
- 2013-10-24 CN CN201310508307.8A patent/CN103546559B/en active Active
-
2014
- 2014-10-24 WO PCT/CN2014/089385 patent/WO2015058705A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101658001A (en) * | 2007-04-12 | 2010-02-24 | 雅马哈株式会社 | Multicast distribution system and multicast distribution method |
CN103023768A (en) * | 2013-01-11 | 2013-04-03 | 中国科学院声学研究所 | Edge routing node and method for prefetching content from multisource by edge routing node |
Also Published As
Publication number | Publication date |
---|---|
CN103546559A (en) | 2014-01-29 |
WO2015058705A1 (en) | 2015-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103546559B (en) | Data distributing method and device | |
CN103491129B (en) | A kind of service node collocation method, pool of service nodes Register and system | |
CN102204188B (en) | Routing computation method and host node device in virtual network element | |
CN104521199B (en) | For the adaptation method of the distributed virtual switch, device and equipment | |
CN104243265B (en) | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration | |
CN102576343B (en) | Department of computer science unifies virtual machine migration method | |
CN105488892B (en) | A kind of method and server for robot queuing management | |
CN102318288B (en) | Method, equipment and system of node sorting and selection | |
CN103338150A (en) | Method and device for establishing information communication network system structure, as well as server and router | |
CN105323099B (en) | Business network flowmeter factor method, network resource scheduling method and network element | |
CN103475722A (en) | Implement system for business collaboration platform | |
CN106211810B (en) | A kind of data transmission method, equipment and system | |
CN101883029A (en) | Application implantation method and system in the cloud | |
WO2020028602A3 (en) | Method and system for a network presence platform with intelligent routing | |
CN105897827A (en) | Server node, local area network server cluster and realizing method thereof | |
CN105471954A (en) | SDN based distributed control system and user flow optimization method | |
CN103560967A (en) | Virtual data center mapping method sensing service requirement | |
CN103795575B (en) | A kind of system monitoring method towards multiple data centers | |
CN106549875A (en) | A kind of conversation managing method, device and load equalizer | |
CN109151009A (en) | A kind of CDN node distribution method and system based on MEC | |
CN107872340A (en) | A kind of method, veneer and the forwarding unit of veneer registration | |
CN105515977A (en) | Method, device and system for obtaining transmission path in network | |
CN106953926A (en) | A kind of method for routing and device | |
CN101355521B (en) | Control method for equalizing load, communication apparatus and communication system | |
CN103581317B (en) | A kind of method of network resources locating |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |