CN105939208A - Sampling data transmission method and device - Google Patents
Sampling data transmission method and device Download PDFInfo
- Publication number
- CN105939208A CN105939208A CN201510847580.2A CN201510847580A CN105939208A CN 105939208 A CN105939208 A CN 105939208A CN 201510847580 A CN201510847580 A CN 201510847580A CN 105939208 A CN105939208 A CN 105939208A
- Authority
- CN
- China
- Prior art keywords
- page
- sampled data
- data
- business board
- master control
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0853—Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
- H04L43/065—Generation of reports related to network devices
-
- 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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a sampling data transmission method and device. The method is applied to a distributed device. The method comprises the steps of obtaining first sampling data corresponding to the first page when a first request message of a terminal device for accessing a first page is received, and sending the first sampling data to the terminal device; determining a second page associated with the first page, and sending a pre-request message to a service board, wherein the pre-request message is used for requesting second sampling data corresponding to the second page; receiving second sampling data corresponding to the second page returned by the service board, and storing the second sampling data in a local storage medium; and obtaining the second sampling data from the local storage medium when a second request message of the terminal device for accessing a second page is received, and sending the second sampling data to the terminal device. Through application of the method and the device provided by the embodiment of the invention, the response speed of the page is improved in a pre-request mode, and the user experience is improved.
Description
Technical field
The application relates to network communication field, particularly relates to transmission method and the device of a kind of sampled data.
Background technology
Along with the sharp increase of network communication data, distributed apparatus is applied more and more universal in networking.Often
The distributed apparatus seen is made up of master control borad and some pieces of business boards, and wherein master control borad is responsible for whole distributed set
The configuration of each piece of standby business board and management work, business board is responsible for Business Processing, it can thus be appreciated that master control borad with
Communication between plates is there is mutual between business board.In order to ensure the properly functioning of distributed apparatus, manager needs
The sampled data of each piece of business board is checked by the administration interface (such as Web page) of terminal unit, by
All kinds of sampled datas in business board all gather and record in this locality, when manager checks certain by administration interface
During the sampled data of one business board, master control borad needs, by communication between plates, to obtain and adopt accordingly from business board
Sample data.
The transmission means of existing sampled data is, accesses asking of certain page whenever master control borad receives terminal unit
When seeking message, just to obtain, to business board, the sampled data that this page is corresponding, and by described sampling data transmitting
To terminal unit.Send request message from terminal unit to master control borad, obtain sampling to master control borad from business board
Data, and it is the longest that described sampling data transmitting is delivered to the whole process of terminal unit, if distributed apparatus hurries
Time commonplace, master control borad obtains the time of sampled data can be longer, so will certainly reduce page response speed, shadow
Ring Consumer's Experience.
Summary of the invention
In view of this, the application provides transmission method and the device of a kind of sampled data, to solve existing sampling
The transmission means of data, easily causes page response speed slow, the problem affecting Consumer's Experience.
First aspect according to the embodiment of the present application, it is provided that the transmission method of a kind of sampled data, described method
Being applied on distributed apparatus, described distributed apparatus includes that master control borad and business board, described method include:
When master control borad receives the first request message that terminal unit accesses first page, it is thus achieved that described page 1
The first sampled data that face is corresponding, and described first sampling data transmitting is delivered to described terminal unit;
Described master control borad determines the second page that described first page associates, and is used for asking to business board transmission
The pre-request message of the second sampled data that described second page is corresponding;
Described master control borad receives the second sampled data corresponding to described second page that described business board returns, and
Described second sampled data is stored in local storage medium;
When described master control borad receives the second request message that terminal unit accesses second page, from locally stored
Medium obtains described second sampled data, and described second sampling data transmitting is delivered to described terminal unit.
Second aspect according to the embodiment of the present application, it is provided that the transmitting device of a kind of sampled data, described device
Being applied on distributed apparatus, described distributed apparatus includes that master control borad and business board, described device include:
Obtain unit, during for receiving the first request message of terminal unit access first page, it is thus achieved that institute
State the first sampled data that first page is corresponding, and described first sampling data transmitting is delivered to described terminal unit;
Pre-request unit, for determining the second page that described first page associates, and sends use to business board
In the pre-request message asking the second sampled data corresponding to described second page;
Receive unit, for receiving the second sampled data that the described second page of described business board return is corresponding,
And described second sampled data is stored in local storage medium;
Transmitting element, during for receiving the second request message of terminal unit access second page, from this locality
Storage medium obtains described second sampled data, and described second sampling data transmitting is delivered to described terminal sets
Standby.
Application the embodiment of the present application, master control borad receives terminal unit and accesses the first request report of first page
Wen Shi, it is thus achieved that after the first sampled data that described first page is corresponding, just to described in business board pre-request
Second sampled data corresponding to second page of first page association, and described second sampled data is stored
In local storage medium, when receiving the second request message that terminal unit accesses second page, directly
Connect from local storage medium, obtain described second sampled data, and described second sampling data transmitting is delivered to
Described terminal unit.By the way of pre-request, improve page response speed, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is that the application shows according to the transmission application scenarios of a kind of sampled data shown in an exemplary embodiment
It is intended to;
Fig. 2 is the application transmission method embodiment according to a kind of sampled data shown in an exemplary embodiment
Flow chart;
Fig. 3 is that the application sets according to the transmitting device place of a kind of sampled data shown in an exemplary embodiment
Standby hardware structure diagram;
Fig. 4 is the application transmitting device embodiment according to a kind of sampled data shown in an exemplary embodiment
Structure chart.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application
Formula.On the contrary, they only with describe in detail in appended claims, the application some in terms of mutually one
The example of the apparatus and method caused.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting this
Application." a kind of ", " described " of singulative used in the application and appended claims
" it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that
Term "and/or" used herein refer to and comprise any of one or more project of listing being associated or
Likely combine.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the application
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other
Separately.Such as, in the case of without departing from the application scope, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depend on linguistic context, word as used in this
" if " can be construed to " ... time " or " when ... time " or " in response to determining ".
Shown in Figure 1, for the application according to the transmission of a kind of sampled data shown in an exemplary embodiment
Application scenarios schematic diagram:
Distributed apparatus in Fig. 1 is made up of master control borad and business board, and wherein the quantity of business board can basis
The portfolio that distributed apparatus processes carries out configuring (listing 1 piece of master control borad, 4 pieces of business boards in figure).Main
Control plate and business board in the course of the work, all can gather in this locality and record all kinds of sampled data, such as CPU
(Central Processing Unit, central processing unit) utilization rate sampled data, session sampled data, internal memory
Utilization rate sampled data etc..In order to ensure the properly functioning of distributed apparatus, manager can pass through terminal unit
Web page check all kinds of sampled data, understand working condition, if what manager checked is master control borad
Certain class sampled data, master control borad directly obtains corresponding sampled data from local storage medium, is sent to terminal
Equipment, and when manager check be certain class sampled data of business board time, master control borad needs by logical between plate
Letter, obtains corresponding sampled data from described business board, re-sends to terminal unit.
Shown in Figure 2, for the application according to the transmission of a kind of sampled data shown in an exemplary embodiment
Embodiment of the method flow chart, this embodiment is applied on distributed apparatus, and described distributed apparatus includes master control
Plate and business board, comprise the following steps:
Step S201: when master control borad receives the first request message that terminal unit accesses first page, it is thus achieved that
The first sampled data that described first page is corresponding, and described first sampling data transmitting is delivered to described terminal set
Standby.
When on terminal device logs to distributed apparatus, manager can be by the administration interface of terminal unit
Check all kinds of sampled datas of every piece of business board.The of first page is accessed when master control borad receives terminal unit
During one request message, the business board corresponding with the business board mark that described first request message carries is set up between plate
Communication connection, and send the first request message to described business board;Receive that described business board sends described the
The first sampled data that one page face is corresponding, and described first sampling data transmitting is delivered to terminal unit.
Wherein, set up communication between plates connection and can pass through TCP (Translation Control Protocol, transmission
Control protocol) or UDP (User Data Protocol, UDP)) connected mode foundation connection.
Step S202: described master control borad determines the second page that described first page associates, and sends out to business board
Send the pre-request message for asking the second sampled data corresponding to described second page.
Start master control borad at distributed apparatus, before initializing, be that described first page sets pass in advance
The second page of connection, described second page includes at least one page.Therefore, described is determined when master control borad
After the second page of one page association, again set up communication between plates with described business board and be connected, and to described
Business board transmission is used for the pre-request message of the second sampled data asking described second page corresponding, so that institute
State business board and return the second sampled data that described second page is corresponding.
Wherein, set, for described first page, the second page associated and can pass through user operation intelligence anticipation machine
System realizes, and described user operation intelligence anticipation mechanism has two ways: a kind of mode is that first master control borad determines
The page function of described first page, then inquires about the page function of other all pages, selects and described the
The second page that the page that the page function of one page is identical associates as described first page.Such as due to
CPU statistics the page be in order to realize show distributed apparatus resource service condition page function, and with its page
The page that surface function is identical has the equipment state page, the traffic statistics page and the session statistics page, therefore by this
A little pages can be as the page of CPU statistics page association.
Another way is that first master control borad determines that user accesses the user operation habits after described first page,
Then described user operation habits is utilized after determining the described first page of access, to access the frequency of other pages,
When the frequency accessing other pages is more than predeterminated frequency, then using other pages described as described first page
The second page of association.Such as, all kinds of sampled datas checked according to user operation habits manager include setting
The standby memory usage sampled data of status page, the session statistics session sampled data of the page, CPU statistics
The CPU usage sampled data of the page, the traffic sampling data etc. of the traffic statistics page.Assume predeterminated frequency
It is 10, according to the user operation habits of record, after accessing the CPU statistics page, accesses the equipment state page
Frequency be 100, session statistics the page frequency be 60, the frequency of the traffic statistics page be 30, packet filtering
The frequency of log page is 3, then access the equipment state page, session the statistics page, the frequency of the traffic statistics page
Rate is all higher than 10, it is determined that these pages can be as the page of CPU statistics page association.
Further, in one implementation, after master control borad can also be according to described access first page
The frequency accessing other pages determines the relating value of the most described second page of described first page, described association
Value specifies the persistent period of data update cycle, and the corresponding relating value of each frequency, relating value size is
The multiple of respective frequencies, such as three times, it is assumed that access the frequency of other pages after accessing first page respectively
Be 100,80,60,55,30, then respective associated value can be set to 300,240,180,165,90.
In another kind of implementation, in order to avoid each frequency is correspondingly arranged the loaded down with trivial details of a relating value, main
Control plate can also determine described first page according to the frequency accessing other pages after described access first page
The degree of association of the most described second page, determines described first page the most described second according to the described degree of association
The relating value of the page.The described degree of association refers to the correlation degree grade of the most described second page of described first page,
The corresponding band frequency scope of each degree of association, and a corresponding relating value, if visited after accessing first page
Ask the frequency of other pages within the frequency range that a certain degree of association is corresponding, then by relative for described first page
The relating value of this page is set to the relating value that this degree of association is corresponding.Such as, it is assumed that access the frequency of other pages
During rate >=100, the degree of association is 1, and corresponding relating value is 300;30≤frequency < when 100, the degree of association is 0.1,
Corresponding relating value is 60;< when 30, the degree of association is 0.01 to 10≤frequency, and corresponding relating value is 30, the most really
The relating value determining CPU statistics page relative device status page is 300, the relative session statistics page and flow
The relating value of the statistics page is 60.
It should be noted that for the particular demands of manager, can be that manager provides degree of association configuration page
Face, such as in certain applied environment, manager thinks needs to check the packet filtering log page of business board, as
When fruit finds not produce daily record in the recent period, might mean that business board operation exception, need then to check CPU
The CPU usage sampled data of the statistics page, at this moment manager can arrive the degree of association configuration page and revise one
Reasonably relating value, adds up the relating value of the page as packet filtering log page relative to CPU.
Need it is further noted that the relating value between two pages is unidirectional, i.e. page A facing pages
B is the most identical with the relating value of page B facing pages A.In the most above-mentioned example, manager checks CPU
After the statistics page, typically will not check packet filtering log page again, therefore the CPU statistics page is relative to packet filtering
The relating value of log page is 0, different relative to the relating value of the CPU statistics page from the packet filtering page.
Step S203: second that the described second page of described master control borad reception described business board return is corresponding is adopted
Sample data, and described second sampled data is stored in local storage medium.
When distributed apparatus starts master control borad, when initializing, can be that every piece of business board reserves storage
The memory space of all kinds of sampled datas, then starts each business board, carries out initializing (being later than master control borad initial
Change) time, the most also reserve the memory space of the local all kinds of sampled datas of storage service plate.When master control borad to
Described business board sends after asking the pre-request message of the second sampled data corresponding to described second page,
Receive the second sampled data that the second page of described business board return is corresponding, and by described second sampled data
It is stored in local storage medium.
It addition, master control borad sends for asking the second sampled data corresponding to described second page to business board
Before pre-request message, receive the described second page pair that described business board sends with the first data update cycle
The 3rd sampled data answered, and described 3rd sampled data is stored in local storage medium;Work as master control
After plate receives the second sampled data corresponding to second page that described business board returns, receive described business
Plate is with the 3rd sampled data corresponding to the second page that the second data update cycle sent, and adopts the described 3rd
Sample data are stored in local storage medium.The described second data update cycle was less than for the first data update cycle,
The 3rd sampled data that business board sends second page corresponding to master control borad is adopting of the up-to-date collection of described business board
Sample data, the persistent period of described second data update cycle can be the suitable value pre-set.
Due to the page the least with the first page degree of association, it is not likely to be and have accessed first page every time and will access this
The page, if the second persistent period data update cycle arranging all pages associated with first page is homogeneous
With, then can reduce communication between plates efficiency, therefore can also arrange the persistent period of the second data update cycle is
The time that the relating value of the most described second page of described first page is specified.As described in step S202, CPU
Statistics page relative device status page relating value be 300, then business board with the second data update cycle to master
The persistent period of the memory usage sampled data that the control plate transmission equipment state page is corresponding is 300 seconds, and with
The CPU statistics page does not has the related page, and business board still sends to master control borad with the first data update cycle
Corresponding sampled data.
Step S204: when described master control borad receives the second request message that terminal unit accesses second page,
From local storage medium, obtain described second sampled data, and described second sampling data transmitting is delivered to described
Terminal unit.
When master control borad receives the second request message of the access second page that terminal unit sends, from this locality
Storage medium directly obtains second, third sampled data corresponding to described second page, and by described second,
3rd sampling data transmitting delivers to described terminal unit.So master control borad need not obtain described the from business board again
The sampled data that two pages are corresponding, improves the response speed of the page, improves Consumer's Experience.
Wherein, when described second sampled data is the pre-request message that business board receives master control borad transmission, to
The sampled data that master control borad sends;Described 3rd sampled data is the sampling that business board actively sends to master control borad
Before data, i.e. master control borad send pre-request message to business board, business board was sent out with the first data update cycle
The sampled data sent, and master control borad receive described business board return second page corresponding second sampling
After data, the sampled data that business board sent with the first data update cycle.
In one example, it is assumed that the first data update cycle was 2700 seconds, the second data update cycle was 30
Second, business board gathers the sampled data that second page is corresponding, and once adopts to master control borad transmission every 2700 seconds
Sample data, the sampled data now sent was referred to as the 3rd sampled data, it is assumed that when 1500 seconds, received pre-asking
Seek message, the most all sampling data transmittings are given master control borad, and no longer sent when 2700 seconds time, this
Time send sampled data be referred to as the second sampled data;Afterwards, business board no longer with 2700 seconds for the cycle to master
Control plate sends sampled data, but sends a sampled data every 30 seconds to master control borad, and now send adopts
Sample data are referred to as the 3rd sampled data, after continuing the time that first page is specified relative to second page relating value,
Business board sent a sampled data every 2700 seconds to master control borad again.
The following three kinds of situations of terminal unit access described second page existence:
The first situation, before terminal unit accesses described second page, have accessed its page of association,
And described business board sends corresponding the 3rd the adopting of described second page with the second data update cycle to master control borad
Sample data, described second persistent period data update cycle is the terminal unit current accessed page the most described
The time that the relating value of two pages is specified, master control borad is locally stored has corresponding up-to-date of described second page to adopt
Sample data, thus master control borad can directly from local storage medium obtain described second page corresponding second,
3rd sampled data, is sent to described terminal unit.
The second situation, before terminal unit accesses described second page, does not access its page of association,
Though or have accessed association it the page but distance access described second page moment exceeded respective associated value
The time specified, it is corresponding that described business board sends described second page with the first data update cycle to master control borad
The 3rd sampled data.Therefore, when terminal unit accesses second page, master control borad needs to notify described business
Plate returns the sampled data that the described second page not yet updated is corresponding, and the most described business board is in the first data more
The sampled data gathered within the new cycle.Assume in addition to the CPU statistics page is relevant with other pages,
Wherein the traffic statistics page participant traffic statistics meter page is the most relevant, and the traffic statistics page adds up the page relative to session
Relating value be 300, terminal unit flowing of access statistics the page after, do not visited again other more than 300 seconds
The page, the then unexpected access session statistics page, now business board with the first data update cycle to master control borad
Sending the sampled data that the session statistics page is corresponding, it is corresponding that master control borad this locality does not store the session statistics page
Last samples data, therefore master control borad needs to notify that described business board returns the session statistics page not yet updated
Corresponding sampled data.
The third situation, if before terminal unit accesses described second page, first have accessed the most described second
Multiple pages that the relating value of the page is different, and described business board sends out to master control borad with the second data update cycle
Sending the 3rd sampled data that described second page is corresponding, the persistent period of described second data update cycle is with institute
State finish time persistent period of calculating of multiple pages of second page association being as the criterion the latest, it is assumed that terminal
Before equipment accession page C, first have accessed the page A and B, it is assumed that page A all associates the page with page B
C, page A are x to the relating value of page C, and page B is y to the relating value of page C, and x > y, eventually
During end equipment accession page A, it is corresponding that business board sends page C with the second data update cycle to master control borad
Sampled data, the persistent period of described second data update cycle is the x second, accession page B again after the N second, if
During x-N >=y, its persistent period remains as the x second;If x-N < y, its persistent period is from the beginning of accession page B
Continue the y second again.
It should be noted that distributed apparatus master control borad is the most also monitor terminal device logs and is exiting
Log in state, when do not have terminal unit access distributed apparatus time, business board typically have only to process or
Forwarding service data, need not send, to master control borad, the sampled data gathered.
Therefore, when master control borad monitor terminal unit log off time, send to business board and log off report
Literary composition, so that described business board sends all of sampled data, continuous firing the with the second data update cycle
After one Preset Time, then after first data update cycle continuous firing the second Preset Time, enter
Resting state.Business board in the dormant state, only preserves sampled data, no longer sends out to master control borad in this locality
Send sampled data, and the second Preset Time is more than the first Preset Time, and the second data update cycle is little
In the first data update cycle.Just log off in order to avoid terminal unit and logged in suddenly, and business board
Situation in a dormant state, therefore when terminal unit is logged off, business board is by than data faster
More new state (the second data update cycle), is switched to slow data more new state (first gradually
The data update cycle), finally it is switched to resting state, simultaneously in order to ensure communication between plates efficiency, compares
The data more new state that fast data update state duration the slowest is short.When master control borad monitors
When having terminal device logs, if described business board is in a dormant state, then sends to described business board and activate report
Literary composition, so that described business board updates all of sampled datas not being sent on master control borad.
Need it is further noted that above-mentioned business board sends sampled data to master control borad can pass through datagram
Literary composition compression mechanism realizes, and described data message compression mechanism is that business board is every a sampling period, collection one
Group sampled data, and according to the numbering of this group sampled data of present sample Time Calculation, obtain M group hits
According to, the numbering of described M group sampled data is continuous print;Described business board obtains from described M group sampled data
To K group sampled data, K group sampled data is encapsulated as a data message, and described data message is sent out
Give described master control borad;Wherein, described data message form is: data set number K, first group of sampled data
Numbering, N group sampled data;Wherein, the value of N is followed successively by the numerical value between 1-K, the value of K
Less than or equal to M, described data message length limitation be MTU (Maximum Transmission Unit,
Big transmission unit) byte number specified.Detailed implementation is described below:
In order to ensure the precision of sampled data that each page presents, the sampling period of general business plate is set to
30 seconds, therefore gather a secondary data every 30 seconds business boards, obtain one group of sampled data.Ordinary business practice
Plate can be considered one piece of multi-CPU board or multinuclear board, sends CPU with business board in Fig. 11 to master control borad
As a example by utilization rate sampled data, it is assumed that business board 1, containing 16 CPU, transmits one group to master control borad and adopts
The content that sample packet contains is as shown in table 1.
CPU number | Data core initiates ID | The numbering of sampled data | The utilization rate of 16 CPU |
Table 1
Wherein, the span of CPU number is 1~128, available 1 byte representation;
It is 0~127 that data core initiates the span of ID, available 1 byte representation;
Each CPU in ordinary business practice plate can be divided into control core and data core two class, and each CPU according to function
Having unique number, from the beginning of 0, numbering less several CPU continuous is to control core, numbers bigger
Several CPU are data core continuously, therefore only need to initiate ID according to minimum data core, it is possible to calculate
Control core and data core number.
The span of the numbering of sampled data is 0~2779, available 2 byte representations;
The sampled data of nearest 24 hours is only gathered due to business board, can be by certainly beyond the sampled datas of 24 hours
Dynamic covering, therefore can be according to the numbering of present sample Time Calculation present sample data, such as at 08:30:20
Gathering sampled data, number of seconds corresponding to this moment is 30620 seconds, divide exactly 30 1020, obtain this sampling
Numbered the 1020 of data, owing to one day has 1440 minutes, so 2880 groups of sampled datas can be remembered, work as note
When the numbering of the sampled data of record reaches 2779, show that the sampled data of business board has acquired 24 hours,
The numbering of the sampled data of next group is again from the beginning of 0.The span of the utilization rate of each CPU is 0~100,
The utilization rate value of each CPU can use 1 byte representation, and therefore the business board of 16 CPU needs 16 words
Joint.
In sum, the business board of one piece of 16 CPU sends one group of CPU usage hits to master control borad
According to, needing 20 bytes altogether, MTU is typically appointed as 1500 bytes, wherein header data by Ethernet
Accounting for 48 bytes, therefore data division can have 1452 bytes, the therefore datagram of a communication between plates
Literary composition be enough to encapsulate one group of CPU usage sampled data.When business board is in each communication between plates data message,
Only one group of sampled data of encapsulation is when master control borad sends, then one day class sampled data to transmit 2880 data
Message, and if the most such sampled data of data message encapsulation, it is possible to reduce communication between plates number
According to message amount, improve communication between plates efficiency.
Further, fixing not owing to often organizing " the CPU number " and " data core initiates ID " of sampled data
Become, it is not necessary to individually transmit often organizing in sampled data, only need to fill out in data message and deposit once, separately
It is outward continuous print due to the numbering of the sampled data of each data message, only need to fill out in data message and deposit the 1st
The numbering of group sampled data, because calculating the numbering of last group sampled data according to data set number.
It is therefore assumed that described business board collects M group hits, from M group sampled data, obtain K group hits
According to, and K group sampled data is encapsulated as a data message, can be with the form encapsulation of data shown in table 2
The data division of message:
Table 2
Wherein, the value of N is followed successively by the numerical value between 1-K, and the value of K is less than or equal to M.Therefore, one
The business board of 16 CPU of block sends the data division of a data message can encapsulate (1452-1-1-1-2)
/ 16=90 group sampled data, the sampled data i.e. gathered in 2700 seconds (gathers once) for every 30 seconds, and one
It class sampled data only need to send 2880/90=32 data message, therefore between master control borad and business board
Communication between plates efficiency improves 90 times than originally.
Described in above-described embodiment, master control borad receives terminal unit and accesses the first request report of first page
Wen Shi, it is thus achieved that after the first sampled data that described first page is corresponding, just to described in business board pre-request
Second sampled data corresponding to second page of first page association, and be stored in local storage medium,
When receiving the second request message that terminal unit accesses second page, directly from local storage medium
Obtain described second sampled data, and be sent to described terminal unit.Page is improved by the way of pre-request
Face response speed, improves Consumer's Experience.
Corresponding with the embodiment of aforementioned distributed apparatus interplate communication method, present invention also provides distributed
The embodiment of communicator between device board.
The embodiment of the application distributed apparatus communication between plates device can be applied on distributed apparatus.Device
Embodiment can be realized by software, it is also possible to realizes by the way of hardware or software and hardware combining.With soft
As a example by part realizes, as the device on a logical meaning, be the processor by its place equipment by non-easily
In the property lost memorizer, corresponding computer program instructions reads and runs formation in internal memory.From hardware view
Speech, shown in Figure 3, for a kind of hardware structure diagram of the transmitting device place equipment of the application sampled data,
In addition to the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory, embodiment
The equipment at middle device place is generally according to the actual functional capability of this equipment, it is also possible to include other hardware, to this not
Repeat again.
Shown in Figure 4, for the application according to the transmission of a kind of sampled data shown in an exemplary embodiment
Device example structure figure, this embodiment is applied on distributed apparatus, and described distributed apparatus includes master control
Plate and business board, described device includes: obtain unit 410, pre-request unit 420, receive unit 430,
Transmitting element 440.
Wherein, it is thus achieved that unit 410, during for receiving the first request message of terminal unit access first page,
Obtain the first sampled data that described first page is corresponding, and described first sampling data transmitting is delivered to described end
End equipment;
Pre-request unit 420, for determining the second page that described first page associates, and sends to business board
For asking the pre-request message of the second sampled data corresponding to described second page;
Receive unit 430, for receiving the second hits that the described second page of described business board return is corresponding
According to, and described second sampled data is stored in local storage medium;
Transmitting element 440, during for receiving the second request message of terminal unit access second page, from this
Ground storage medium obtains described second sampled data, and described second sampling data transmitting is delivered to described terminal
Equipment.
In the optional implementation of one, described pre-request unit 420, specifically for determining described page 1
The page function in face, inquires about the page function of other all pages, selects the page merit with described first page
The second page that the identical page of energy associates as described first page, or, determine that user accesses described first
User operation habits after the page, after utilizing described user operation habits to determine the described first page of access
Access the frequency of other pages, when access other pages frequency more than predeterminated frequency time, then by described other
The second page that the page associates as described first page;
Described pre-request unit, is additionally operable to determine the user operation habits that user accesses after described first page,
After utilizing described user operation habits to access the frequency of other pages after determining the described first page of access,
Described first page the most described is determined according to the frequency accessing other pages after described access first page
The degree of association of two pages;Wherein, the described degree of association refers to the association of the most described second page of described first page
Intensity grade;
The relating value of the most described second page of described first page is determined according to the described degree of association;Wherein, institute
State relating value and specify the persistent period of data update cycle.
In the optional implementation of another kind, described device also includes (not shown in Fig. 4):
First memory element, for being used for asking described second page pair to business board transmission at pre-request unit
Before the pre-request message of the second sampled data answered, reception business board sent with the first data update cycle
The 3rd sampled data that second page is corresponding, is stored in locally stored Jie by described 3rd sampled data received
In matter;
Second memory element, for receiving the described second page correspondence that the unit described business board of reception returns
The second sampled data after, receive the second page that business board sends with the second data update cycle corresponding
3rd sampled data, is stored in described 3rd sampled data received in local storage medium;Described second
The persistent period of data update cycle be the relating value of the most described second page of described first page specify time
Between, and the second data update cycle is less than the first data update cycle;
Unit is exited in monitoring, for when monitoring terminal unit and logging off, sends to exit to business board and steps on
Record message, so that described business board sends all of sampled data, continuous firing with the second data update cycle
After first Preset Time, then send all of sampled data, continuous firing the with the first data update cycle
After two Preset Times, enter resting state;Wherein, in the hibernate state, described business board only exists
The local sampled data that preserves, no longer sends sampled data to described master control borad, and the second Preset Time is more than the
One Preset Time, and the second data update cycle is less than the first data update cycle;
Monitoring logs in unit, for when having monitored terminal device logs, if described business board is in dormancy
State, then send to described business board and activate message, so that the renewal of described business board is all is not sent to master control
All of sampled data on plate.
All above unit is respectively positioned on the master control borad of distributed apparatus.
In the optional implementation of another kind, described device, also include (not shown in Fig. 4):
Collecting unit, is used at business board during master control borad sends sampled data, every a sampling
In the cycle, gather one group of sampled data, and according to the numbering of this group sampled data of present sample Time Calculation,
To M group sampled data, the numbering of described M group sampled data is continuous print;
Transmitting element, for obtaining K group sampled data, by K group hits from described M group sampled data
According to being encapsulated as a data message, and described data message is sent to described master control borad;Wherein, described number
According to message format it is: data set number K, the 1st group of numbering of sampled data, N group sampled data;Wherein,
The value of N is followed successively by the numerical value between 1-K, and the value of K is less than or equal to M, and described data message length limits
It is made as the byte number that MTU MTU is specified.
Wherein, described collecting unit and transmitting element are respectively positioned on the business board of distributed apparatus.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Rapid realizes process, does not repeats them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees
The part of embodiment of the method illustrates.Device embodiment described above is only schematically, wherein
The described unit illustrated as separating component can be or may not be physically separate, as unit
The parts of display can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs
Realize the purpose of the application scheme.Those of ordinary skill in the art in the case of not paying creative work,
I.e. it is appreciated that and implements.
Described in above-described embodiment, master control borad receives terminal unit and accesses the first request report of first page
Wen Shi, it is thus achieved that after the first sampled data that described first page is corresponding, just to described in business board pre-request
Second sampled data corresponding to second page of first page association, and be stored in local storage medium,
When receiving the second request message that terminal unit accesses second page, directly from local storage medium
Obtain described second sampled data, and be sent to described terminal unit.Page is improved by the way of pre-request
Face response speed, improves Consumer's Experience.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all in this Shen
Within spirit please and principle, any modification, equivalent substitution and improvement etc. done, should be included in this Shen
Within the scope of please protecting.
Claims (10)
1. the transmission method of a sampled data, it is characterised in that described method is applied on distributed apparatus,
Described distributed apparatus includes that master control borad and business board, described method include:
When master control borad receives the first request message that terminal unit accesses first page, it is thus achieved that described page 1
The first sampled data that face is corresponding, and described first sampling data transmitting is delivered to described terminal unit;
Described master control borad determines the second page that described first page associates, and is used for asking to business board transmission
The pre-request message of the second sampled data that described second page is corresponding;
Described master control borad receives the second sampled data corresponding to described second page that described business board returns, and
Described second sampled data is stored in local storage medium;
When described master control borad receives the second request message that terminal unit accesses second page, from locally stored
Medium obtains described second sampled data, and described second sampling data transmitting is delivered to described terminal unit.
Method the most according to claim 1, it is characterised in that described master control borad determines described page 1
The second page of face association, including:
Described master control borad determines the page function of described first page, inquires about the page function of other all pages,
Select the second page that the page identical with the page function of described first page associates as described first page,
Or,
Described master control borad determines that user accesses the user operation habits after described first page, utilizes described use
Family operating habit accesses the frequency of other pages after determining the described first page of access, when accessing other pages
Frequency more than predeterminated frequency time, then the second page other pages described associated as described first page.
Method the most according to claim 2, it is characterised in that described master control borad determines that user accesses institute
State the user operation habits after first page, utilize described user operation habits to determine the described page 1 of access
After accessing the frequency of other pages after face, also include:
Described master control borad determines described first according to the frequency accessing other pages after described access first page
The degree of association of the most described second page of the page;Wherein, the described degree of association refers to that described first page is relatively described
The correlation degree grade of second page;
Described master control borad determines the relating value of the most described second page of described first page according to the described degree of association;
Wherein, described relating value specifies the persistent period of data update cycle.
Method the most according to claim 1, it is characterised in that described master control borad sends to business board and uses
Before asking the pre-request message of the second sampled data corresponding to described second page, also include:
Described master control borad receives corresponding the 3rd the adopting of second page that business board sends with the first data update cycle
Sample data, are stored in described 3rd sampled data received in local storage medium;
After described master control borad receives the second sampled data corresponding to described second page that described business board returns,
Also include:
Described master control borad receives corresponding the 3rd the adopting of second page that business board sends with the second data update cycle
Sample data, are stored in described 3rd sampled data received in local storage medium;
The pass that persistent period is the most described second page of described first page of described second data update cycle
The time that connection value is specified, and the second data update cycle is less than the first data update cycle.
Method the most according to claim 1, it is characterised in that described method also includes:
When described master control borad monitor terminal unit log off time, send to business board and log off message,
So that described business board sends all of sampled data with the second data update cycle, continuous firing first is preset
After time, then send all of sampled data with the first data update cycle, when continuous firing second is preset
After between, enter resting state;Wherein, in the hibernate state, described business board only preserves in this locality
Sampled data, no longer sends sampled data to described master control borad, and when the second Preset Time is preset more than first
Between, and the second data update cycle is less than the first data update cycle;
When described master control borad has monitored terminal device logs, if described business board is in a dormant state, then
Send to described business board and activate message, so that described business board updates all institutes not being sent on master control borad
Some sampled datas.
6. according to the arbitrary described method of claim 1 to 5, it is characterised in that business board is sent out to master control borad
Send the process of sampled data, specifically include:
Business board, every a sampling period, gathers one group of sampled data, and according to present sample Time Calculation
The numbering of this group sampled data, obtains M group sampled data, and the numbering of described M group sampled data is continuous print;
Described business board obtains K group sampled data from described M group sampled data, K group sampled data is sealed
Dress is a data message, and described data message is sent to described master control borad;Wherein, described datagram
Literary composition form is: data set number K, the 1st group of numbering of sampled data, N group sampled data;Wherein, N
The numerical value that is followed successively by between 1-K of value, the value of K is less than or equal to M, described data message length limitation
The byte number specified for MTU MTU.
7. the transmitting device of a sampled data, it is characterised in that described device is applied on distributed apparatus,
Described distributed apparatus includes that master control borad and business board, described device include:
Obtain unit, during for receiving the first request message of terminal unit access first page, it is thus achieved that institute
State the first sampled data that first page is corresponding, and described first sampling data transmitting is delivered to described terminal unit;
Pre-request unit, for determining the second page that described first page associates, and sends use to business board
In the pre-request message asking the second sampled data corresponding to described second page;
Receive unit, for receiving the second sampled data that the described second page of described business board return is corresponding,
And described second sampled data is stored in local storage medium;
Transmitting element, during for receiving the second request message of terminal unit access second page, from this locality
Storage medium obtains described second sampled data, and described second sampling data transmitting is delivered to described terminal sets
Standby.
Device the most according to claim 7, it is characterised in that
Described pre-request unit, specifically for during determining the second page that described first page associates,
Determine the page function of described first page, inquire about the page function of other all pages, select and described the
The second page that the page that the page function of one page is identical associates as described first page, or, determine use
Family accesses the user operation habits after described first page, utilizes described user operation habits to determine access institute
The frequency of other pages is accessed after stating first page, when the frequency accessing other pages is more than predeterminated frequency,
The second page then other pages described associated as described first page;
Described pre-request unit, is additionally operable to determine the user operation habits that user accesses after described first page,
After utilizing described user operation habits to access the frequency of other pages after determining the described first page of access,
Described first page the most described is determined according to the frequency accessing other pages after described access first page
The degree of association of two pages;Wherein, the described degree of association refers to the association of the most described second page of described first page
Intensity grade;The relating value of the most described second page of described first page is determined according to the described degree of association;Its
In, described relating value specifies the persistent period of data update cycle.
Device the most according to claim 7, it is characterised in that described device also includes:
First memory element, for being used for asking described second page pair to business board transmission at pre-request unit
Before the pre-request message of the second sampled data answered, reception business board sent with the first data update cycle
The 3rd sampled data that second page is corresponding, is stored in locally stored Jie by described 3rd sampled data received
In matter;
Second memory element, for receiving the described second page correspondence that the unit described business board of reception returns
The second sampled data after, receive the second page that business board sends with the second data update cycle corresponding
3rd sampled data, is stored in described 3rd sampled data received in local storage medium;Described second
The persistent period of data update cycle be the relating value of the most described second page of described first page specify time
Between, and the second data update cycle is less than the first data update cycle;
Unit is exited in monitoring, for when monitoring terminal unit and logging off, sends to exit to business board and steps on
Record message, so that described business board sends all of sampled data, continuous firing with the second data update cycle
After first Preset Time, then send all of sampled data, continuous firing the with the first data update cycle
After two Preset Times, enter resting state;Wherein, in the hibernate state, described business board only exists
The local sampled data that preserves, no longer sends sampled data to described master control borad, and the second Preset Time is more than the
One Preset Time, and the second data update cycle is less than the first data update cycle;
Monitoring logs in unit, for when having monitored terminal device logs, if described business board is in dormancy
State, then send to described business board and activate message, so that the renewal of described business board is all is not sent to master control
All of sampled data on plate.
10. according to the arbitrary described device of claim 7 to 9, it is characterised in that described device also includes:
Collecting unit, for during sending sampled data to master control borad, every a sampling period,
Gather one group of sampled data, and according to the numbering of this group sampled data of present sample Time Calculation, obtain M group
Sampled data, the numbering of described M group sampled data is continuous print;
Transmitting element, for obtaining K group sampled data, by K group hits from described M group sampled data
According to being encapsulated as a data message, and described data message is sent to described master control borad;Wherein, described number
According to message format it is: data set number K, the 1st group of numbering of sampled data, N group sampled data;Wherein,
The value of N is followed successively by the numerical value between 1-K, and the value of K is less than or equal to M, and described data message length limits
It is made as the byte number that MTU MTU is specified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510847580.2A CN105939208B (en) | 2015-11-26 | 2015-11-26 | The transmission method and device of sampled data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510847580.2A CN105939208B (en) | 2015-11-26 | 2015-11-26 | The transmission method and device of sampled data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105939208A true CN105939208A (en) | 2016-09-14 |
CN105939208B CN105939208B (en) | 2019-05-07 |
Family
ID=57152867
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510847580.2A Active CN105939208B (en) | 2015-11-26 | 2015-11-26 | The transmission method and device of sampled data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105939208B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111458561A (en) * | 2020-03-27 | 2020-07-28 | 深圳渊联技术有限公司 | Equipment sampling device, configuration and management method, management server and management system |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010023476A1 (en) * | 1997-08-21 | 2001-09-20 | Rosenzweig Michael D. | Method of caching web resources |
CN1510890A (en) * | 2002-12-26 | 2004-07-07 | 华为技术有限公司 | Statistical method for realtime business information |
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN101321090A (en) * | 2008-07-03 | 2008-12-10 | 中兴通讯股份有限公司 | Statistical method and device for performance data |
CN101453416A (en) * | 2007-11-30 | 2009-06-10 | 国际商业机器公司 | Service node, network for packet pre-fetching of remote program installation |
CN101668004A (en) * | 2008-09-04 | 2010-03-10 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring webpage |
CN101702173A (en) * | 2009-11-11 | 2010-05-05 | 中兴通讯股份有限公司 | Method and device for increasing access speed of mobile portal dynamic page |
EP2219119A1 (en) * | 2009-02-16 | 2010-08-18 | HTC Corporation | Method for preprocessing and displaying web page, mobile electronic device, and operation interface thereof |
CN102081625A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团北京有限公司 | Data query method and query server |
CN102231752A (en) * | 2011-06-01 | 2011-11-02 | 上海聚力传媒技术有限公司 | Method and apparatus for obtaining resource information corresponding to sublink, and equipment and system |
US20120066586A1 (en) * | 2010-09-07 | 2012-03-15 | Yaniv Shemesh | Systems and methods for accelerating web page loading |
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN103853714A (en) * | 2012-11-28 | 2014-06-11 | 中国移动通信集团河南有限公司 | Data processing method and device |
-
2015
- 2015-11-26 CN CN201510847580.2A patent/CN105939208B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010023476A1 (en) * | 1997-08-21 | 2001-09-20 | Rosenzweig Michael D. | Method of caching web resources |
CN1510890A (en) * | 2002-12-26 | 2004-07-07 | 华为技术有限公司 | Statistical method for realtime business information |
CN101154230A (en) * | 2006-09-30 | 2008-04-02 | 中兴通讯股份有限公司 | Responding method for large data volume specified searching web pages |
CN101453416A (en) * | 2007-11-30 | 2009-06-10 | 国际商业机器公司 | Service node, network for packet pre-fetching of remote program installation |
CN101321090A (en) * | 2008-07-03 | 2008-12-10 | 中兴通讯股份有限公司 | Statistical method and device for performance data |
CN101668004A (en) * | 2008-09-04 | 2010-03-10 | 阿里巴巴集团控股有限公司 | Method, device and system for acquiring webpage |
EP2219119A1 (en) * | 2009-02-16 | 2010-08-18 | HTC Corporation | Method for preprocessing and displaying web page, mobile electronic device, and operation interface thereof |
CN101702173A (en) * | 2009-11-11 | 2010-05-05 | 中兴通讯股份有限公司 | Method and device for increasing access speed of mobile portal dynamic page |
CN102081625A (en) * | 2009-11-30 | 2011-06-01 | 中国移动通信集团北京有限公司 | Data query method and query server |
US20120066586A1 (en) * | 2010-09-07 | 2012-03-15 | Yaniv Shemesh | Systems and methods for accelerating web page loading |
CN102231752A (en) * | 2011-06-01 | 2011-11-02 | 上海聚力传媒技术有限公司 | Method and apparatus for obtaining resource information corresponding to sublink, and equipment and system |
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN103853714A (en) * | 2012-11-28 | 2014-06-11 | 中国移动通信集团河南有限公司 | Data processing method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111458561A (en) * | 2020-03-27 | 2020-07-28 | 深圳渊联技术有限公司 | Equipment sampling device, configuration and management method, management server and management system |
CN111458561B (en) * | 2020-03-27 | 2022-07-29 | 深圳渊联技术有限公司 | Equipment sampling device, configuration and management method, management server and management system |
Also Published As
Publication number | Publication date |
---|---|
CN105939208B (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2563062B1 (en) | Long connection management apparatus and link resource management method for long connection communication | |
CA3040565C (en) | Latency-based routing and load balancing in a network | |
CN104158755A (en) | Method, device and system used for transmitting messages | |
CN104333465A (en) | Heartbeat interval setting method, device and system | |
CN110247856A (en) | Server resource method for releasing and device | |
CN102137139A (en) | Method and device for selecting cache replacement strategy, proxy server and system | |
CN102281190A (en) | Networking method for load balancing apparatus, server and client access method | |
CN113949707A (en) | OpenResty and K8S-based container cloud service discovery and load balancing method | |
CN106506269B (en) | It executes the method for test assignment, system, calculate equipment and test macro | |
CN102347876A (en) | Multilink aggregation control device for cloud computing network | |
CN108055333A (en) | A kind of NAS-CIFS cluster load balancing methods based on UFS | |
CN109547524A (en) | User behavior storage method, device, equipment and storage medium based on Physical Network | |
CN106302230B (en) | A kind of data transmission method and device | |
CN104301161A (en) | Computing method, computing device and communication system for business quality index | |
CN104869155A (en) | Data auditing method and device | |
CN108924203B (en) | Data copy self-adaptive distribution method, distributed computing system and related equipment | |
WO2022063032A1 (en) | Distributed system-oriented fault information association reporting method, and related device | |
CN103795575A (en) | Multi-data-centre-oriented system monitoring method | |
CN109639796A (en) | A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing | |
CN110855741B (en) | Service self-adaptive access method and device, storage medium and electronic device | |
CN106302421A (en) | A kind of information intercepting processing method and device | |
CN111585815A (en) | Port data acquisition method and device | |
CN104205730A (en) | Network element data access method, device and network management system | |
CN105939208A (en) | Sampling data transmission method and device | |
WO2021068441A1 (en) | Node traffic dispatching method and apparatus, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |