CN107547307A - A kind of time parameter determines method and device - Google Patents
A kind of time parameter determines method and device Download PDFInfo
- Publication number
- CN107547307A CN107547307A CN201710631204.9A CN201710631204A CN107547307A CN 107547307 A CN107547307 A CN 107547307A CN 201710631204 A CN201710631204 A CN 201710631204A CN 107547307 A CN107547307 A CN 107547307A
- Authority
- CN
- China
- Prior art keywords
- message
- time
- time parameter
- access device
- sent
- 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
Landscapes
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present application provides a kind of time parameter and determines method and device, and method includes:Access device sends the first message after the certification request of client transmission is received to server, and obtains the first transmission time for sending the first message, and the first message is the message sent in verification process;Server sends the second message to access device, and the second message is the message sent in verification process;The second message that access device the reception server is sent, and obtain the first reception time for receiving the second message, the first the first difference for sending time and the first reception time is calculated, the absolute value of the first difference is defined as very first time parameter, very first time parameter is used to be authenticated performance evaluation.Using the embodiment of the present application, the efficiency that authentication performance is analyzed is improved.
Description
Technical field
The application is related to communication technical field, and method and device is determined more particularly to a kind of time parameter.
Background technology
OAuth (open Authorization, opens and authorized) protocol streams of 2.0 protocol definitions using Third Party Authentication
Journey, client, access device and server are relate to, wherein, server is third party device.
In order to determine the situation of equipment that the agreements of oAuth 2.0 are related to, fix a breakdown in time, ensure the association of Third Party Authentication
View flow is smoothed out, it is often necessary to is authenticated performance evaluation to access device and server.At present, analysis is typically passed through
Time parameter is analyzed to achieve a butt joint into the authentication performance of equipment and server.
Time parameter can determine in the following manner:The message sent between crawl access device and server this three,
By manually analyzing the time for capturing message, duration, the access device of access device and server process message are determined
The time parameters such as the time delay come and gone with server equipment room message.Here, it is necessary to capture message and manual analysis crawl message
Time, to determine time parameter, this considerably increases obtain time parameter complexity, reduce authentication performance analysis effect
Rate.
The content of the invention
The purpose of the embodiment of the present application is that providing a kind of time parameter determines method and device, to improve authentication performance point
The efficiency of analysis.Concrete technical scheme is as follows:
On the one hand, the embodiment of the present application discloses a kind of time parameter and determines method, applied to access device, methods described
Including:
The first message is sent to server after the certification request of client transmission is received, and obtains transmission described first
The first of message sends the time;First message is the message sent in verification process;
The second message that the server is sent is received, and obtains the first reception time for receiving second message;Institute
The message for stating the second message to send in verification process;
Calculate the described first the first difference for sending time and the first reception time;
The absolute value of first difference is defined as very first time parameter;The very first time parameter is used to be authenticated
Performance evaluation.
Two aspects, the embodiment of the present application discloses a kind of time parameter and determines method, applied to server, methods described bag
Include:
Receive the first message that access device is sent after the certification request of client transmission is received;The access device
Obtain the first transmission time for sending first message;First message is the message sent in verification process;
The second message is sent to the access device, so that the access device, which obtains, receives the first of second message
The time is received, the described first the first difference for sending time and the first reception time is calculated, by the exhausted of first difference
It is defined as very first time parameter to value;Second message is the message sent in verification process, and the very first time parameter is used
In being authenticated performance evaluation.
Three aspects, the embodiment of the present application discloses a kind of time parameter determining device, applied to access device, described device
Including:
Transmitting element, for sending the first message to server after the certification request of client transmission is received, and obtain
Send first message first is taken to send the time;First message is the message sent in verification process;
Receiving unit, the second message sent for receiving the server, and obtain and receive the of second message
One receives the time;Second message is the message sent in verification process;
Computing unit, for calculating the described first the first difference for sending time and the first reception time;
Determining unit, for the absolute value of first difference to be defined as into very first time parameter;The very first time ginseng
Number is used to be authenticated performance evaluation.
Four aspects, the embodiment of the present application discloses a kind of time parameter determining device, applied to server, described device bag
Include:
Receiving unit, the first report sent for receiving access device after the certification request of client transmission is received
Text;The access device obtains the first transmission time for sending first message;First message is to be sent out in verification process
The message sent;
Transmitting element, for sending the second message to the access device, so that the access device is obtained described in reception
The first of second message receives the time, the described first the first difference for sending time and the first reception time is calculated, by institute
The absolute value for stating the first difference is defined as very first time parameter;Second message is the message sent in verification process, described
Very first time parameter is used to be authenticated performance evaluation.
Five aspects, the embodiment of the present application disclose a kind of access device, including processor and machinable medium, institute
Stating that machinable medium is stored with can be described by the machine-executable instruction of the computing device, the processor
Machine-executable instruction promotes:Realize that the above-mentioned time parameter applied to access device determines method and step.
Six aspects, the embodiment of the present application discloses a kind of server, including processor and machinable medium, described
Machinable medium is stored with can be by the machine-executable instruction of the computing device, and the processor is by the machine
Device executable instruction promotes:Realize that the above-mentioned time parameter applied to server determines method and step.
Seven aspects, the embodiment of the present application disclose a kind of machinable medium, are stored with machine-executable instruction,
When being called and performed by processor, the machine-executable instruction promotes the processor:Realize and above-mentioned be applied to access device
Time parameter determine method and step.
Eight aspects, the embodiment of the present application disclose a kind of machinable medium, are stored with machine-executable instruction,
When being called and performed by processor, the machine-executable instruction promotes the processor:Realize above-mentioned applied to server
Time parameter determines method and step.
In the embodiment of the present application, access device sends first after the certification request of client transmission is received to server
Message, obtain and send the first of the first message and send the time, in addition, the reception server sends the second message, and obtain reception the
The first of two messages receives the time, calculates the first the first difference for sending time and the first reception time, determines that the very first time joins
Number.It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without
The time of message and manual analysis crawl message must be captured, the complexity for obtaining time parameter is reduced, improves authentication property
The efficiency that can be analyzed.Certainly, implementing any product of the application or method must be not necessarily required to reach above-described institute simultaneously
There is advantage.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the first schematic flow sheet that the time parameter that the embodiment of the present application provides determines method;
Fig. 2 is second of schematic flow sheet that the time parameter that the embodiment of the present application provides determines method;
Fig. 3 is the signaling diagram for the protocol authentication process of oAuth 2.0 that the embodiment of the present application provides;
Fig. 4 is the first structural representation for the time parameter determining device that the embodiment of the present application provides;
Fig. 5 is second of structural representation of the time parameter determining device that the embodiment of the present application provides;
Fig. 6 is a kind of structural representation for the access device that the embodiment of the present application provides;
Fig. 7 is a kind of structural representation for the server that the embodiment of the present application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of the application protection.
At present, in the agreements of oAuth 2.0, it is necessary to first capture message, then the time of message is captured by manual analysis, could be really
Fix time parameter, this considerably increases the complexity for obtaining time parameter, reduce the efficiency of performance evaluation.
In order to reduce the complexity for obtaining time parameter, the efficiency of performance evaluation is improved, the embodiment of the present application provides one
Kind time parameter determines method and device.
With reference to figure 1, Fig. 1 is the first schematic flow sheet that the time parameter that the embodiment of the present application provides determines method, should
For access device, the access device can be BRAS (Broadband Remote Access Server, broad band remote access
Server).This method includes:
S101:The first message is sent to server after the certification request of client transmission is received, and obtains transmission the
The first of one message sends the time;
Here, it is the message that sends in verification process to the first message that server is sent.Such as access device is receiving
After the certification request sent to client, it is sent to client, is sent to the redirection message of server by client again;Example again
Such as the message for the request Token (token) that access device is sent to server;Such as access device is asked to what server was sent again
Seek message of user profile etc..
It should be noted that access device when sending the first message, can store down for the first transmission time, in order to connect
Enter equipment it is determined that got for the first transmission time during time parameter, when need to obtain first send the time when, can directly from
Obtained in the time of storage;In addition, access device when sending the first message, can send time carrying in the first report by first
Wen Zhong, the time is sent without storing lower first, to save the memory space of access device, the time is sent when needing acquisition first
When, directly it can be obtained from the first message.
In one embodiment of the application, if access device did not stored for the first transmission time, for ease of access device root
Time parameter is determined according to the first transmission time, when access device carries the first transmission in the first message sent to server
Between;Server got for the first transmission time from the message received, the first transmission time was carried anti-in the second message
Feed access device.Here, the second message can be the response message of the first message, can not also be the response report of the first message
Text, but any message sent in verification process.
S102:The second message that the reception server is sent, and obtain the first reception time for receiving the second message;
Here, the second message is the message sent in verification process.
In one embodiment of the application, if the second message is the response message of the first message, if for example, the first message
For redirection message, then the second message is the entitlement message after server authentication, and entitlement message includes authorizing successfully message, mandate
Failure message etc.;If message of first message for request Token, the second message is the message for carrying Token;If the first message
To ask the message of user profile, then the second message is the message for carrying user profile.
In one embodiment of the application, if the second message is not the response message of the first message, if for example, the first report
Text is redirection message, and the second message after access device have sent redirection message, works as reception to carry Token message
During to the message for carrying Token, the first reception time for receiving the message for carrying Token is obtained.
It should be noted that the first reception time in the case where that can be stored after getting for the first reception time, in order to access
Equipment is it is determined that got for the first reception time during time parameter;It can not also store first getting for the first reception time and connect
Between time receiving, to save the memory space of access device.
S103:Calculate the first the first difference for sending time and the first reception time;
S104:The absolute value of first difference is defined as very first time parameter.
Here, very first time parameter is used to be authenticated performance evaluation.Very first time parameter is represented from sending the first message
To the total duration for receiving the second message and consuming during this, access device, service are recognized that according to very first time parameter
The authentication performance situation of device.It for example, if very first time parameter is long, can determine that this process elapsed time is long, access
Equipment, the authentication performance of server are poor.
In one embodiment of the application, the second message includes the second transmission time that server sends the second message;
Now, the first the second difference for receiving time and the second transmission time is calculated, when the absolute value of the second difference is defined as into second
Between parameter, second time parameter can be used for being authenticated performance evaluation.
Wherein, the second time parameter represents to transmit the time delay of the second message between server and access device, during according to second
Between parameter be recognized that the delay performances of the second message transmissions between access device and server.If for example, the second time parameter
It is long, then it can determine that the delay performance of the second message transmissions between access device and server is poor.
In one embodiment of the application, when can carry the first transmission in the first message sent to server
Between.After server receives the first message of access device transmission, the second reception time for receiving the first message is obtained, in addition,
Got for the first transmission time from the first message, now, server can calculate the first transmission time and the second reception time
The 3rd difference, the absolute value of the 3rd difference is defined as the 3rd time parameter, the 3rd time parameter can be used for carrying out
Authentication performance is analyzed.
Wherein, the 3rd time parameter represents to transmit the time delay of the first message between server and access device, during according to the 3rd
Between parameter be recognized that the delay performances of the first message transmissions between access device and server.If for example, the 3rd time parameter
It is long, then it can determine that the delay performance of the first message transmissions between access device and server is poor.
In addition, server can also get for the second transmission time, calculate second and send time and the second reception time
4th difference, the absolute value of the 4th difference is defined as the 4th time parameter, the 4th time parameter can be used for being recognized
Demonstrate,prove performance evaluation.Wherein, the 4th time parameter represents the duration of the message of server process first consumption, according to the 4th time parameter
It is recognized that the performance of the message of server process first.If for example, the 4th time parameter is long, can determine at server
Manage the poor-performing of the first message.
It is above-mentioned to be set to total duration, server and the access for receiving the second message and consuming during this from sending the first message
Transmitted between standby and transmit the time delay of the first message between time delay, server and the access device of second message, server process first is reported
The duration of text consumption may be collectively referred to as authentication performance, for being authenticated performance evaluation.
It should be noted that server when sending the second message, can store down for the second transmission time, in order to service
Device it is determined that got for the second transmission time during time parameter, when need to obtain second send the time when, can be directly from storage
Time in obtain;In addition, server when sending the second message, can send time carrying in the second message by second,
The time is sent without storing lower second, to save the memory space of server, when needing to obtain the second transmission time, Ke Yizhi
Connect and obtained from the second message.
In the case where that can be stored after getting for the second reception time, second receives the time, in order to which server is it is determined that time ginseng
Got for the second reception time during number;It can not also store for the second reception time getting for the second reception time, to save clothes
The memory space of business device.
It is noted that in one embodiment of the application, very first time parameter, the second time ginseng are being got
After number, the 3rd time parameter and the 4th time parameter, access device can send very first time parameter and the second time parameter
To server, in order to which server is authenticated performance evaluation;Server can also join the 3rd time parameter and the 4th time
Number is sent to access device, in order to which access device is authenticated performance evaluation.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, obtain and send the first of the first message and send the time, in addition, the reception server sends the second message, and obtain reception the
The first of two messages receives the time, calculates the first the first difference for sending time and the first reception time, determines that the very first time joins
Number.It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without
The time of message and manual analysis crawl message must be captured, the complexity for obtaining time parameter is reduced, improves authentication property
The efficiency that can be analyzed.
With reference to figure 2, Fig. 2 is second of schematic flow sheet that the time parameter that the embodiment of the present application provides determines method, should
For server, this method includes:
S201:Receive the first message that access device is sent after the certification request of client transmission is received;Access is set
It is standby to obtain the first transmission time for sending the first message;
Wherein, the first message is the message sent in verification process.
S202:The second message is sent to access device, so that during the first reception of access device acquisition the second message of reception
Between, the first the first difference for sending time and the first reception time is calculated, the absolute value of the first difference is defined as the very first time
Parameter.
Here, the second message is the message sent in verification process, and very first time parameter is used to be authenticated performance evaluation.
Very first time parameter represented from the first message is sent to the total duration for receiving the second message and consuming during this, during according to first
Between parameter be recognized that the authentication performance situation of access device, server., can be with for example, if very first time parameter is long
Determine that whole process elapsed time is long, access device, the authentication performance of server are poor.
In one embodiment of the application, the second message includes the second transmission time that server sends the second message;
Now, access device can calculate the second difference of the first reception time and the second transmission time, by the absolute value of the second difference
It is defined as the second time parameter, second time parameter can be used for being authenticated performance evaluation.
In one embodiment of the application, access device can carry first in the first message sent to server
Send the time.After server receives the first message of access device transmission, the second reception time for receiving the first message is obtained,
In addition, getting for the first transmission time from the first message, now, server can calculate the first transmission time and the second reception
The 3rd difference of time, the absolute value of the 3rd difference is defined as the 3rd time parameter, the 3rd time parameter can be used for
It is authenticated performance evaluation.
In addition, server can also get for the second transmission time when sending the second message to access device, the is calculated
Two send times and the second the 4th difference for receiving the time, the absolute value of the 4th difference are defined as into the 4th time parameter, this
Four time parameters can be used for being authenticated performance evaluation.
It is noted that in one embodiment of the application, very first time parameter, the second time ginseng are being got
After number, the 3rd time parameter and the 4th time parameter, access device can send very first time parameter and the second time parameter
To server, in order to which server is authenticated performance evaluation;Server can also join the 3rd time parameter and the 4th time
Number is sent to access device, in order to which access device is authenticated performance evaluation.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
The signaling diagram of the protocol authentication process of oAuth 2.0 with reference to shown in Fig. 3, the time parameter provided the embodiment of the present application
The method of determination illustrates.
1st, after access device, certification request is sent to access device in connection for client;
2nd, the redirection message for carrying T1 is sent to client by access device;
Here, T1 is the time that access device sends redirection message, and T1 can be placed in redirection parameter, such as
Http://portalserver/portal/protocolT1;Redirection message is used to client being redirected to server.
3rd, redirection message is sent to server by client by access device;
4th, server record receives the time T2 of redirection message;In addition, client is recognized according to redirection message
Card, send the entitlement message for carrying T3 to client by access device after certification, and record T3;
Here, T3 is the time that server sends entitlement message.
At this point it is possible to calculate the time delay that redirection message transmits between access device and server:δ1=T2-T1;Service
Device handles the duration of redirection message:δ2=T3-T2.
5th, entitlement message is sent to access device by client;
6th, access device record receives the time T4 of entitlement message, and handles entitlement message;
At this point it is possible to calculate the time delay that entitlement message is transmitted between access device and server:δ3=T4-T3;
If the 7, entitlement message is authorizes successfully message, the message 1 for the request Token for carrying T5 is sent to clothes by access device
Business device;
Here, T5 is the time that access device sends message 1.
Now, the duration of access device processing entitlement message:δ4=T5-T4.
8th, server record receives the time T6 of message 1, and the message 2 for carrying Token, the report are sent to access device
Text 2 also carries the time T7 that server sends message 2;
At this point it is possible to calculate the time delay that message 1 transmits between access device and server:δ5=T6-T5;Server process
The duration of message 1:δ6=T7-T6.
9th, access device record receives the time T8 of message 2, and the message 3 for the request user profile for carrying T9 is sent
To server;Here, T9 is the time that access device sends message 3, and user profile includes head portrait, user name and the account of user
Name etc.;
At this point it is possible to calculate the time delay that message 2 transmits between access device and server:δ7=T8-T7;At access device
Manage the duration of message 2:δ8=T9-T8;Obtain Token total time:δ9=T8-T5.
10th, server record receives the time T10 of message 3, and the message for carrying user profile is sent to access device
4, the message also carries the time T11 that server sends message 4;
At this point it is possible to calculate the time delay that message 3 transmits between access device and server:δ10=T10-T9;At server
Manage the duration of message 3:δ11=T11-T10.
11st, access device record receives the time T12 of message 4, and the certification success message for carrying T13 is sent into visitor
Family end;
At this point it is possible to calculate the time delay that message 4 transmits between access device and server:δ12=T12-T11;Access device
Handle the duration of message 4:δ13=T13-T12;Obtain the total time of user profile:δ14=T12-T9.
12nd, certification success message is sent to server by client by access device;Server record receives certification
The time T14 of success message.
At this point it is possible to calculate the time delay of certification success message transmissions between access device and server:δ15=T14-T13;
The total time of certification:δ16=T14-T1.
Except δ achieved above1-δ16Outside this 16 time parameters, other times can also be got according to the time of record
Parameter, for example, the total time for obtaining Token and user profile is δ9+δ14Deng.According to these time parameters of acquisition, to access
Equipment, server are authenticated performance evaluation, can be very good to recognize the authentication performance situation of access device, server.
Corresponding with embodiment of the method, the embodiment of the present application additionally provides a kind of time parameter determining device.
With reference to figure 4, Fig. 4 is the first structural representation for the time parameter determining device that the embodiment of the present application provides, should
For access device, the device includes:
Transmitting element 401, for sending the first message to server after the certification request of client transmission is received, and
Obtain the first transmission time for sending the first message;First message is the message sent in verification process.
Receiving unit 402, the second message sent for the reception server, and obtain the first reception for receiving the second message
Time;Second message is the message sent in verification process;
Computing unit 403, for calculating the first the first difference for sending time and the first reception time;
Determining unit 404, for the absolute value of the first difference to be defined as into very first time parameter;Very first time parameter is used for
It is authenticated performance evaluation.
In one embodiment of the application, the second message includes the second transmission time that server sends the second message;
Computing unit 403, it is additionally operable to calculate the first the second difference for receiving time and the second transmission time;
Determining unit 404, it is additionally operable to the absolute value of the second difference being defined as the second time parameter;Second time parameter is used
In being authenticated performance evaluation.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
With reference to figure 5, Fig. 5 is second of structural representation of the time parameter determining device that the embodiment of the present application provides, should
For server, the device includes:
Receiving unit 501, first sent for receiving access device after the certification request of client transmission is received
Message;Access device obtains the first transmission time for sending the first message;First message is the message sent in verification process;
Transmitting element 502, for sending the second message to access device, so that access device, which obtains, receives the second message
First receives the time, calculates the first the first difference for sending time and the first reception time, the absolute value of the first difference is determined
For very first time parameter;Second message is the message sent in verification process, and very first time parameter is used to be authenticated performance point
Analysis.
In one embodiment of the application, the first message includes first and sends the time;
In this case, above-mentioned time parameter determining device can also include:
Acquiring unit (not shown in Fig. 5), the second reception time of the first message is received for obtaining, and/or obtains hair
The second of the second message is sent to send the time;
Computing unit (not shown in Fig. 5), for calculate first send the time and second receive the time the 3rd difference,
And/or second send the time and second receive the time the 4th difference;
Determining unit (not shown in Fig. 5), for the absolute value of the 3rd difference to be defined as into the 3rd time parameter, and/or
The absolute value of 4th difference is defined as the 4th time parameter;3rd time parameter and the 4th time parameter are used for being authenticated property
Can analysis.
In one embodiment of the application, above-mentioned time parameter determining device can also include:
Processing unit (not shown in Fig. 5), for the 3rd time parameter and/or the 4th time parameter to be sent to access and set
It is standby;Or
Processing unit, for receiving the very first time parameter of access device transmission.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
The embodiment of the present application additionally provides a kind of access device, as shown in fig. 6, including processor 601 and machine readable depositing
Storage media 602, machinable medium 602 are stored with the machine-executable instruction that can be performed by processor 601.
In addition, as shown in fig. 6, access device can also include:Communication interface 603 and communication bus 604;Wherein, handle
Device 601, machinable medium 602, communication interface 603 complete mutual communication, communication interface by communication bus 604
603 communications being used between above-mentioned access device and other equipment.
Processor 601 is promoted to realize following steps by machine-executable instruction:
The first message is sent to server after the certification request of client transmission is received, and obtains and sends the first message
First send the time;First message is the message sent in verification process;
The second message that the reception server is sent, and obtain the first reception time for receiving the second message;Second message is
The message sent in verification process;
Calculate the first the first difference for sending time and the first reception time;
The absolute value of first difference is defined as very first time parameter;Very first time parameter is used to be authenticated performance point
Analysis.
In one embodiment of the application, the second message includes the second transmission time that server sends the second message;
Processor 601 is promoted that following steps can also be realized by machine-executable instruction:
Calculate the first the second difference for receiving time and the second transmission time;
The absolute value of second difference is defined as the second time parameter, the second time parameter is used to be authenticated performance point
Analysis.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
Above-mentioned communication bus 604 can be that (Peripheral Component Interconnect, external components are mutual by PCI
Even standard) bus or EISA (Extended Industry Standard Architecture, EISA) be total
Line etc..The communication bus 604 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only with one in Fig. 6
Bar thick line represents, it is not intended that an only bus or a type of bus.
Machinable medium 602 can include RAM (Random Access Memory, random access memory),
NVM (Non-Volatile Memory, nonvolatile memory), for example, at least a magnetic disk storage can also be included.Separately
Outside, machinable medium 602 can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 601 can be general processor, including CPU (Central Processing Unit, centre
Manage device), NP (Network Processor, network processing unit) etc.;It can also be DSP (Digital Signal
Processing, digital signal processor), ASIC (Application Specific Integrated Circuit, it is special
Integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.
The embodiment of the present application additionally provides a kind of server, as shown in fig. 7, comprises processor 701 and machine readable storage
Medium 702, machinable medium 702 are stored with the machine-executable instruction that can be performed by processor 701.
In addition, as shown in fig. 7, server can also include:Communication interface 703 and communication bus 704;Wherein, processor
701st, machinable medium 702, communication interface 703 complete mutual communication, communication interface by communication bus 704
703 communications being used between above-mentioned server and other equipment.
Processor 701 is promoted to realize following steps by machine-executable instruction:
Receive the first message that access device is sent after the certification request of client transmission is received;Access device obtains
Send the first message first sends the time;First message is the message sent in verification process;
The second message is sent to access device, so that access device obtains the first reception time for receiving the second message, meter
The first the first difference for sending time and the first reception time is calculated, the absolute value of the first difference is defined as very first time parameter;
Second message is the message sent in verification process, and very first time parameter is used to be authenticated performance evaluation.
In one embodiment of the application, the first message includes first and sends the time;
After the step of receiving the first message that access device is sent, it can also include:
Obtain the second reception time for receiving the first message, and/or obtain the second of the second message of transmission and send the time;
Calculate the first the 3rd difference for sending time and the second reception time, and/or the second transmission time and second receives
The 4th difference of time;
The absolute value of 3rd difference is defined as the 3rd time parameter, and/or the absolute value of the 4th difference is defined as
Four time parameters;3rd time parameter and the 4th time parameter are used to be authenticated performance evaluation.
In one embodiment of the application, processor 701 is promoted that following step can also be realized by machine-executable instruction
Suddenly:
3rd time parameter and/or the 4th time parameter are sent to access device;Or
Receive the very first time parameter that access device is sent.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
Above-mentioned communication bus 704 can be pci bus or eisa bus etc..It is total that the communication bus 704 can be divided into address
Line, data/address bus, controlling bus etc..For ease of representing, only represented in Fig. 7 with a thick line, it is not intended that only one total
Line or a type of bus.
Machinable medium 702 can include RAM, can also include NVM, for example, at least a magnetic disk storage.
In addition, machinable medium 702 can also be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor 701 can be general processor, including CPU, NP etc.;Can also be DSP, ASIC, FPGA or its
His PLD, discrete gate or transistor logic, discrete hardware components.
The embodiment of the present application additionally provides a kind of machinable medium, is stored with machine-executable instruction, is being located
When managing device calling and performing, machine-executable instruction promotes processor to realize following steps:
The first message is sent to server after the certification request of client transmission is received, and obtains and sends the first message
First send the time;First message is the message sent in verification process;
The second message that the reception server is sent, and obtain the first reception time for receiving the second message;Second message is
The message sent in verification process;
Calculate the first the first difference for sending time and the first reception time;
The absolute value of first difference is defined as very first time parameter;Very first time parameter is used to be authenticated performance point
Analysis.
In one embodiment of the application, the second message includes the second transmission time that server sends the second message;
Machine-executable instruction promotes processor to realize following steps:
Calculate the first the second difference for receiving time and the second transmission time;
The absolute value of second difference is defined as the second time parameter;Second time parameter is used to be authenticated performance point
Analysis.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
The embodiment of the present application additionally provides a kind of machinable medium, is stored with machine-executable instruction, is being located
When managing device calling and performing, machine-executable instruction promotes processor to realize following steps:
Receive the first message that access device is sent after the certification request of client transmission is received;Access device obtains
Send the first message first sends the time;First message is the message sent in verification process;
The second message is sent to access device, so that access device obtains the first reception time for receiving the second message, meter
The first the first difference for sending time and the first reception time is calculated, the absolute value of the first difference is defined as very first time parameter;
Second message is the message sent in verification process, and very first time parameter is used to be authenticated performance evaluation.
In one embodiment of the application, the first message includes first and sends the time;
After the step of receiving the first message that access device is sent, it can also include:
Obtain the second reception time for receiving the first message, and/or obtain the second of the second message of transmission and send the time;
Calculate the first the 3rd difference for sending time and the second reception time, and/or the second transmission time and second receives
The 4th difference of time;
The absolute value of 3rd difference is defined as the 3rd time parameter, and/or the absolute value of the 4th difference is defined as
Four time parameters;3rd time parameter and the 4th time parameter are used to be authenticated performance evaluation.
In one embodiment of the application, machine-executable instruction promotes processor to realize following steps:
3rd time parameter and/or the 4th time parameter are sent to access device;Or
Receive the very first time parameter that access device is sent.
Using above-described embodiment, access device sends first after the certification request of client transmission is received to server
Message, the first transmission time for sending the first message is obtained, in addition, the reception server sends the second message, obtains and receives second
The first of message receives the time, calculates the first the first difference for sending time and the first reception time, determines very first time parameter.
It can be seen that in the embodiment of the present application, access device can determine time parameter according to the time that sends and receives of message, without grabbing
Take message and manual analysis to capture the time of message, reduce the complexity for obtaining time parameter, improve authentication performance point
The efficiency of analysis.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device,
For access device, server, machinable medium embodiment, because it is substantially similar to embodiment of the method, so retouching
That states is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
The preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application.It is all
Any modification, equivalent substitution and improvements made within spirit herein and principle etc., it is all contained in the protection domain of the application
It is interior.
Claims (14)
1. a kind of time parameter determines method, it is characterised in that applied to access device, methods described includes:
The first message is sent to server after the certification request of client transmission is received, and obtains and sends first message
First send the time;First message is the message sent in verification process;
The second message that the server is sent is received, and obtains the first reception time for receiving second message;Described
Two messages are the message sent in verification process;
Calculate the described first the first difference for sending time and the first reception time;
The absolute value of first difference is defined as very first time parameter;The very first time parameter is used to be authenticated performance
Analysis.
2. according to the method for claim 1, it is characterised in that second message includes the server and sends described the
The second of two messages sends the time;
Methods described also includes:
Calculate the described first the second difference for receiving time and the second transmission time;
The absolute value of second difference is defined as the second time parameter;Second time parameter is used to be authenticated performance
Analysis.
3. a kind of time parameter determines method, it is characterised in that applied to server, methods described includes:
Receive the first message that access device is sent after the certification request of client transmission is received;The access device obtains
Send first message first sends the time;First message is the message sent in verification process;
The second message is sent to the access device, so that the access device obtains the first reception for receiving second message
Time, the described first the first difference for sending time and the first reception time is calculated, by the absolute value of first difference
It is defined as very first time parameter;Second message is the message that sends in verification process, the very first time parameter be used for into
Row authentication performance is analyzed.
4. according to the method for claim 3, it is characterised in that first message includes described first and sends the time;
After the step of the first message that the reception access device is sent, in addition to:
When acquisition receives the second reception time of first message, and/or obtains the second transmission for sending second message
Between;
Calculate it is described first send the time and it is described second receive the time the 3rd difference, and/or it is described second send the time and
Described second receives the 4th difference of time;
The absolute value of 3rd difference is defined as the 3rd time parameter, and/or the absolute value of the 4th difference is determined
For the 4th time parameter;3rd time parameter and the 4th time parameter are used to be authenticated performance evaluation.
5. according to the method for claim 4, it is characterised in that methods described also includes:
3rd time parameter and/or the 4th time parameter are sent to the access device;Or
Receive the very first time parameter that the access device is sent.
6. a kind of time parameter determining device, it is characterised in that applied to access device, described device includes:
Transmitting element, for sending the first message to server after the certification request of client transmission is received, and obtain hair
The first of first message is sent to send the time;First message is the message sent in verification process;
Receiving unit, the second message sent for receiving the server, and obtain the first of reception second message and connect
Between time receiving;Second message is the message sent in verification process;
Computing unit, for calculating the described first the first difference for sending time and the first reception time;
Determining unit, for the absolute value of first difference to be defined as into very first time parameter;The very first time parameter is used
In being authenticated performance evaluation.
7. device according to claim 6, it is characterised in that second message includes the server and sends described the
The second of two messages sends the time;
The computing unit, it is additionally operable to calculate the described first the second difference for receiving time and the second transmission time;
The determining unit, it is additionally operable to the absolute value of second difference being defined as the second time parameter;Second time
Parameter is used to be authenticated performance evaluation.
8. a kind of time parameter determining device, it is characterised in that applied to server, described device includes:
Receiving unit, the first message sent for receiving access device after the certification request of client transmission is received;Institute
State access device and obtain the first transmission time for sending first message;First message is the report sent in verification process
Text;
Transmitting element, for sending the second message to the access device, so that the access device, which obtains, receives described second
The first of message receives the time, calculates described first and sends the time and described first and receives the first difference of time, by described the
The absolute value of one difference is defined as very first time parameter;Second message is the message that sends in verification process, described first
Time parameter is used to be authenticated performance evaluation.
9. device according to claim 8, it is characterised in that first message includes described first and sends the time;
Described device also includes:
Acquiring unit, the second reception time of first message is received for obtaining, and/or obtains transmission second message
Second send the time;
Computing unit, the time and described second is sent for calculating described first and receives the 3rd difference, and/or described the of time
Two send the 4th difference of time and the second reception time;
Determining unit, for the absolute value of the 3rd difference to be defined as into the 3rd time parameter, and/or by the 4th difference
Absolute value be defined as the 4th time parameter;3rd time parameter and the 4th time parameter are used to be authenticated performance
Analysis.
10. device according to claim 9, it is characterised in that described device also includes:
Processing unit, for the 3rd time parameter and/or the 4th time parameter to be sent into the access device;Or
The processing unit, the very first time parameter sent for receiving the access device.
A kind of 11. access device, it is characterised in that including processor and machinable medium, the machine readable storage
Media storage has can be by the machine-executable instruction of the computing device, and the processor is by the machine-executable instruction
Promote:Realize any described method and steps of claim 1-2.
12. a kind of server, it is characterised in that including processor and machinable medium, the machine readable storage is situated between
Matter, which is stored with, to be promoted by the machine-executable instruction of the computing device, the processor by the machine-executable instruction
Make:Realize any described method and steps of claim 3-5.
A kind of 13. machinable medium, it is characterised in that be stored with machine-executable instruction, by processor call and
During execution, the machine-executable instruction promotes the processor:Realize any described method and steps of claim 1-2.
A kind of 14. machinable medium, it is characterised in that be stored with machine-executable instruction, by processor call and
During execution, the machine-executable instruction promotes the processor:Realize any described method and steps of claim 3-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710631204.9A CN107547307B (en) | 2017-07-28 | 2017-07-28 | Time parameter determination method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710631204.9A CN107547307B (en) | 2017-07-28 | 2017-07-28 | Time parameter determination method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107547307A true CN107547307A (en) | 2018-01-05 |
CN107547307B CN107547307B (en) | 2021-04-30 |
Family
ID=60970380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710631204.9A Active CN107547307B (en) | 2017-07-28 | 2017-07-28 | Time parameter determination method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107547307B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425891A (en) * | 2008-12-09 | 2009-05-06 | 中兴通讯股份有限公司 | Time synchronization method, system and customer terminal |
CN101621464A (en) * | 2009-05-22 | 2010-01-06 | 杭州华三通信技术有限公司 | Message processing method and message processing device |
CN102271067A (en) * | 2011-08-30 | 2011-12-07 | 中兴通讯股份有限公司 | network detecting method, device and system |
CN103457714A (en) * | 2013-08-19 | 2013-12-18 | 国家电网公司 | Method and system for synchronizing server time |
US20140298037A1 (en) * | 2011-12-15 | 2014-10-02 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for securely transmitting data |
CN104394180A (en) * | 2014-12-18 | 2015-03-04 | 电子科技大学 | Wireless terminal authentication method, wireless router and system |
CN104901851A (en) * | 2015-06-19 | 2015-09-09 | 北京快网科技有限公司 | Method and system detecting network quality |
CN106411647A (en) * | 2016-10-13 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Communication quality detection method and detection server |
-
2017
- 2017-07-28 CN CN201710631204.9A patent/CN107547307B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101425891A (en) * | 2008-12-09 | 2009-05-06 | 中兴通讯股份有限公司 | Time synchronization method, system and customer terminal |
CN101621464A (en) * | 2009-05-22 | 2010-01-06 | 杭州华三通信技术有限公司 | Message processing method and message processing device |
CN102271067A (en) * | 2011-08-30 | 2011-12-07 | 中兴通讯股份有限公司 | network detecting method, device and system |
US20140298037A1 (en) * | 2011-12-15 | 2014-10-02 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for securely transmitting data |
CN103457714A (en) * | 2013-08-19 | 2013-12-18 | 国家电网公司 | Method and system for synchronizing server time |
CN104394180A (en) * | 2014-12-18 | 2015-03-04 | 电子科技大学 | Wireless terminal authentication method, wireless router and system |
CN104901851A (en) * | 2015-06-19 | 2015-09-09 | 北京快网科技有限公司 | Method and system detecting network quality |
CN106411647A (en) * | 2016-10-13 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Communication quality detection method and detection server |
Also Published As
Publication number | Publication date |
---|---|
CN107547307B (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102571857B (en) | Method and system for realizing logging in XMPP (Xmlbased Messaging and Presence Protocol) server | |
CN109889551A (en) | A kind of method of the Internet of Things cloud platform of Intelligent hardware access | |
CN103124267B (en) | The method, system and the cloud server that log in/register is carried out by mobile terminal | |
CN101710979B (en) | Method for managing video monitoring system and central management server | |
CN102882903A (en) | Method and system for acquiring multi-site application information | |
CN110311929A (en) | A kind of access control method, device and electronic equipment and storage medium | |
CN104954508B (en) | A kind of system and its auxiliary charging method for DHCP protocol auxiliary charging | |
CN105024872A (en) | Network performance test method and device | |
CN105704338B (en) | A kind of sound mixing method, audio mixing equipment and system | |
CN109889911A (en) | The method that a port carries multiple stream protocols is realized in Streaming Media reverse proxy service | |
CN107094088A (en) | A kind of loiter network device identification method, device and system | |
CN107766127A (en) | Transaction message processing method, device, equipment and system | |
US7849186B2 (en) | Device, method and system for detecting unwanted conversational media session | |
CN113271299B (en) | Login method and server | |
CN106656919A (en) | Session analysis method and system based on Telnet protocol | |
CN206313803U (en) | A kind of router for realizing network game acceleration | |
CN106230741A (en) | A kind of method and apparatus that message is carried out speed limit | |
CN107547307A (en) | A kind of time parameter determines method and device | |
CN104601358B (en) | A kind of matching process and device realized between acquisition system and analysis system | |
CN106341433A (en) | Service system, signal server and intercom server | |
CN112241301B (en) | IVR flow editing method, IVR implementation method and related equipment | |
CN109729016A (en) | A kind of file transmitting method, equipment and computer readable storage medium | |
CN106130764B (en) | A kind of whether available method and system of monitor video direct broadcasting room data service | |
CN107547509A (en) | A kind of message forwarding method and device | |
CN103546360B (en) | A kind of information acquisition method, system and IMAP clients |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |