CN106302212B - A kind of data communications method and data communication equipment - Google Patents

A kind of data communications method and data communication equipment Download PDF

Info

Publication number
CN106302212B
CN106302212B CN201610602625.4A CN201610602625A CN106302212B CN 106302212 B CN106302212 B CN 106302212B CN 201610602625 A CN201610602625 A CN 201610602625A CN 106302212 B CN106302212 B CN 106302212B
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.)
Active
Application number
CN201610602625.4A
Other languages
Chinese (zh)
Other versions
CN106302212A (en
Inventor
邓亮
吴超蓉
罗浩
李硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201610602625.4A priority Critical patent/CN106302212B/en
Publication of CN106302212A publication Critical patent/CN106302212A/en
Application granted granted Critical
Publication of CN106302212B publication Critical patent/CN106302212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of data communications method and data communication equipment, the method is applied in data communication equipment, comprising: repository information is arranged for each node in N number of node of the data communication equipment, wherein N is the integer more than or equal to 2;The repository information is loaded and parses, based on the repository information creating one group of Data distributing object corresponding with each node, acquisition N group Data distributing object;For each node configuration data buffer area, N number of data buffer zone is obtained;Data communication is carried out based on the N group Data distributing object and N number of data buffer zone.

Description

A kind of data communications method and data communication equipment
Technical field
The present invention relates to electronic technology field, in particular to a kind of data communications method and data communication equipment.
Background technique
Data distributing (DDS-Data Distribution Service) is among New-generation distributed real time communication Part technical specification, it is data-centered using publish/subscribe framework, Qos strategy abundant is provided, by Object Management Organization (OMG) it formulates, for solving the problems such as data distribution real-time in Real-Time Distributed System, flexibility and Qos are controlled.With this Many Data distributing middlewares are produced based on technical specification, are provided newly for inter-node communication each in distributed system Means.Currently, the naval vessel control in developed country, digital television system, flight simulation of Data distributing middleware It is used widely in device and military network system.
In the existing data communications method based on Data distributing, the configuration information of entire distribution service It can only be used by native program, non-native program can not be used directly, in this way, when composition node is excessive in distributed system, Native program needs to create and safeguard that the number of configuration information and workload can all rise.
As it can be seen that in the prior art, based on the data communications method of Data distributing, there are the work that configuration information is safeguarded Measure larger technical problem.
Further, when lacking data traffic control in distributed system and its communication data excessively causes data processing fast When degree and information rate mismatch, will lead to data delay processing, loss of data or program internal memory increase without limitation to Collapse, influences the real-time and stability of distributed system.
As it can be seen that it is existing based on the data communications method of Data distributing when communication data is excessive there are real-time and The technical problem of stability difference.
Summary of the invention
The embodiment of the present invention provides a kind of data communications method and data communication equipment, for solving base in the prior art There is technical issues that configuration information maintenance in the data communications method of Data distributing, realizes to increase and match Set the technical effect of the flexibility of management, the workload for mitigating configuration information maintenance.
On the one hand the embodiment of the present application provides a kind of data communications method, be applied in data communication equipment, comprising:
For in N number of node of the data communication equipment each node be arranged repository information, wherein N be greater than etc. In 2 integer;
The repository information is loaded and parses, based on the repository information creating and each node corresponding one Group Data distributing object, obtains N group Data distributing object;
For each node configuration data buffer area, N number of data buffer zone is obtained;
Data communication is carried out based on the N group Data distributing object and N number of data buffer zone.
Optionally, the repository information includes initial configuration information and/or operating parameter configuration information and/or data Distribute service object's configuration information and/or Qos strategy configuration information.
Optionally, described based on the repository information creating one group of Data distributing corresponding with each node Object, comprising:
Obtain the initial configuration information;
Determine that the Data distributing object configuration information and the Qos strategy are matched based on the initial configuration information The acquisition type of confidence breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information is obtained from the first repository corresponding with the acquisition type And the Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the data distribution Service object.
Optionally, described to obtain the Data distributing object from repository corresponding with the acquisition type and match Confidence breath and the Qos strategy configuration information, comprising:
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is the machine type, then I-th of Data distributing object configuration of i-th of node is obtained from i-th of repository corresponding with i-th of node Information and Qos strategy configuration information obtain the Data distributing object configuration information and Qos strategy when i is N Configuration information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then I-th of Data distributing object configuration information of i-th of node is obtained from i-th of preset configuration library and Qos strategy is matched Confidence breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
Optionally, described is each node configuration data buffer area, obtains N number of data buffer zone, comprising:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, base J-th of data buffer zone corresponding with j-th of node is configured in j-th of operating parameter configuration information, when j is N, Obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control energy The data buffer zone of power.
Optionally, the operating parameter configuration information include deceleration threshold value, it is corresponding with the deceleration threshold value first continue Time threshold restores threshold value and the second duration threshold corresponding with the recovery threshold value.
Optionally, described data are carried out based on the N group Data distributing object and the N number of data buffer zone to lead to Letter, comprising:
When any one node sends data in N number of node, the data are placed in corresponding with the node The first data buffer zone in, by first data buffer zone to the data carry out processing and by with the node pair The the first Data distributing object answered sends the data;Or
When any one node receives data in N number of node, pass through the first data corresponding with the node point It sends out service object the data are written in the first data buffer zone corresponding with the node, passes through first data buffering Area handles the data, obtains the data.
It is optionally, described that the data are handled by first data buffer zone, comprising:
First data buffer zone carries out assembling processing according to the data type of the data, and to the data Read or write speed is monitored and adjusts.
Optionally, the read or write speed to the data is monitored and adjusts, comprising:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampling knot Fruit;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result Mesh;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain and the first data buffering number pair The first duration answered;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the senders of Xiang Suoshu data sends the One speed control information makes data processing in first data buffer zone to reduce the data transmission speed of described sender Speed is greater than information rate, so that data buffering number is reduced, to maintain reading and writing data in first data buffer zone Velocity balance.
Optionally, when first duration is more than the duration threshold, sender's hair of Xiang Suoshu data After sending speed control information, the method also includes:
Obtain the second data buffering number in first data buffer zone;
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain and the second data buffering number pair The second duration answered;
Judge that second duration is more than the duration threshold;
When second duration is more than the duration threshold, the sender of Xiang Suoshu data sends the second speed Degree control information, restores data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
On the other hand the embodiment of the present application additionally provides a kind of data communication equipment, comprising:
Repository information is arranged for each node in N number of node for the data communication equipment in configuration unit, In, N is the integer more than or equal to 2;
Data distributing Object Creation unit is based on the repository for loading and parsing the repository information Information creating one group of Data distributing object corresponding with each node, obtains N group Data distributing object;
Data buffer zone creating unit obtains N number of data buffering for being each node configuration data buffer area Area;
Data transmission unit, for being counted based on the N group Data distributing object and N number of data buffer zone According to communication.
Optionally, the repository information includes initial configuration information and/or operating parameter configuration information and/or data Distribute service object's configuration information and/or Qos strategy configuration information.
Optionally, the Data distributing Object Creation unit is specifically used for:
Obtain the initial configuration information;
Determine that the Data distributing object configuration information and the Qos strategy are matched based on the initial configuration information The acquisition type of confidence breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information is obtained from the first repository corresponding with the acquisition type And the Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the data distribution Service object.
Optionally, the Data distributing Object Creation unit is specifically used for:
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is the machine type, then I-th of Data distributing object configuration of i-th of node is obtained from i-th of repository corresponding with i-th of node Information and Qos strategy configuration information obtain the Data distributing object configuration information and Qos strategy when i is N Configuration information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then I-th of Data distributing object configuration information of i-th of node is obtained from i-th of preset configuration library and Qos strategy is matched Confidence breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
Optionally, the data buffer zone creating unit is specifically used for:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, base J-th of data buffer zone corresponding with j-th of node is configured in j-th of operating parameter configuration information, when j is N, Obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control energy The data buffer zone of power.
Optionally, the operating parameter configuration information include deceleration threshold value, it is corresponding with the deceleration threshold value first continue Time threshold restores threshold value and the second duration threshold corresponding with the recovery threshold value.
Optionally, the data transmission unit is specifically used for:
When any one node sends data in N number of node, the data are placed in corresponding with the node The first data buffer zone in, by first data buffer zone to the data carry out processing and by with the node pair The the first Data distributing object answered sends the data;Or
When any one node receives data in N number of node, pass through the first data corresponding with the node point It sends out service object the data are written in the first data buffer zone corresponding with the node, passes through first data buffering Area handles the data, obtains the data.
Optionally, the data transmission unit is specifically used for:
First data buffer zone carries out assembling processing according to the data type of the data, and to the data Read or write speed is monitored and adjusts.
Optionally, the data transmission unit is specifically used for:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampling knot Fruit;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result Mesh;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain and the first data buffering number pair The first duration answered;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the senders of Xiang Suoshu data sends the One speed control information makes data processing in first data buffer zone to reduce the data transmission speed of described sender Speed is greater than information rate, so that data buffering number is reduced, to maintain reading and writing data in first data buffer zone Velocity balance.
Optionally, the data transmission unit is also used to:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain and the second data buffering number pair The second duration answered;
Judge that second duration is more than second duration threshold;
When second duration is more than second duration threshold, the senders of Xiang Suoshu data sends the Two speed control informations restore data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
One, it due to the technical solution in the embodiment of the present application, is adopted as every in N number of node of the data communication equipment Repository information is arranged in a node, wherein N is the integer more than or equal to 2;The repository information is loaded and parsed, institute is based on Repository information creating one group of Data distributing object corresponding with each node is stated, N group Data distributing is obtained Object;For each node configuration data buffer area, N number of data buffer zone is obtained;Based on the N group Data distributing pair As and the N number of data buffer zone carry out the technological means of data communication, in this way, each node in the data communication equipment It is both provided with corresponding repository, so that user can according to need and be owned by each node needed for whole device to match Confidence breath, realizes the Decentralization to configuration information;Or configuration information needed for making specified node possess whole device, and Remaining node only possesses a small amount of configuration information, realizes the centralized management to configuration information;Or save the part in whole device Point by the way of Decentralization configuration information, realized mixed using the mode of centralized management configuration information by another part node Management mode is closed, is existed to efficiently solve the data communications method in the prior art based on Data distributing with confidence The technical issues of ceasing the larger workload of maintenance realizes the flexibility for increasing configuration management, mitigates the work of configuration information maintenance The technical effect that work is measured.
Two, due to the technical solution in the embodiment of the present application, using first data buffer zone according to the data Data type carries out assembling processing, and the read or write speed of the data is monitored and is adjusted and is used to described first Reading and writing data speed and data buffer number mesh in data buffer zone are sampled, and sampled result is obtained;It is tied according to the sampling The arithmetic average and the first data buffering number of the reading and writing data speed are calculated when fruit;Judge first data buffering Whether number is more than the deceleration threshold value;The first data buffering number be more than the deceleration threshold value when, obtain with it is described Corresponding first duration of first data buffering number;Judge whether first duration is more than the duration threshold Value;When first duration is more than the duration threshold, the sender of Xiang Suoshu data sends First Speed control Information processed is greater than data processing speed in first data buffer zone to reduce the data transmission speed of described sender Information rate, so that data buffering number is reduced, to maintain reading and writing data velocity balance in first data buffer zone Technological means, in this way, data buffer zone is isolated data processing function and data transmission-receiving function, while the read-write to data Speed is monitored, control data buffer zone in data volume, thus solve the problems, such as data receiver and processing influence each other and Data transmit-receive speed is irregular in buffer area causes data delay processing, loss of data or program internal memory to increase without limitation to collapse The technical issues of bursting, influencing the real-time and stability of distributed system realizes the real-time of raising system and the skill of stability Art effect.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, will be described below to embodiment Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment.
Fig. 1 is a kind of flow chart of the data communications method provided 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 second of 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;
Fig. 5 is a kind of structural block diagram of the data communication equipment provided in the embodiment of the present application two;
Fig. 6 is the detailed block diagram of the data communication equipment in the embodiment of the present application two.
Specific embodiment
The embodiment of the present invention provides a kind of data communications method and data communication equipment, for solving base in the prior art There is technical issues that configuration information maintenance in the data communications method of Data distributing, realizes to increase and match Set the technical effect of the flexibility of management, the workload for mitigating configuration information maintenance.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of data communications method is applied in data communication equipment, comprising:
For in N number of node of the data communication equipment each node be arranged repository information, wherein N be greater than etc. In 2 integer;
The repository information is loaded and parses, based on the repository information creating and each node corresponding one Group Data distributing object, obtains N group Data distributing object;
For each node configuration data buffer area, N number of data buffer zone is obtained;
Data communication is carried out based on the N group Data distributing object and N number of data buffer zone.
In the above-mentioned technical solutions, each node setting configuration being adopted as in N number of node of the data communication equipment Library information, wherein N is the integer more than or equal to 2;The repository information is loaded and parsed, is created based on the repository information One group of Data distributing object corresponding with each node is built, N group Data distributing object is obtained;It is described each Node configuration data buffer area obtains N number of data buffer zone;Based on the N group Data distributing object and N number of data Buffer area carry out data communication technological means, in this way, each node in the data communication equipment be both provided with it is right therewith The repository answered, so that user can according to need configuration information needed for making each node be owned by whole device, realization pair The Decentralization of configuration information;Or configuration information needed for making specified node possess whole device, and remaining node is only gathered around There is a small amount of configuration information, realizes the centralized management to configuration information;Or make the part of nodes in whole device using dispersion pipe The mode of configuration information is managed, another part node realizes managed mixed mode using the mode of centralized management configuration information, from And efficiently solve that in the prior art there are the work that configuration information is safeguarded based on the data communications method of Data distributing Larger technical problem is measured, the flexibility for increasing configuration management is realized, mitigates the technology effect of the workload of configuration information maintenance Fruit.
In order to better understand the above technical scheme, below by attached 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 are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
Referring to FIG. 1, being applied to data communication equipment for a kind of data communications method provided in the embodiment of the present application one In, which comprises
S101: repository information is set for each node in N number of node of the data communication equipment, wherein N is big In the integer for being equal to 2;
S102: loading and parses the repository information, based on the repository information creating and each node pair The one group of Data distributing object answered obtains N group Data distributing object;
S103: for each node configuration data buffer area, N number of data buffer zone is obtained;
S104: data communication is carried out based on the N group Data distributing object and N number of data buffer zone.
In the specific implementation process, the data communication equipment specifically can be the communication based on Data distributing system Device, as shown in Fig. 2, N number of node in the data communication equipment is made of fringe node and intermediate node, intermediate node will Fringe node is divided into different communication networks, and the fringe node and adjacent intermediate node in same communication network can be straight Letter is connected, does not need the forwarding by intermediate node in the fringe node communication of same communication network.By the way that configuration information is arranged, The forwarding access of specified data, the data for sending fringe node are forwarded in other communication networks by intermediate node At fringe node.
In the embodiment of the present application one, the data communication equipment can provide the management mould of following three kinds of configuration informations Formula:
1, Decentralization mode, i.e., each node possesses respectively in N number of node matches needed for the data communication equipment Confidence breath, this mode lower node are not necessarily to obtain information from other nodes, are suitble to the situation that node is few, configuration information is simple;
2, mode is managed concentratedly, i.e., the specified node in N number of node possesses needed for the data communication equipment with confidence Breath, remaining node then only possess a small amount of configuration information, for obtaining remaining required configuration information, constitute " client-server Device " structure, these nodes communicates acquisition specified configuration information with service node by the Data subject of default, suitable node is more, Data are carried out centralized and unified configuration management by many and diverse situation of configuration information;
3, managed mixed mode, that is, the characteristics of combining Decentralization mode and concentrate management mode, one in N number of node Partial node uses Decentralization mode, and another part node uses centralized management mode, and user can select according to own situation Select setting.
Those skilled in the art can select suitable configuration information management mode according to actual use demand, pass through setting Repository information, changes the Communication topology of each node in the data communication equipment, to can directly lead between making each node Letter, as shown in figure 3, part of nodes, which can also be used as intermediate node, carries out data forwarding, making can be direct between the non-intermediate node in part Communication is communicated between other non-intermediate nodes and is realized by intermediate node.
When carrying out data communication using the method in the embodiment of the present application one, step S101 is first carried out, it may be assumed that be described Repository information is arranged in each node in N number of node of data communication equipment, wherein N is the integer more than or equal to 2.
In the embodiment of the present application one, the repository information includes initial configuration information and/or operating parameter configuration Information and/or Data distributing object configuration information and/or Qos strategy configuration information.
In the specific implementation process, the repository is for saving configuration information, e.g., the communication initialization side of control node Formula provides node messaging parameter, setting data structure information, Data distributing object definition and Qos strategy, by matching confidence Breath construction system communication structure.
Part configuration information is only existed under repository original state, including communication object setting and dress between data communication equipment Initial default parameter needed for setting each module, and data distribution relevant configuration needs user to customize, such as data field, data master Topic, receives object and correlation Qos strategy etc. at sending object.
After executing completion step S101, the method in the embodiment of the present application just executes step S102, it may be assumed that loads and solves The repository information is analysed, based on the repository information creating one group of Data distributing pair corresponding with each node As obtaining N group Data distributing object.
In the embodiment of the present application one, referring to FIG. 4, the specific implementation of step S102 is as follows:
S401: the initial configuration information is obtained;
S402: the Data distributing object configuration information and the Qos are determined based on the initial configuration information The acquisition type of tactful configuration information, wherein the acquisition type includes the machine type or remote-type;
S403: the Data distributing object configuration is obtained from the first repository corresponding with the acquisition type Information and the Qos strategy configuration information;
S404: distributing service object's configuration information based on the data and the Qos strategy configuration information creates the number According to distribution service object.
In the embodiment of the present application one, the specific implementation of step S303 is as follows:
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is the machine type, then I-th of Data distributing object configuration of i-th of node is obtained from i-th of repository corresponding with i-th of node Information and Qos strategy configuration information obtain the Data distributing object configuration information and Qos strategy when i is N Configuration information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then I-th of Data distributing object configuration information of i-th of node is obtained from i-th of preset configuration library and Qos strategy is matched Confidence breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
In the specific implementation process, each node is after obtaining initialization information in configuration information in N number of node, inquiry Distribution object defines the acquisition type of information and Qos test information, is from this node repository according to the acquisition type determination Middle acquisition communication information needed still obtains from other nodes, and according to the configuration information of acquisition, messaging parameter, registration branch is arranged The data structure held creates and manages each object of given Data distributing and using specified Qos strategy.The data point Hair service object is 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, uniquely tagged and classification storage can also be distributed for each object.Together When, it is that (such as data field object, subject, sending object, monitoring is arranged in each object in Data distributing by Qos strategy Object etc.) needed for specification itself behavior parameter, such as data reliability type, storage of history data P type, resource constraint, hair Give window size, whether support multicast and multicast address etc..
After executing completion step S102, the method in the embodiment of the present application just executes step S103, it may be assumed that is described every A node configuration data buffer 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:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, base J-th of data buffer zone corresponding with j-th of node is configured in j-th of operating parameter configuration information, when j is N, Obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control energy The data buffer zone of power.
Wherein, the operating parameter configuration information include deceleration threshold value, it is corresponding with the deceleration threshold value first continue when Between threshold value, restore threshold value and the second duration threshold corresponding with the recovery threshold value.
In the specific implementation process, above-mentioned example is continued to use, when data communication equipment creates each data for each node After distributing service object, data communication equipment just needs that corresponding data buffer zone is arranged to each node.In the application reality It applies in example, the data buffer zone, which is divided into, sends data buffer zone and reception data buffer.The transmission data buffer zone It is responsible for sending the write-in management of data and reads management, monitoring data reads and writes situation, controls read or write speed;The reception data are slow It rushes area to be responsible for receiving the write-in management of data and read management, monitoring data reads and writes situation, controls read or write speed.
After executing completion step S103, the method in the embodiment of the present application just executes step S104, it may be assumed that based on described N group Data distributing object and 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 any one node sends data in N number of node, the data are placed in corresponding with the node The first data buffer zone in, by first data buffer zone to the data carry out processing and by with the node pair The the first Data distributing object answered sends the data;Or
When any one node receives data in N number of node, pass through the first data corresponding with the node point It sends out service object the data are written in the first data buffer zone corresponding with the node, passes through first data buffering Area handles the data, obtains the data.
It is described that the data are handled by first data buffer zone in the embodiment of the present application one, comprising:
First data buffer zone carries out assembling processing according to the data type of the data, and to the data Read or write speed is monitored and adjusts.
In the specific implementation process, above-mentioned example is continued to use, when the data distribution that data communication equipment is the creation of each node After service object and data buffer zone, data communication can be carried out between each node.When sending data, it will send first Data, which are written to, sends data buffer zone, then determines release information according to data type and data content, e.g., data send model Enclose with required sending object, thus by data and it is corresponding release information submit to matched Data distributing object into Row is sent;When receiving data, it is obtained first by the eavesdropping target in Data distributing object and receives data, pass through reception Data buffer zone is assembled to data are received, and obtains the reception data.
Meanwhile data buffer zone also needs reading and writing data situation in real-time monitoring data buffer area.In the embodiment of the present application In one, the read or write speed to the data is monitored and adjusts, comprising:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampling knot Fruit;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result Mesh;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain and the first data buffering number pair The first duration answered;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the senders of Xiang Suoshu data sends the One speed control information makes data processing in first data buffer zone to reduce the data transmission speed of described sender Speed is greater than information rate, so that data buffering number is reduced, to maintain reading and writing data in first data buffer zone Velocity balance.
When first duration is more than the duration threshold, sender's transmission speed control of Xiang Suoshu data After information processed, the method also includes:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain and the second data buffering number pair The second duration answered;
Judge that second duration is more than second duration threshold;
When second duration is more than second duration threshold, the senders of Xiang Suoshu data sends the Two speed control informations restore data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
In the specific implementation process, if the reading speed of data buffer zone is less than writing speed, untreatment data quantity More than deceleration threshold value, then writing speed is controlled less than reading speed, setting data control mark, and (the data control mark is number According to a flag parameters in buffer area, for recording whether data buffer zone carried out data control manipulation), it reduces untreated Data bulk, if untreatment data quantity lower than restore threshold value and data control mark be set, control writing speed with Reading speed matches, so that the data communication equipment be made to can also ensure that data while guaranteeing the speed of transmission data It will not lose, improve the stability of the data communication equipment.
Embodiment two
Based on inventive concept identical with the embodiment of the present application one, referring to FIG. 5, providing one kind for the embodiment of the present application two Data communication equipment, comprising:
Repository information is arranged for each node in N number of node for the data communication equipment in configuration unit 10, Wherein, N is the integer more than or equal to 2;
Data distributing Object Creation unit 20 is based on the configuration for loading and parsing the repository information Library information creating one group of Data distributing object corresponding with each node, obtains N group Data distributing object;
Data buffer zone creating unit 30 obtains N number of data buffering for being each node configuration data buffer area Area;
Data transmission unit 40, for being carried out based on the N group Data distributing object and N number of data buffer zone Data communication.
In the embodiment of the present application two, configuration unit 10 for realizing configuration information preservation and management;Data distribution clothes Business Object Creation unit 20 realizes data field (DomainParticipant) in Data distributing, theme (Topic), publication Person (Publisher), subscriber (Subscriber), writer (Writer), reader (Reader) and listener (Listener) The creation and management of these objects, be data publication, data receiver, configuration querying core;The data buffer zone can be divided To send data buffer zone and reception data buffer, can also be arranged in the data communication equipment data publication interface and Data receiver interface, the data publication interface obtain and handle data from transmission data buffer zone, data after processing are mentioned Specified writer's object is given to send;The reception data that data receiver interface listener object provides carry out data The data being completed are submitted to reception data buffer and saved by processing assembling;It sends data buffer zone and reading and writing data is provided Interface receives the data that program provides, data publication interface is allowed to read wherein data, believed according to data buffering number or control The read or write speed of breath control data;Reception data buffer saves the data of data reception module write-in, and provides reading data 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, referring to FIG. 5, for the detailed block diagram of the data communication equipment in the embodiment of the present application two.
In the embodiment of the present application two, parallel construction, each node are used between each node in the data communication equipment Between can direct communication, as shown in Figure 3.Configuration information can concentrate in specified node managing, and be also dispersed in each node, pass through The data type that each node supported, the data field of support and its transmitting and receiving data type for including down is arranged in configuration information, So that data is distributed by the middleware of the data communication equipment and is designated node reception.
In the embodiment of the present application two, the data communication equipment is made of fringe node and intermediate node, intermediate node Fringe node is divided into different communication networks, the fringe node and adjacent intermediate node in same communication network can be with Direct communication does not need the forwarding by intermediate node in the fringe node communication of same communication network, as shown in Figure 2.Pass through Configuration information is set, the forwarding access of data is specified, the data for sending fringe node are forwarded to it by intermediate node At fringe node in its communication network.
In the embodiment of the present application two, the repository information includes initial configuration information and/or operating parameter 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 is specifically used for:
Obtain the initial configuration information;
Determine that the Data distributing object configuration information and the Qos strategy are matched based on the initial configuration information The acquisition type of confidence breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information is obtained from the first repository corresponding with the acquisition type And the Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the data distribution Service object.
In the embodiment of the present application two, Data distributing Object Creation unit 20 is specifically used for:
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is the machine type, then I-th of Data distributing object configuration of i-th of node is obtained from i-th of repository corresponding with i-th of node Information and Qos strategy configuration information obtain the Data distributing object configuration information and Qos strategy when i is N Configuration information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then I-th of Data distributing object configuration information of i-th of node is obtained from i-th of preset configuration library and Qos strategy is matched Confidence breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
In the embodiment of the present application two, data buffer zone creating unit 30 is specifically used for:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, base J-th of data buffer zone corresponding with j-th of node is configured in j-th of operating parameter configuration information, when j is N, Obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control energy The data buffer zone of power.
In the embodiment of the present application two, the operating parameter configuration information includes deceleration threshold value and the deceleration threshold value pair The first duration threshold, recovery threshold value and the second duration threshold corresponding with the recovery threshold value answered.
In the embodiment of the present application two, data transmission unit 40 is specifically used for:
When any one node sends data in N number of node, the data are placed in corresponding with the node The first data buffer zone in, by first data buffer zone to the data carry out processing and by with the node pair The the first Data distributing object answered sends the data;Or
When any one node receives data in N number of node, pass through the first data corresponding with the node point It sends out service object the data are written in the first data buffer zone corresponding with the node, passes through first data buffering Area handles the data, obtains the data.
In the embodiment of the present application two, data transmission unit 40 is specifically used for:
First data buffer zone carries out assembling processing according to the data type of the data, and to the data Read or write speed is monitored and adjusts.
In the embodiment of the present application two, data transmission unit 40 is specifically used for:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampling knot Fruit;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result Mesh;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain and the first data buffering number pair The first duration answered;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the senders of Xiang Suoshu data sends the One speed control information makes data processing in first data buffer zone to reduce the data transmission speed of described sender Speed is greater than information rate, so that data buffering number is reduced, to maintain reading and writing data in first data buffer zone Velocity balance.
In the embodiment of the present application two, data transmission unit 40 is also used to:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain and the second data buffering number pair The second duration answered;
Judge that second duration is more than second duration threshold;
When second duration is more than second duration threshold, the senders of Xiang Suoshu data sends the Two speed control informations restore data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
Data communication equipment described in the embodiment of the present application two provides data transmission, data receiver, configuration management, data point These functions of service middleware interactive interface are sent out, is designed using standardized structure, is not necessarily to or modifies Correlation method for data processing generation Yard, data sending function is connect with data transmission buffer area in target software, data processing function and data receiver buffer area connect It connects, that is, can be integrated into target software, making respectively to constitute software in system can integrate the data communication equipment, improves and matches confidence Maintenance efficiency, development efficiency and system deployment speed are ceased, development cost are reduced.Pass through each unit in the integrated present invention, communication The structure of device can flexibly be modified by the way that repository information is arranged, and please refer to Fig. 6.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
One, it due to the technical solution in the embodiment of the present application, is adopted as every in N number of node of the data communication equipment Repository information is arranged in a node, wherein N is the integer more than or equal to 2;The repository information is loaded and parsed, institute is based on Repository information creating one group of Data distributing object corresponding with each node is stated, N group Data distributing is obtained Object;For each node configuration data buffer area, N number of data buffer zone is obtained;Based on the N group Data distributing pair As and the N number of data buffer zone carry out the technological means of data communication, in this way, each node in the data communication equipment It is both provided with corresponding repository, so that user can according to need and be owned by each node needed for whole device to match Confidence breath, realizes the Decentralization to configuration information;Or configuration information needed for making specified node possess whole device, and Remaining node only possesses a small amount of configuration information, realizes the centralized management to configuration information;Or save the part in whole device Point by the way of Decentralization configuration information, realized mixed using the mode of centralized management configuration information by another part node Management mode is closed, is existed to efficiently solve the data communications method in the prior art based on Data distributing with confidence The technical issues of ceasing the larger workload of maintenance realizes the flexibility for increasing configuration management, mitigates the work of configuration information maintenance The technical effect that work is measured.
Two, due to the technical solution in the embodiment of the present application, using first data buffer zone according to the data Data type carries out assembling processing, and the read or write speed of the data is monitored and is adjusted and is used to described first Reading and writing data speed and data buffer number mesh in data buffer zone are sampled, and sampled result is obtained;It is tied according to the sampling The arithmetic average and the first data buffering number of the reading and writing data speed are calculated when fruit;Judge first data buffering Whether number is more than the deceleration threshold value;The first data buffering number be more than the deceleration threshold value when, obtain with it is described Corresponding first duration of first data buffering number;Judge whether first duration is more than the duration threshold Value;When first duration is more than the duration threshold, the sender of Xiang Suoshu data sends First Speed control Information processed is greater than data processing speed in first data buffer zone to reduce the data transmission speed of described sender Information rate, so that data buffering number is reduced, to maintain reading and writing data velocity balance in first data buffer zone Technological means, in this way, data buffer zone is isolated data processing function and data transmission-receiving function, while the read-write to data Speed is monitored, control data buffer zone in data volume, thus solve the problems, such as data receiver and processing influence each other and Data transmit-receive speed is irregular in buffer area causes data delay processing, loss of data or program internal memory to increase without limitation to collapse The technical issues of bursting, influencing the real-time and stability of distributed system realizes the real-time of raising system and the skill of stability Art effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of data communications method in the embodiment of the present application can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with data communications method in storage medium One electronic equipment reads or is performed, and includes the following steps:
For in N number of node of the data communication equipment each node be arranged repository information, wherein N be greater than etc. In 2 integer;
The repository information is loaded and parses, based on the repository information creating and each node corresponding one Group Data distributing object, obtains N group Data distributing object;
For each node configuration data buffer area, N number of data buffer zone is obtained;
Data communication is carried out based on the N group Data distributing object and N number of data buffer zone.
Optionally, the repository information stored in the storage medium includes initial configuration information and/or operating parameter Configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
Optionally, stored in the storage medium and step: based on the repository information creating and each section The corresponding one group of Data distributing object of point, corresponding computer program instructions are when executed, comprising:
Obtain the initial configuration information;
Determine that the Data distributing object configuration information and the Qos strategy are matched based on the initial configuration information The acquisition type of confidence breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information is obtained from the first repository corresponding with the acquisition type And the Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the data distribution Service object.
Optionally, stored in the storage medium with step: obtain from repository corresponding with the acquisition type The Data distributing object configuration information and the Qos strategy configuration information are taken, corresponding computer program instructions are in quilt When execution, comprising:
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is the machine type, then I-th of Data distributing object configuration of i-th of node is obtained from i-th of repository corresponding with i-th of node Information and Qos strategy configuration information obtain the Data distributing object configuration information and Qos strategy when i is N Configuration information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then I-th of Data distributing object configuration information of i-th of node is obtained from i-th of preset configuration library and Qos strategy is matched Confidence breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
Optionally, store in the storage medium and step: for each node configuration data buffer area, N is obtained A data buffer zone, corresponding computer program instructions are when executed, comprising:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, base J-th of data buffer zone corresponding with j-th of node is configured in j-th of operating parameter configuration information, when j is N, Obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control energy The data buffer zone of power.
Optionally, the operating parameter configuration information stored in the storage medium includes deceleration threshold value and the deceleration threshold It is worth corresponding first duration threshold, restores threshold value and the second duration threshold corresponding with the recovery threshold value.
Optionally, the N group Data distributing object and the N store in the storage medium and step: are based on A data buffer zone carries out data communication, and corresponding computer program instructions are when executed, comprising:
When any one node sends data in N number of node, the data are placed in corresponding with the node The first data buffer zone in, by first data buffer zone to the data carry out processing and by with the node pair The the first Data distributing object answered sends the data;Or
When any one node receives data in N number of node, pass through the first data corresponding with the node point It sends out service object the data are written in the first data buffer zone corresponding with the node, passes through first data buffering Area handles the data, obtains the data.
Optionally, stored in the storage medium and step: by first data buffer zone to the data into Row processing, corresponding computer program instructions are when executed, comprising:
First data buffer zone carries out assembling processing according to the data type of the data, and to the data Read or write speed is monitored and adjusts.
Optionally, store in the storage medium and step: being monitored and adjust to the read or write speed of the data, Corresponding computer program instructions are when executed, comprising:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampling knot Fruit;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result Mesh;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain and the first data buffering number pair The first duration answered;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the senders of Xiang Suoshu data sends the One speed control information makes data processing in first data buffer zone to reduce the data transmission speed of described sender Speed is greater than information rate, so that data buffering number is reduced, to maintain reading and writing data in first data buffer zone Velocity balance.
Optionally, other computer program instructions are also stored in the storage medium, the other calculates Machine instruction is with step: when first duration is more than the duration threshold, sender's hair of Xiang Suoshu data It is performed after sending speed control information to execute, comprising:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain and the second data buffering number pair The second duration answered;
Judge that second duration is more than second duration threshold;
When second duration is more than second duration threshold, the senders of Xiang Suoshu data sends the Two speed control informations restore data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (20)

1. a kind of data communications method is applied in data communication equipment, comprising:
Repository information is set for each node in N number of node of the data communication equipment, wherein N is more than or equal to 2 Integer;
The repository information is loaded and parses, based on the repository information creating one group of number corresponding with each node According to distribution service object, N group Data distributing object is obtained;
For each node configuration data buffer area, N number of data buffer zone is obtained;
Data communication is carried out based on the N group Data distributing object and N number of data buffer zone.
2. the method as described in claim 1, which is characterized in that the repository information include initial configuration information and/or Operating parameter configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
3. method according to claim 2, which is characterized in that described to be based on the repository information creating and each section The corresponding one group of Data distributing object of point, comprising:
Obtain the initial configuration information;
Determine the Data distributing object configuration information and the Qos strategy with confidence based on the initial configuration information The acquisition type of breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information and institute are obtained from the first repository corresponding with the acquisition type State Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the Data distributing Object.
4. method as claimed in claim 3, which is characterized in that described from the first repository corresponding with the acquisition type The middle acquisition Data distributing object configuration information and the Qos strategy configuration information, comprising:
Successively take i be 1 to N, determine i-th of node in N number of node the acquisition type be the machine type, then from Corresponding i-th of the repository of i-th of node obtains i-th of Data distributing object configuration information of i-th of node And Qos strategy configuration information obtains the Data distributing object configuration information and Qos strategy configuration when i is N Information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then from the I-th of the Data distributing object configuration information and Qos strategy that i preset configuration library obtains i-th of node are with confidence Breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
5. method as claimed in claim 4, which is characterized in that described is each node configuration data buffer area, obtains N A data buffer zone, comprising:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, is based on institute It states j-th of operating parameter configuration information and configures j-th of data buffer zone corresponding with j-th of node, when j is N, obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control ability Data buffer zone.
6. method as claimed in claim 5, which is characterized in that the operating parameter configuration information includes deceleration threshold value and institute It states corresponding first duration threshold of deceleration threshold value, restore threshold value and the second duration threshold corresponding with the recovery threshold value Value.
7. method as claimed in claim 6, which is characterized in that described to be based on the N group Data distributing object and the N A data buffer zone carries out data communication, comprising:
When any one node sends data in N number of node, the data are placed in corresponding with the node the In one data buffer zone, processing is carried out to the data by first data buffer zone and by corresponding with the node First Data distributing object sends the data;Or
When any one node receives data in N number of node, taken by the first data distribution corresponding with the node Object be engaged in data write-in the first data buffer zone corresponding with the node, passes through first data buffer zone pair The data are handled, and the data are obtained.
8. the method for claim 7, which is characterized in that it is described by first data buffer zone to the data into Row processing, comprising:
First data buffer zone carries out assembling processing, and the read-write to the data according to the data type of the data Speed is monitored and adjusts.
9. method according to claim 8, which is characterized in that the read or write speed to the data is monitored and adjusts It is whole, comprising:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampled result;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain corresponding with the first data buffering number First duration;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the sender of Xiang Suoshu data sends the first speed Degree control information makes data processing speed in first data buffer zone to reduce the data transmission speed of described sender Greater than information rate, so that data buffering number is reduced, to maintain reading and writing data speed in first data buffer zone Balance.
10. method as claimed in claim 9, which is characterized in that in first duration more than the duration threshold When value, after sender's transmission speed control information of Xiang Suoshu data, the method also includes:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain corresponding with the second data buffering number Second duration;
Judge whether second duration is more than second duration threshold;
When second duration is more than second duration threshold, the sender of Xiang Suoshu data sends the second speed Degree control information, restores data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
11. a kind of data communication equipment, comprising:
Repository information is arranged for each node in N number of node for the data communication equipment, wherein N in configuration unit For the integer more than or equal to 2;
Data distributing Object Creation unit is based on the repository information for loading and parsing the repository information Creation one group of Data distributing object corresponding with each node, acquisition N group Data distributing object;
Data buffer zone creating unit obtains N number of data buffer zone for being each node configuration data buffer area;
Data transmission unit is logical for carrying out data based on the N group Data distributing object and N number of data buffer zone Letter.
12. device as claimed in claim 11, which is characterized in that the repository information include initial configuration information and/ Or operating parameter configuration information and/or Data distributing object configuration information and/or Qos strategy configuration information.
13. device as claimed in claim 12, which is characterized in that the Data distributing Object Creation unit is specifically used In:
Obtain the initial configuration information;
Determine the Data distributing object configuration information and the Qos strategy with confidence based on the initial configuration information The acquisition type of breath, wherein the acquisition type includes the machine type or remote-type;
The Data distributing object configuration information and institute are obtained from the first repository corresponding with the acquisition type State Qos strategy configuration information;
Distribute service object's configuration information based on the data and the Qos strategy configuration information creates the Data distributing Object.
14. device as claimed in claim 13, which is characterized in that the Data distributing Object Creation unit is specifically used In:
Successively take i be 1 to N, determine i-th of node in N number of node the acquisition type be the machine type, then from Corresponding i-th of the repository of i-th of node obtains i-th of Data distributing object configuration information of i-th of node And Qos strategy configuration information obtains the Data distributing object configuration information and Qos strategy configuration when i is N Information;Or
Successively taking i is 1 to N, determines that the acquisition type of i-th of node in N number of node is remote-type, then from the I-th of the Data distributing object configuration information and Qos strategy that i preset configuration library obtains i-th of node are with confidence Breath obtains the Data distributing object configuration information and the Qos strategy configuration information when i is N.
15. device as claimed in claim 14, which is characterized in that the data buffer zone creating unit is specifically used for:
Successively taking j is 1 to N, obtains j-th of operating parameter configuration information of j-th of node in N number of node, is based on institute It states j-th of operating parameter configuration information and configures j-th of data buffer zone corresponding with j-th of node, when j is N, obtain N number of data buffer zone, wherein each data buffer zone in N number of data buffer zone is with data flow control ability Data buffer zone.
16. device as claimed in claim 15, which is characterized in that the operating parameter configuration information include deceleration threshold value, with Corresponding first duration threshold of the deceleration threshold value restores threshold value and the second duration corresponding with the recovery threshold value Threshold value.
17. device as claimed in claim 16, which is characterized in that the data transmission unit is specifically used for:
When any one node sends data in N number of node, the data are placed in corresponding with the node the In one data buffer zone, processing is carried out to the data by first data buffer zone and by corresponding with the node First Data distributing object sends the data;Or
When any one node receives data in N number of node, taken by the first data distribution corresponding with the node Object be engaged in data write-in the first data buffer zone corresponding with the node, passes through first data buffer zone pair The data are handled, and the data are obtained.
18. device as claimed in claim 17, which is characterized in that the data transmission unit is specifically used for:
First data buffer zone carries out assembling processing, and the read-write to the data according to the data type of the data Speed is monitored and adjusts.
19. device as claimed in claim 18, which is characterized in that the data transmission unit is specifically used for:
To in first data buffer zone reading and writing data speed and data buffer number mesh sample, obtain sampled result;
Calculate the arithmetic average and the first data buffering number of the reading and writing data speed in real time according to the sampled result;
Judge whether the first data buffering number is more than the deceleration threshold value;
When the first data buffering number is more than the deceleration threshold value, obtain corresponding with the first data buffering number First duration;
Judge whether first duration is more than first duration threshold;
When first duration is more than first duration threshold, the sender of Xiang Suoshu data sends the first speed Degree control information makes data processing speed in first data buffer zone to reduce the data transmission speed of described sender Greater than information rate, so that data buffering number is reduced, to maintain reading and writing data speed in first data buffer zone Balance.
20. device as claimed in claim 19, which is characterized in that the data transmission unit is also used to:
Obtain the second data buffering number in first data buffer zone
Judge whether the second data buffering number is lower than the recovery threshold value;
When the second data buffering number is lower than the recovery threshold value, obtain corresponding with the second data buffering number Second duration;
Judge whether second duration is more than second duration threshold;
When second duration is more than second duration threshold, the sender of Xiang Suoshu data sends the second speed Degree control information, restores data transmission speed, to maintain data transmission performance in first data buffer zone to balance.
CN201610602625.4A 2016-07-27 2016-07-27 A kind of data communications method and data communication equipment Active CN106302212B (en)

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 CN106302212A (en) 2017-01-04
CN106302212B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101634322B1 (en) * 2013-02-12 2016-06-28 한국전자통신연구원 QoS profile generating apparatus and method for supporting data distribution service in cyber physical system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106302212A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN109936640A (en) From the address distribution method and device of node device
CN109088820A (en) A kind of striding equipment link aggregation method, device, computing device and storage medium
CN109189704A (en) A kind of general purpose interface bus adaptation method and device
CN104602037A (en) Method, device, terminal and system for controlling synchronous playing of multiple devices
US11468329B2 (en) Techniques to manage training or trained models for deep learning applications
CN103631873B (en) A kind of data compression method and storage system
CN108964964A (en) A kind of network topology display methods and device
CN108418752B (en) A kind of creation method and device of aggregation group
CN108668147A (en) A kind of method and mobile terminal of optimization live streaming application
CN110708708A (en) Wireless resource optimization method and device
CN104734983A (en) Scheduling system, method and device for service data request
CN105760134B (en) A kind of data processing method and electronic equipment
Perez et al. A monitoring framework for multi-site 5G platforms
CN109951494A (en) Emulate data processing method, device, emulator and storage medium
CN108965112A (en) The method and device of file transmission is carried out using instant message applications
CN105224541B (en) Uniqueness control method, information storage means and the device of data
CN106302212B (en) A kind of data communications method and data communication equipment
CN110069533A (en) A kind of event subscription method and device based on block chain
CN105903191A (en) Data processing method and system across terminals
US9282041B2 (en) Congestion profiling of computer network devices
CN108777603A (en) A kind of data transmission method, device, storage medium and electronic equipment
CN110062396A (en) A kind of method and device configuring base station
KR102149529B1 (en) Industrial communication system and method
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN108153597B (en) LINUX equipment management device and method

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