CN106302212A - A kind of data communications method and data communication equipment - Google Patents
A kind of data communications method and data communication equipment Download PDFInfo
- Publication number
- CN106302212A CN106302212A CN201610602625.4A CN201610602625A CN106302212A CN 106302212 A CN106302212 A CN 106302212A CN 201610602625 A CN201610602625 A CN 201610602625A CN 106302212 A CN106302212 A CN 106302212A
- Authority
- CN
- China
- Prior art keywords
- data
- node
- configuration information
- buffer zone
- data buffer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of data communications method and data communication equipment, described method is applied in data communication equipment, including: arranging repository information for each node in N number of node of described data communication equipment, wherein, N is the integer more than or equal to 2;Load and resolve described repository information, based on one group of Data distributing object that described repository information creating is corresponding with described each node, obtain N group Data distributing object;For described each node configuration data relief area, obtain N number of data buffer zone;Data communication is carried out based on described N group Data distributing object and described N number of data buffer zone.
Description
Technical field
The present invention relates to electronic technology field, particularly to a kind of data communications method and data communication equipment.
Background technology
Data distributing (DDS-Data Distribution Service) is in the middle of New-generation distributed real-time Communication for Power
Part technical specification, uses publish/subscribe framework, data-centered, it is provided that abundant Qos strategy, by OMG
(OMG) formulate, distribute the problems such as real-time, motility and Qos control for solving the data in Real-Time Distributed System.With this
Create many Data distributing middlewares based on technical specification, provide newly for inter-node communication each in distributed system
Means.At present, the Data distributing middleware control of the naval vessel in developed country, digital television system, flight simulation
Device and military network system are used widely.
In existing data communications method based on Data distributing, the configuration information of whole distribution service
Can only be used by native program, non-native program cannot directly use, so, when distributed system forming node being too much,
Native program needs create and safeguard that the number of configuration information and workload all can rise.
Visible, there is the work that configuration information is safeguarded in data communications method based on Data distributing of the prior art
Measure bigger technical problem.
Further, when distributed system lacking data traffic control and its communication data too much causes data to process speed
Degree and information rate be when mating, data delay can be caused to process, loss of data or program internal memory increase without limitation thus
Collapse, affects real-time and the stability of distributed system.
Visible, existing data communications method based on Data distributing exist when communication data is too much real-time and
The technical problem of poor stability.
Summary of the invention
The embodiment of the present invention provides a kind of data communications method and data communication equipment, is used for solving base of the prior art
There is the bigger technical problem of workload that configuration information is safeguarded in the data communications method in Data distributing, it is achieved increases and join
Put the motility of management, alleviate the technique effect of the workload that configuration information is safeguarded.
On the one hand the embodiment of the present application provides a kind of data communications method, is applied in data communication equipment, including:
Arranging repository information for each node in N number of node of described data communication equipment, wherein, N is for being more than
In the integer of 2;
Load and resolve described repository information, based on described repository information creating corresponding with described each node one
Group Data distributing object, obtains N group Data distributing object;
For described each node configuration data relief area, obtain N number of data buffer zone;
Data communication is carried out based on described N group Data distributing object and described N number of data buffer zone.
Optionally, described repository information includes initial configuration information and/or operational factor configuration information and/or data
Distribution service object's configuration information and/or Qos strategy configuration information.
Optionally, the described one group Data distributing corresponding with described each node based on described repository information creating
Object, including:
Obtain described initial configuration information;
Determine that described Data distributing object configuration information and described Qos strategy are joined based on described initial configuration information
The acquisition type of confidence breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information is obtained from the first repository corresponding with described acquisition type
And described Qos strategy configuration information;
The distribution of described data is created based on described Data distributing object configuration information and described Qos strategy configuration information
Service object.
Optionally, described from the repository corresponding with described acquisition type, obtain described Data distributing object join
Confidence breath and described Qos strategy configuration information, including:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then
From the i-th Data distributing object configuration obtaining described i-th node with described i-th node corresponding i-th repository
Information and Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and described Qos strategy
Configuration information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then
The i-th Data distributing object configuration information and the Qos strategy that obtain described i-th node from i-th preset configuration storehouse are joined
Confidence ceases, and when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
Optionally, described for described each node configuration data relief area, obtain N number of data buffer zone, including:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, base
In the jth data buffer zone that the configuration of described jth operational factor configuration information is corresponding with described jth node, when j is N,
Obtaining N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is for having data flow con-trol energy
The data buffer zone of power.
Optionally, described operational factor configuration information include deceleration threshold value corresponding with described deceleration threshold value first continue
Time threshold, recovery threshold value and second duration threshold corresponding with described recovery threshold value.
Optionally, described based on described N group Data distributing object and described N number of data buffer zone carry out data lead to
Letter, including:
When in described N number of node, any one node sends data, described data are positioned over corresponding with described node
The first data buffer zone in, by described first data buffer zone described data are processed and by with described node pair
The the first Data distributing object answered sends described data;Or
When in described N number of node, any one node receives data, divided by the first data corresponding with described node
Send out service object and described data are write in the first data buffer zone corresponding with described node, by described first data buffering
Described data are processed by district, obtain described data.
Optionally, described by described first data buffer zone, described data are processed, including:
Described first data buffer zone carries out assembling process according to the data type of described data, and to described data
Read or write speed is monitored and adjusts.
Optionally, the described read or write speed to described data is monitored and adjusts, including:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampling knot
Really;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result
Mesh;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain and described first data buffering number pair
The first duration answered;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends
One speed control information, to reduce the data transmission speed of described sender, makes data in described first data buffer zone process
Speed is more than information rate, thus reduces data buffering number, to maintain reading and writing data in described first data buffer zone
Velocity balance.
Optionally, when described first duration exceedes described duration threshold, the sender to described data sends out
After sending speed control information, described method also includes:
Obtain the second data buffering number in described first data buffer zone;
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain and described second data buffering number pair
The second duration answered;
Judge that described second duration exceedes described duration threshold;
When described second duration exceedes described duration threshold, the sender to described data sends the second speed
Degree control information, recovers data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
On the other hand the embodiment of the present application additionally provides a kind of data communication equipment, including:
Dispensing unit, for arranging repository information for each node in N number of node of described data communication equipment, its
In, N is the integer more than or equal to 2;
Data distributing Object Creation unit, is used for loading and resolve described repository information, based on described repository
One group of Data distributing object that information creating is corresponding with described each node, obtains N group Data distributing object;
Data buffer zone creating unit, for for described each node configuration data relief area, obtains N number of data buffering
District;
Data transmission unit, for based on described N group Data distributing object and described N number of data buffer zone number
According to communication.
Optionally, described repository information includes initial configuration information and/or operational factor configuration information and/or data
Distribution service object's configuration information and/or Qos strategy configuration information.
Optionally, described Data distributing Object Creation unit specifically for:
Obtain described initial configuration information;
Determine that described Data distributing object configuration information and described Qos strategy are joined based on described initial configuration information
The acquisition type of confidence breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information is obtained from the first repository corresponding with described acquisition type
And described Qos strategy configuration information;
The distribution of described data is created based on described Data distributing object configuration information and described Qos strategy configuration information
Service object.
Optionally, described Data distributing Object Creation unit specifically for:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then
From the i-th Data distributing object configuration obtaining described i-th node with described i-th node corresponding i-th repository
Information and Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and described Qos strategy
Configuration information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then
The i-th Data distributing object configuration information and the Qos strategy that obtain described i-th node from i-th preset configuration storehouse are joined
Confidence ceases, and when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
Optionally, described data buffer zone creating unit specifically for:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, base
In the jth data buffer zone that the configuration of described jth operational factor configuration information is corresponding with described jth node, when j is N,
Obtaining N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is for having data flow con-trol energy
The data buffer zone of power.
Optionally, described operational factor configuration information include deceleration threshold value corresponding with described deceleration threshold value first continue
Time threshold, recovery threshold value and second duration threshold corresponding with described recovery threshold value.
Optionally, described data transmission unit specifically for:
When in described N number of node, any one node sends data, described data are positioned over corresponding with described node
The first data buffer zone in, by described first data buffer zone described data are processed and by with described node pair
The the first Data distributing object answered sends described data;Or
When in described N number of node, any one node receives data, divided by the first data corresponding with described node
Send out service object and described data are write in the first data buffer zone corresponding with described node, by described first data buffering
Described data are processed by district, obtain described data.
Optionally, described data transmission unit specifically for:
Described first data buffer zone carries out assembling process according to the data type of described data, and to described data
Read or write speed is monitored and adjusts.
Optionally, described data transmission unit specifically for:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampling knot
Really;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result
Mesh;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain and described first data buffering number pair
The first duration answered;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends
One speed control information, to reduce the data transmission speed of described sender, makes data in described first data buffer zone process
Speed is more than information rate, thus reduces data buffering number, to maintain reading and writing data in described first data buffer zone
Velocity balance.
Optionally, described data transmission unit is additionally operable to:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain and described second data buffering number pair
The second duration answered;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends
Two speed control information, recover data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
Said one in the embodiment of the present application or multiple technical scheme, at least have following one or more technology effect
Really:
One, due to the technical scheme in the embodiment of the present application, be adopted as in N number of node of described data communication equipment is every
Individual node arranges repository information, and wherein, N is the integer more than or equal to 2;Load and resolve described repository information, based on institute
State one group of Data distributing object that repository information creating is corresponding with described each node, obtain N group Data distributing
Object;For described each node configuration data relief area, obtain N number of data buffer zone;Based on described N group Data distributing pair
As and described N number of data buffer zone carry out the technological means of data communication, so, each node in described data communication equipment
Be both provided with corresponding repository, thus user each node can be made as required to be owned by whole device needed for join
Confidence ceases, it is achieved the Decentralization to configuration information;Or make the node specified have the configuration information needed for whole device, and
Remaining node only has a small amount of configuration information, it is achieved the centralized management to configuration information;Or make the part in whole device save
Point uses the mode of Decentralization configuration information, and another part node uses the pattern of centralized management configuration information, it is achieved mixed
Close management mode, thus efficiently solve data communications method based on Data distributing of the prior art and there is configuration letter
Cease the technical problem that the workload safeguarded is bigger, it is achieved that increase the motility of configuration management, alleviate the work that configuration information is safeguarded
The technique effect that work is measured.
Two, due to the technical scheme in the embodiment of the present application, use described first data buffer zone according to described data
Data type carries out assembling process, and is monitored the read or write speed of described data and adjusts and use described first
Reading and writing data speed and data buffer number mesh in data buffer zone are sampled, it is thus achieved that sampled result;According to described sampling knot
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated during fruit;Judge described first data buffering
Whether number exceedes described deceleration threshold value;When described first data buffering number exceedes described deceleration threshold value, obtain with described
The first duration that first data buffering number is corresponding;Judge whether described first duration exceedes described persistent period threshold
Value;When described first duration exceedes described duration threshold, the sender to described data sends First Speed control
Information processed, to reduce the data transmission speed of described sender, makes data processing speed in described first data buffer zone be more than
Information rate, thus reduce data buffering number, to maintain reading and writing data velocity balance in described first data buffer zone
Technological means, so, data buffer zone is isolated data processing function and data transmission-receiving function, the simultaneously read-write to data
Speed is monitored, and controls the data volume in data buffer zone, thus solve data receiver and process influence each other problem and
In relief area, data transmit-receive speed irregular causes data delay to process, loss of data or program internal memory increase without limitation thus collapse
Burst, affect the real-time of distributed system and the technical problem of stability, it is achieved improve real-time and the skill of stability of system
Art effect.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, embodiment will be described below
The accompanying drawing used required in is briefly described, it should be apparent that, the accompanying drawing in describing below is only some of the present invention
Embodiment.
The flow chart of the Fig. 1 a kind of data communications method for providing in the embodiment of the present application one;
Fig. 2 is the first network topological diagram of data communication equipment described in the embodiment of the present application one;
Fig. 3 is the second network topological diagram of data communication equipment described in the embodiment of the present application one;
Fig. 4 is the specific implementation flow chart of step S102 in the embodiment of the present application one;
The structured flowchart of the Fig. 5 a kind of data communication equipment for providing in the embodiment of the present application two;
Fig. 6 is the detailed block diagram of the described data communication equipment in the embodiment of the present application two.
Detailed description of the invention
The embodiment of the present invention provides a kind of data communications method and data communication equipment, is used for solving base of the prior art
There is the bigger technical problem of workload that configuration information is safeguarded in the data communications method in Data distributing, it is achieved increases and join
Put the motility of management, alleviate the technique effect of the workload that configuration information is safeguarded.
Technical scheme in the embodiment of the present application is to solve above-mentioned technical problem, and general thought is as follows:
A kind of data communications method, is applied in data communication equipment, including:
Arranging repository information for each node in N number of node of described data communication equipment, wherein, N is for being more than
In the integer of 2;
Load and resolve described repository information, based on described repository information creating corresponding with described each node one
Group Data distributing object, obtains N group Data distributing object;
For described each node configuration data relief area, obtain N number of data buffer zone;
Data communication is carried out based on described N group Data distributing object and described N number of data buffer zone.
In technique scheme, each node being adopted as in N number of node of described data communication equipment arranges configuration
Storehouse information, wherein, N is the integer more than or equal to 2;Load and resolve described repository information, create based on described repository information
Build the one group Data distributing object corresponding with described each node, obtain N group Data distributing object;For described each
Node configuration data relief area, obtains N number of data buffer zone;Based on described N group Data distributing object and described N number of data
Relief area carries out the technological means of data communication, and so, it is the most right that each node in described data communication equipment is both provided with
The repository answered, thus user can make each node be owned by the configuration information needed for whole device as required, it is achieved right
The Decentralization of configuration information;Or make the node specified have the configuration information needed for whole device, and remaining node is only gathered around
There is a small amount of configuration information, it is achieved the centralized management to configuration information;Or make the part of nodes in whole device use dispersion pipe
The mode of reason configuration information, another part node uses the pattern of centralized management configuration information, it is achieved managed mixed mode, from
And efficiently solve data communications method based on Data distributing of the prior art and there is the work that configuration information is safeguarded
Measure bigger technical problem, it is achieved that increase the motility of configuration management, alleviate the technology effect of the workload that configuration information is safeguarded
Really.
In order to be better understood from technique scheme, below by accompanying drawing and specific embodiment to technical solution of the present invention
It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment is detailed to technical solution of the present invention
Thin explanation rather than the restriction to technical solution of the present invention, in the case of not conflicting, the embodiment of the present application and embodiment
In technical characteristic can be combined with each other.
Embodiment one
Refer to Fig. 1, for a kind of data communications method provided in the embodiment of the present application one, be applied to data communication equipment
In, described method includes:
S101: arranging repository information for each node in N number of node of described data communication equipment, wherein, N is big
In the integer equal to 2;
S102: load and resolve described repository information, based on described repository information creating and described each node pair
The one group of Data distributing object answered, obtains N group Data distributing object;
S103: for described each node configuration data relief area, obtain N number of data buffer zone;
S104: carry out data communication based on described N group Data distributing object and described N number of data buffer zone.
In specific implementation process, described data communication equipment can be specifically communication based on Data distributing system
Device, as in figure 2 it is shown, the N number of node in described data communication equipment is made up of fringe node and intermediate node, intermediate node will
Fringe node is divided into different communication networks, and fringe node and adjacent intermediate node in same communication network can be straight
Connecting letter, the fringe node communication at same communication network does not needs the forwarding by intermediate node.By arranging configuration information,
Specifying the forwarding path of data, the data making fringe node send can be forwarded in other communication network by intermediate node
At fringe node.
In the embodiment of the present application one, described data communication equipment can provide the management mould of following three kinds of configuration informations
Formula:
1, Decentralization pattern, joining needed for each node has described data communication equipment respectively in the most N number of node
Confidence ceases, and this pattern lower node is without obtaining information from other node, and applicable node is few, the simple situation of configuration information;
2, centralized management pattern, the node of specifying in the most N number of node has the configuration letter needed for described data communication equipment
Breath, remaining node the most only has a small amount of configuration information, for obtaining remaining required configuration information, constitutes " client-server
Device " structure, these nodes obtain specified configuration information by Data subject and the service node communication of acquiescence, be suitable for node many,
Data are carried out centralized and unified configuration management by the situation that configuration information is numerous and diverse;
3, managed mixed mode, i.e. combines Decentralization pattern and the feature of centralized management pattern, in N number of node
Partial node uses Decentralization pattern, and another part node uses centralized management pattern, and user can select according to own situation
Select setting.
Those skilled in the art can select suitable configuration information management pattern according to actually used demand, by arranging
Repository information, changes the Communication topology of each node in described data communication equipment, so that can directly lead between each node
Letter, as it is shown on figure 3, part of nodes can also carry out data forwarding as intermediate node, making can be direct between the non-intermediate node of part
Communication, is realized by intermediate node with communicating between other non-intermediate node.
When method in using the embodiment of the present application one carries out data communication, step S101 is first carried out, it may be assumed that for described
Each node in N number of node of data communication equipment arranges repository information, and wherein, N is the integer more than or equal to 2.
In the embodiment of the present application one, described repository information includes initial configuration information and/or operational factor configuration
Information and/or Data distributing object configuration information and/or Qos strategy configuration information.
In specific implementation process, described repository is used for preserving configuration information, e.g., controls the communication initialization side of node
Formula, it is provided that node communication parameter, arranges data structure information, Data distributing object definition and Qos strategy, by configuring letter
Breath structure system communication structure.
Only exist part configuration information under repository original state, arrange including communication object between data communication equipment and dress
Put the initial default parameter needed for each module, and data distribution relevant configuration needs user to customize, such as data field, data master
Topic, sending object, reception object and relevant Qos strategy etc..
After having performed step S101, the method in the embodiment of the present application just performs step S102, it may be assumed that loads and solves
Analyse described repository information, based on one group of Data distributing pair that described repository information creating is corresponding with described each node
As, obtain N group Data distributing object.
In the embodiment of the present application one, refer to Fig. 4, the specific implementation of step S102 is as follows:
S401: obtain described initial configuration information;
S402: determine described Data distributing object configuration information and described Qos based on described initial configuration information
The acquisition type of strategy configuration information, wherein, described acquisition type comprises the machine type or remote-type;
S403: obtain the configuration of described Data distributing object from the first repository corresponding with described acquisition type
Information and described Qos strategy configuration information;
S404: create described number based on described Data distributing object configuration information and described Qos strategy configuration information
According to distribution service object.
In the embodiment of the present application one, the specific implementation of step S303 is as follows:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then
From the i-th Data distributing object configuration obtaining described i-th node with described i-th node corresponding i-th repository
Information and Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and described Qos strategy
Configuration information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then
The i-th Data distributing object configuration information and the Qos strategy that obtain described i-th node from i-th preset configuration storehouse are joined
Confidence ceases, and when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
In specific implementation process, after in described N number of node, each node obtains initialization information from configuration information, inquiry
Distribution object definition information and the acquisition type of Qos test information, determine it is from this node repository according to described acquisition type
The middle communication information needed that obtains still obtains at other node, according to the configuration information obtained, arranges messaging parameter, registration
The data structure held, creates and manages each object of given Data distributing and Qos strategy that application is specified.Described data are divided
Send out service object to be specifically as follows: data field (Domain Participant), theme (Topic), publisher
(Publisher), subscriber (Subscriber), writer (Writer), reader (Reader) and listener (Listener) this
A little objects.After creating each Data distributing object, it is also possible to for each object distribution uniquely tagged storage of classifying.With
Time, it is that in Data distributing, each object is arranged (such as data field object, subject, sending object, monitoring by Qos strategy
Object etc.) needed for the parameter of specification self behavior, such as data reliability type, storage of history data P type, resource limit, send out
Send window size, whether support multicast and multicast address etc..
After having performed step S102, the method in the embodiment of the present application just performs step S103, it may be assumed that for described often
Individual node configuration data relief area, obtains N number of data buffer zone.
In the embodiment of the present application one, the specific implementation of step S103 is as follows:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, base
In the jth data buffer zone that the configuration of described jth operational factor configuration information is corresponding with described jth node, when j is N,
Obtaining N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is for having data flow con-trol energy
The data buffer zone of power.
Wherein, described operational factor configuration information include deceleration threshold value corresponding with described deceleration threshold value first continue time
Between threshold value, recover threshold value and second duration threshold corresponding with described recovery threshold value.
In specific implementation process, continue to use above-mentioned example, when data communication equipment be each node create each data
After distribution service object, data communication equipment just needs to arrange each node the data buffer zone of correspondence.Real in the application
Executing in example, described data buffer zone is divided into transmission data buffer zone and reception data buffer.Described transmission data buffer zone
It is responsible for sending the write management of data and reading management, monitors reading and writing data situation, control read or write speed;Described reception data are delayed
Rush district be responsible for receiving the write management of data and read management, monitor reading and writing data situation, control read or write speed.
After having performed step S103, the method in the embodiment of the present application just performs step S104, it may be assumed that based on described
N group Data distributing object and described N number of data buffer zone carry out data communication.
In the embodiment of the present application one, the specific implementation of step S104 is as follows:
When in described N number of node, any one node sends data, described data are positioned over corresponding with described node
The first data buffer zone in, by described first data buffer zone described data are processed and by with described node pair
The the first Data distributing object answered sends described data;Or
When in described N number of node, any one node receives data, divided by the first data corresponding with described node
Send out service object and described data are write in the first data buffer zone corresponding with described node, by described first data buffering
Described data are processed by district, obtain described data.
In the embodiment of the present application one, described by described first data buffer zone, described data are processed, including:
Described first data buffer zone carries out assembling process according to the data type of described data, and to described data
Read or write speed is monitored and adjusts.
In specific implementation process, continue to use above-mentioned example, when data communication equipment is the data distribution that each node creates
After service object and data buffer zone, between each node, just can carry out data communication.When sending data, first will send
Data are written to send data buffer zone, then determine to release news according to data type and data content, and e.g., data send model
Enclose and required sending object, thus data and the corresponding Data distributing object submitting to mate that releases news are entered
Row sends;When receiving data, first pass through the eavesdropping target in Data distributing object and obtain reception data, by receiving
Data buffer zone assembles receiving data, obtains described reception data.
Meanwhile, reading and writing data situation during data buffer zone also needs to real-time monitoring data relief area.In the embodiment of the present application
In one, the described read or write speed to described data is monitored and adjusts, including:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampling knot
Really;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result
Mesh;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain and described first data buffering number pair
The first duration answered;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends
One speed control information, to reduce the data transmission speed of described sender, makes data in described first data buffer zone process
Speed is more than information rate, thus reduces data buffering number, to maintain reading and writing data in described first data buffer zone
Velocity balance.
When described first duration exceedes described duration threshold, to sender's transmission speed control of described data
After information processed, described method also includes:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain and described second data buffering number pair
The second duration answered;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends
Two speed control information, recover data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
In specific implementation process, if the reading speed of data buffer zone is less than writing speed, untreatment data quantity
Exceeding deceleration threshold value, then control writing speed and be less than reading speed, (described Data Control is masked as number to arrange Data Control mark
According to a flag parameters in relief area, it is used for recording whether data buffer zone carried out data control manipulation), reduce untreated
Data bulk, if untreatment data quantity is set less than recovering threshold value and Data Control mark, then control writing speed with
Reading speed matches, so that described data communication equipment can also ensure that data while ensureing the speed of transmission data
Will not lose, improve the stability of described data communication equipment.
Embodiment two
Based on the inventive concept identical with the embodiment of the present application one, refer to Fig. 5, provide a kind of for the embodiment of the present application two
Data communication equipment, including:
Dispensing unit 10, for arranging repository information for each node in N number of node of described data communication equipment,
Wherein, N is the integer more than or equal to 2;
Data distributing Object Creation unit 20, is used for loading and resolve described repository information, based on described configuration
One group of Data distributing object that storehouse information creating is corresponding with described each node, obtains N group Data distributing object;
Data buffer zone creating unit 30, for for described each node configuration data relief area, obtains N number of data buffering
District;
Data transmission unit 40, for carrying out based on described N group Data distributing object and described N number of data buffer zone
Data communication.
In the embodiment of the present application two, dispensing unit 10 is for realizing preservation and the management of configuration information;Data distribution clothes
Business Object Creation unit 20 realizes data field in Data distributing (DomainParticipant), theme (Topic), issues
Person (Publisher), subscriber (Subscriber), writer (Writer), reader (Reader) and listener (Listener)
The establishment of these objects and management, be the core of data publication, data receiver, configuration querying;Described data buffer zone can be divided
For sending data buffer zone and reception data buffer, can also arrange in described data communication equipment data publication interface and
Data receiver interface, described data publication interface obtains from transmission data buffer zone and processes data, data after process being carried
Give appointment writer's object to be transmitted;Data are carried out by the reception data that data receiver interface listener object provides
Process and assemble, the data being completed are submitted to reception data buffer and preserves;Send data buffer zone and reading and writing data is provided
Interface, receives the data that program provides, allows data publication interface read wherein data, according to data buffering number or control letter
Breath controls the read or write speed of data;Reception data buffer preserves the data of data reception module write, and provides digital independent
Interface obtains data for program and speed controlling function controls data reading speed, according to data buffering number and control information control
Data reading speed processed, refer to Fig. 5, for the detailed block diagram of the described data communication equipment in the embodiment of the present application two.
In the embodiment of the present application two, between each node in described data communication equipment, use parallel construction, each node
Between can directly communicate, as shown in Figure 3.Configuration information can concentrate in appointment node and manage, it is possible to is dispersed in each node, passes through
Configuration information arrange data type that each node supported, the data field of support and under the transmitting and receiving data type that comprises,
Enable data to be distributed by the middleware of described data communication equipment and be designated node to receive.
In the embodiment of the present application two, described data communication equipment is made up of fringe node and intermediate node, intermediate node
Fringe node is divided into different communication networks, and fringe node and adjacent intermediate node in same communication network are permissible
Directly communication, the fringe node communication at same communication network does not needs the forwarding by intermediate node, as shown in Figure 2.Pass through
Arranging configuration information, it is intended that the forwarding path of data, the data making fringe node send can be forwarded to it by intermediate node
At fringe node in its communication network.
In the embodiment of the present application two, described repository information includes initial configuration information and/or operational factor configuration
Information and/or Data distributing object configuration information and/or Qos strategy configuration information.
In the embodiment of the present application two, Data distributing Object Creation unit 20 specifically for:
Obtain described initial configuration information;
Determine that described Data distributing object configuration information and described Qos strategy are joined based on described initial configuration information
The acquisition type of confidence breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information is obtained from the first repository corresponding with described acquisition type
And described Qos strategy configuration information;
The distribution of described data is created based on described Data distributing object configuration information and described Qos strategy configuration information
Service object.
In the embodiment of the present application two, Data distributing Object Creation unit 20 specifically for:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then
From the i-th Data distributing object configuration obtaining described i-th node with described i-th node corresponding i-th repository
Information and Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and described Qos strategy
Configuration information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then
The i-th Data distributing object configuration information and the Qos strategy that obtain described i-th node from i-th preset configuration storehouse are joined
Confidence ceases, and when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
In the embodiment of the present application two, data buffer zone creating unit 30 specifically for:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, base
In the jth data buffer zone that the configuration of described jth operational factor configuration information is corresponding with described jth node, when j is N,
Obtaining N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is for having data flow con-trol energy
The data buffer zone of power.
In the embodiment of the present application two, described operational factor configuration information includes deceleration threshold value and described deceleration threshold value pair
The first duration threshold, recovery threshold value and second duration threshold corresponding with described recovery threshold value answered.
In the embodiment of the present application two, data transmission unit 40 specifically for:
When in described N number of node, any one node sends data, described data are positioned over corresponding with described node
The first data buffer zone in, by described first data buffer zone described data are processed and by with described node pair
The the first Data distributing object answered sends described data;Or
When in described N number of node, any one node receives data, divided by the first data corresponding with described node
Send out service object and described data are write in the first data buffer zone corresponding with described node, by described first data buffering
Described data are processed by district, obtain described data.
In the embodiment of the present application two, data transmission unit 40 specifically for:
Described first data buffer zone carries out assembling process according to the data type of described data, and to described data
Read or write speed is monitored and adjusts.
In the embodiment of the present application two, data transmission unit 40 specifically for:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampling knot
Really;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result
Mesh;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain and described first data buffering number pair
The first duration answered;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends
One speed control information, to reduce the data transmission speed of described sender, makes data in described first data buffer zone process
Speed is more than information rate, thus reduces data buffering number, to maintain reading and writing data in described first data buffer zone
Velocity balance.
In the embodiment of the present application two, data transmission unit 40 is additionally operable to:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain and described second data buffering number pair
The second duration answered;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends
Two speed control information, recover data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
Data communication equipment described in the embodiment of the present application two provides data transmission, data receiver, configuration management, data to divide
Send out these functions of service middleware interactive interface, use standardized structure to design, it is not necessary to or amendment Correlation method for data processing generation
Code, in target software, data sending function is connected with data transmission relief area, data processing function connects with data receiver relief area
Connect, can be integrated in target software, make each composition software in system can improve configuration letter with integrated described data communication equipment
Breath maintenance efficiency, development efficiency and system deployment speed, reduce development cost.By unit in the integrated present invention, communication
The structure of device can be revised flexibly by arranging repository information, refer to Fig. 6.
By the one or more technical schemes in the embodiment of the present application, it is possible to achieve following one or more technology are imitated
Really:
One, due to the technical scheme in the embodiment of the present application, be adopted as in N number of node of described data communication equipment is every
Individual node arranges repository information, and wherein, N is the integer more than or equal to 2;Load and resolve described repository information, based on institute
State one group of Data distributing object that repository information creating is corresponding with described each node, obtain N group Data distributing
Object;For described each node configuration data relief area, obtain N number of data buffer zone;Based on described N group Data distributing pair
As and described N number of data buffer zone carry out the technological means of data communication, so, each node in described data communication equipment
Be both provided with corresponding repository, thus user each node can be made as required to be owned by whole device needed for join
Confidence ceases, it is achieved the Decentralization to configuration information;Or make the node specified have the configuration information needed for whole device, and
Remaining node only has a small amount of configuration information, it is achieved the centralized management to configuration information;Or make the part in whole device save
Point uses the mode of Decentralization configuration information, and another part node uses the pattern of centralized management configuration information, it is achieved mixed
Close management mode, thus efficiently solve data communications method based on Data distributing of the prior art and there is configuration letter
Cease the technical problem that the workload safeguarded is bigger, it is achieved that increase the motility of configuration management, alleviate the work that configuration information is safeguarded
The technique effect that work is measured.
Two, due to the technical scheme in the embodiment of the present application, use described first data buffer zone according to described data
Data type carries out assembling process, and is monitored the read or write speed of described data and adjusts and use described first
Reading and writing data speed and data buffer number mesh in data buffer zone are sampled, it is thus achieved that sampled result;According to described sampling knot
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated during fruit;Judge described first data buffering
Whether number exceedes described deceleration threshold value;When described first data buffering number exceedes described deceleration threshold value, obtain with described
The first duration that first data buffering number is corresponding;Judge whether described first duration exceedes described persistent period threshold
Value;When described first duration exceedes described duration threshold, the sender to described data sends First Speed control
Information processed, to reduce the data transmission speed of described sender, makes data processing speed in described first data buffer zone be more than
Information rate, thus reduce data buffering number, to maintain reading and writing data velocity balance in described first data buffer zone
Technological means, so, data buffer zone is isolated data processing function and data transmission-receiving function, the simultaneously read-write to data
Speed is monitored, and controls the data volume in data buffer zone, thus solve data receiver and process influence each other problem and
In relief area, data transmit-receive speed irregular causes data delay to process, loss of data or program internal memory increase without limitation thus collapse
Burst, affect the real-time of distributed system and the technical problem of stability, it is achieved improve real-time and the skill of stability of system
Art effect.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.)
The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Specifically, the computer program instructions that the data communications method in the embodiment of the present application is corresponding can be stored in
CD, hard disk, on the storage medium such as USB flash disk, when the computer program instructions quilt corresponding with data communications method in storage medium
When one electronic equipment reads or is performed, comprise the steps:
Arranging repository information for each node in N number of node of described data communication equipment, wherein, N is for being more than
In the integer of 2;
Load and resolve described repository information, based on described repository information creating corresponding with described each node one
Group Data distributing object, obtains N group Data distributing object;
For described each node configuration data relief area, obtain N number of data buffer zone;
Data communication is carried out based on described N group Data distributing object and described N number of data buffer zone.
Optionally, in described storage medium, the repository information of storage includes initial configuration information and/or operational factor
Configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
Optionally, in described storage medium storage and step: based on described repository information creating and described each joint
One group of Data distributing object that point is corresponding, corresponding computer program instructions when executed, including:
Obtain described initial configuration information;
Determine that described Data distributing object configuration information and described Qos strategy are joined based on described initial configuration information
The acquisition type of confidence breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information is obtained from the first repository corresponding with described acquisition type
And described Qos strategy configuration information;
The distribution of described data is created based on described Data distributing object configuration information and described Qos strategy configuration information
Service object.
Optionally, in described storage medium storage with step: obtain from the repository corresponding with described acquisition type
Taking described Data distributing object configuration information and described Qos strategy configuration information, corresponding computer program instructions is at quilt
During execution, including:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then
From the i-th Data distributing object configuration obtaining described i-th node with described i-th node corresponding i-th repository
Information and Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and described Qos strategy
Configuration information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then
The i-th Data distributing object configuration information and the Qos strategy that obtain described i-th node from i-th preset configuration storehouse are joined
Confidence ceases, and when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
Optionally, store in described storage medium and step: for described each node configuration data relief area, obtain N
Individual data buffer zone, corresponding computer program instructions when executed, including:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, base
In the jth data buffer zone that the configuration of described jth operational factor configuration information is corresponding with described jth node, when j is N,
Obtaining N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is for having data flow con-trol energy
The data buffer zone of power.
Optionally, in described storage medium, the operational factor configuration information of storage includes deceleration threshold value and described deceleration threshold
The first duration threshold, recovery threshold value and second duration threshold corresponding with described recovery threshold value that value is corresponding.
Optionally, in described storage medium storage and step: based on described N group Data distributing object and described N
Individual data buffer zone carries out data communication, corresponding computer program instructions when executed, including:
When in described N number of node, any one node sends data, described data are positioned over corresponding with described node
The first data buffer zone in, by described first data buffer zone described data are processed and by with described node pair
The the first Data distributing object answered sends described data;Or
When in described N number of node, any one node receives data, divided by the first data corresponding with described node
Send out service object and described data are write in the first data buffer zone corresponding with described node, by described first data buffering
Described data are processed by district, obtain described data.
Optionally, in described storage medium storage and step: by described first data buffer zone, described data are entered
Row processes, corresponding computer program instructions when executed, including:
Described first data buffer zone carries out assembling process according to the data type of described data, and to described data
Read or write speed is monitored and adjusts.
Optionally, store in described storage medium and step: the read or write speed of described data is monitored and adjusts,
Corresponding computer program instructions when executed, including:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampling knot
Really;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result
Mesh;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain and described first data buffering number pair
The first duration answered;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends
One speed control information, to reduce the data transmission speed of described sender, makes data in described first data buffer zone process
Speed is more than information rate, thus reduces data buffering number, to maintain reading and writing data in described first data buffer zone
Velocity balance.
Optionally, in described storage medium, also storage has other computer program instructions, and described other calculates
Machine instructs with step: when exceeding described duration threshold in described first duration, the sender to described data sends out
Speed control information is sent to be performed after performing, including:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain and described second data buffering number pair
The second duration answered;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends
Two speed control information, recover data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent
Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.
Claims (20)
1. a data communications method, is applied in data communication equipment, including:
Arranging repository information for each node in N number of node of described data communication equipment, wherein, N is more than or equal to 2
Integer;
Load and resolve described repository information, based on one group of number that described repository information creating is corresponding with described each node
According to distribution service object, obtain N group Data distributing object;
For described each node configuration data relief area, obtain N number of data buffer zone;
Data communication is carried out based on described N group Data distributing object and described N number of data buffer zone.
2. the method for claim 1, it is characterised in that described repository information include initial configuration information and/or
Operational factor configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
3. method as claimed in claim 2, it is characterised in that described based on described repository information creating and described each joint
One group of Data distributing object that point is corresponding, including:
Obtain described initial configuration information;
Described Data distributing object configuration information and described Qos strategy configuration letter is determined based on described initial configuration information
The acquisition type of breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information and institute is obtained from the first repository corresponding with described acquisition type
State Qos strategy configuration information;
Described Data distributing is created based on described Data distributing object configuration information and described Qos strategy configuration information
Object.
4. method as claimed in claim 3, it is characterised in that described obtain from the repository corresponding with described acquisition type
Take described Data distributing object configuration information and described Qos strategy configuration information, including:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then from
Described i-th node correspondence i-th repository obtains the i-th Data distributing object configuration information of described i-th node
And Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and the configuration of described Qos strategy
Information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then from
I preset configuration storehouse obtains i-th Data distributing object configuration information and the Qos strategy configuration letter of described i-th node
Breath, when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
5. method as claimed in claim 4, it is characterised in that described for described each node configuration data relief area, acquisition N
Individual data buffer zone, including:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, based on institute
State the jth data buffer zone that the configuration of jth operational factor configuration information is corresponding with described jth node, when j is N, obtain
N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is to have data flow con-trol ability
Data buffer zone.
6. method as claimed in claim 5, it is characterised in that described operational factor configuration information includes deceleration threshold value and institute
State the first duration threshold corresponding to deceleration threshold value, recover threshold value and the second persistent period threshold corresponding with described recovery threshold value
Value.
7. method as claimed in claim 6, it is characterised in that described based on described N group Data distributing object and described N
Individual data buffer zone carries out data communication, including:
When any one node sends data in described N number of node, described data are positioned over corresponding with described node the
In one data buffer zone, by described first data buffer zone, described data are processed and by corresponding with described node
First Data distributing object sends described data;Or
When in described N number of node, any one node receives data, by the first data distribution clothes corresponding with described node
Business object is by the first corresponding with described node for the write of described data data buffer zone, by described first data buffer zone pair
Described data process, and obtain described data.
8. method as claimed in claim 7, it is characterised in that described by described first data buffer zone, described data are entered
Row processes, including:
Described first data buffer zone carries out assembling process, and the read-write to described data according to the data type of described data
Speed is monitored and adjusts.
9. method as claimed in claim 8, it is characterised in that the described read or write speed to described data is monitored and adjusts
Whole, including:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampled result;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain corresponding with described first data buffering number
First duration;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends the first speed
Degree control information, to reduce the data transmission speed of described sender, makes data processing speed in described first data buffer zone
More than information rate, thus reduce data buffering number, to maintain reading and writing data speed in described first data buffer zone
Balance.
10. method as claimed in claim 9, it is characterised in that exceed described persistent period threshold in described first duration
During value, after sender's transmission speed control information of described data, described method also includes:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain corresponding with described second data buffering number
Second duration;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends the second speed
Degree control information, recovers data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
11. 1 kinds of data communication equipments, including:
Dispensing unit, for arranging repository information, wherein, N for each node in N number of node of described data communication equipment
For the integer more than or equal to 2;
Data distributing Object Creation unit, is used for loading and resolve described repository information, based on described repository information
Create the one group Data distributing object corresponding with described each node, obtain N group Data distributing object;
Data buffer zone creating unit, for for described each node configuration data relief area, obtains N number of data buffer zone;
Data transmission unit, leads to for carrying out data based on described N group Data distributing object and described N number of data buffer zone
Letter.
12. devices as claimed in claim 11, it is characterised in that described repository information include initial configuration information and/
Or operational factor configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
13. devices as claimed in claim 12, it is characterised in that described Data distributing Object Creation unit is specifically used
In:
Obtain described initial configuration information;
Described Data distributing object configuration information and described Qos strategy configuration letter is determined based on described initial configuration information
The acquisition type of breath, wherein, described acquisition type comprises the machine type or remote-type;
Described Data distributing object configuration information and institute is obtained from the first repository corresponding with described acquisition type
State Qos strategy configuration information;
Described Data distributing is created based on described Data distributing object configuration information and described Qos strategy configuration information
Object.
14. devices as claimed in claim 13, it is characterised in that described Data distributing Object Creation unit is specifically used
In:
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is the machine type, then from
Described i-th node correspondence i-th repository obtains the i-th Data distributing object configuration information of described i-th node
And Qos strategy configuration information, when i is N, obtain described Data distributing object configuration information and the configuration of described Qos strategy
Information;Or
Taking i successively is 1 to N, determines that the described acquisition type of the i-th node in described N number of node is remote-type, then from
I preset configuration storehouse obtains i-th Data distributing object configuration information and the Qos strategy configuration letter of described i-th node
Breath, when i is N, obtains described Data distributing object configuration information and described Qos strategy configuration information.
15. devices as claimed in claim 14, it is characterised in that described data buffer zone creating unit specifically for:
Taking j successively is 1 to N, obtains the jth operational factor configuration information of jth node in described N number of node, based on institute
State the jth data buffer zone that the configuration of jth operational factor configuration information is corresponding with described jth node, when j is N, obtain
N number of data buffer zone, wherein, each data buffer zone in described N number of data buffer zone is to have data flow con-trol ability
Data buffer zone.
16. devices as claimed in claim 15, it is characterised in that described operational factor configuration information include deceleration threshold value and
The first duration threshold, recovery threshold value and second persistent period corresponding with described recovery threshold value that described deceleration threshold value is corresponding
Threshold value.
17. devices as claimed in claim 16, it is characterised in that described data transmission unit specifically for:
When any one node sends data in described N number of node, described data are positioned over corresponding with described node the
In one data buffer zone, by described first data buffer zone, described data are processed and by corresponding with described node
First Data distributing object sends described data;Or
When in described N number of node, any one node receives data, by the first data distribution clothes corresponding with described node
Business object is by the first corresponding with described node for the write of described data data buffer zone, by described first data buffer zone pair
Described data process, and obtain described data.
18. devices as claimed in claim 17, it is characterised in that described data transmission unit specifically for:
Described first data buffer zone carries out assembling process, and the read-write to described data according to the data type of described data
Speed is monitored and adjusts.
19. devices as claimed in claim 18, it is characterised in that described data transmission unit specifically for:
Reading and writing data speed in described first data buffer zone and data buffer number mesh are sampled, it is thus achieved that sampled result;
Arithmetic average and the first data buffering number of described reading and writing data speed is calculated in real time according to described sampled result;
Judge whether described first data buffering number exceedes described deceleration threshold value;
When described first data buffering number exceedes described deceleration threshold value, obtain corresponding with described first data buffering number
First duration;
Judge whether described first duration exceedes described first duration threshold;
When described first duration exceedes described first duration threshold, the sender to described data sends the first speed
Degree control information, to reduce the data transmission speed of described sender, makes data processing speed in described first data buffer zone
More than information rate, thus reduce data buffering number, to maintain reading and writing data speed in described first data buffer zone
Balance.
20. devices as claimed in claim 19, it is characterised in that described data transmission unit is additionally operable to:
Obtain the second data buffering number in described first data buffer zone
Judge that whether described second data buffering number is less than described recovery threshold value;
When described second data buffering number is less than described recovery threshold value, obtain corresponding with described second data buffering number
Second duration;
Judge that described second duration exceedes described second duration threshold;
When described second duration exceedes described second duration threshold, the sender to described data sends the second speed
Degree control information, recovers data transmission speed, to maintain data transmission performance balance in described first data buffer zone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610602625.4A CN106302212B (en) | 2016-07-27 | 2016-07-27 | A kind of data communications method and data communication equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610602625.4A CN106302212B (en) | 2016-07-27 | 2016-07-27 | A kind of data communications method and data communication equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106302212A true CN106302212A (en) | 2017-01-04 |
CN106302212B CN106302212B (en) | 2019-06-25 |
Family
ID=57662760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610602625.4A Active CN106302212B (en) | 2016-07-27 | 2016-07-27 | A kind of data communications method and data communication equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302212B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130346580A1 (en) * | 2012-02-12 | 2013-12-26 | Electronics And Telecommunications Research Institute | Apparatus and method for generating qos profile for supporting data distribution service in cyber-physical system |
CN103984694A (en) * | 2013-02-12 | 2014-08-13 | 三星泰科威株式会社 | System and method for managing database in data distribution service |
KR101463468B1 (en) * | 2014-01-21 | 2014-12-02 | 국방과학연구소 | Cluster structure based on omg standard middleware and compatible omg standaed dds |
CN105245579A (en) * | 2015-09-16 | 2016-01-13 | 许继集团有限公司 | Power distribution network system massive data communication processing method and system |
-
2016
- 2016-07-27 CN CN201610602625.4A patent/CN106302212B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130346580A1 (en) * | 2012-02-12 | 2013-12-26 | Electronics And Telecommunications Research Institute | Apparatus and method for generating qos profile for supporting data distribution service in cyber-physical system |
CN103984694A (en) * | 2013-02-12 | 2014-08-13 | 三星泰科威株式会社 | System and method for managing database in data distribution service |
KR101463468B1 (en) * | 2014-01-21 | 2014-12-02 | 국방과학연구소 | Cluster structure based on omg standard middleware and compatible omg standaed dds |
CN105245579A (en) * | 2015-09-16 | 2016-01-13 | 许继集团有限公司 | Power distribution network system massive data communication processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN106302212B (en) | 2019-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107113232A (en) | The method and apparatus that NFV manages layout | |
CN105988688A (en) | Screen capture method and apparatus | |
CN103369054B (en) | A kind of acquisition tasks management method and system | |
CN102546839B (en) | Efficient and reliable software distribution method for large scale network | |
CN101616073B (en) | Telecommunications system and server apparatus | |
CN104253767A (en) | Virtual shard network implementing method and switch | |
CN114465941B (en) | Cluster computing flow simulation method, system and device based on packet receiving and transmitting cooperation | |
TWI713384B (en) | SYSTEM FOR WiFi ROUTE DISCOVERY IN VIRTUAL NETWORK | |
CN109088820A (en) | A kind of striding equipment link aggregation method, device, computing device and storage medium | |
CN110113406B (en) | Distributed computing service cluster system | |
CN108347477A (en) | Data transmission method for uplink, device and server | |
CN108718243A (en) | A kind of group technology of user terminal, Conference server, conference system | |
CN110278256A (en) | Block chain node accesses cochain method, relevant device and system | |
CN104734983A (en) | Scheduling system, method and device for service data request | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
CN112527523A (en) | Distributed message transmission method and system for high-performance computing multiple clouds | |
CN106713010B (en) | A kind of communication means and system of avionics network system | |
CN109582479B (en) | OpenDDS distributed communication method based on reflective memory card | |
CN105024929A (en) | Application awareness resource management method in software defined network | |
CN106254271A (en) | A kind of queue configuration method able to programme for software defined network and device | |
CN103299298A (en) | Service processing method and system | |
CN106302212A (en) | A kind of data communications method and data communication equipment | |
CN103152428A (en) | Method for carrying out service communication among nodes on cloud platform | |
CN112714146A (en) | Resource scheduling method, device, equipment and computer readable storage medium | |
CN105634792A (en) | Configuration information transmission method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |