CN109120392A - Time translation method and device, equipment, storage medium, processor - Google Patents
Time translation method and device, equipment, storage medium, processor Download PDFInfo
- Publication number
- CN109120392A CN109120392A CN201710482164.6A CN201710482164A CN109120392A CN 109120392 A CN109120392 A CN 109120392A CN 201710482164 A CN201710482164 A CN 201710482164A CN 109120392 A CN109120392 A CN 109120392A
- Authority
- CN
- China
- Prior art keywords
- time
- temporal information
- opposite end
- information
- local terminal
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0016—Arrangements for synchronising receiver with transmitter correction of synchronization errors
- H04L7/0033—Correction by delay
- H04L7/0037—Delay of clock signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of time translation method and device, equipment, storage medium, processors;Wherein, the time translation method includes: the time difference information for obtaining local terminal and opposite end;Receive the specified message that opposite end is sent;Wherein, it specifies and carries the polymerization time that opposite end is polymerize in message;Polymerization time is converted into the local terminal time according to time difference information;Wherein, the local terminal time is polymerize for local terminal.Through the invention, it solves the problems, such as to can not achieve real simultaneous polymerization in LACP networking in the related technology, reduces the influence to project operation.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of time translation method and device, equipment, storage medium,
Processor.
Background technique
In current network Networking construction, in order to guarantee that network stabilization is reliable and the economy of network, chain is often enabled
Control protocol (Link Aggregation Control Protocol, abbreviation LACP) group method is converged to enhance bandwidth in road.
When LACP agreement belongs to slow agreement, especially protocol mode polymerization, any one section after getting port essential information, is not needed
Opposite end confirmation polymerization time first can voluntarily polymerize.In engineer application, especially present high-speed port 10G or even 20G
Port will cause a large amount of packet losses.
For above-mentioned technical problem in the related technology, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of time translation method and device, equipment, storage medium, processors, at least
It solves the problems, such as to can not achieve real simultaneous polymerization in LACP networking in the related technology.
According to one embodiment of present invention, provide a kind of time translation method, comprising: obtain local terminal and opposite end when
Between poor information;Receive the specified message that opposite end is sent;Wherein, it specifies and carries the polymerization time that opposite end is polymerize in message;Root
Polymerization time is converted into the local terminal time according to time difference information;Wherein, the local terminal time is polymerize for local terminal.
Optionally, specified message includes: link aggregate control protocol LACP polymerization message.
Optionally, polymerization time is converted to the local terminal time according to time difference information includes: by polymerization time and time difference
It is poor that information is made, and obtains the local terminal time.
Optionally, the time difference information for obtaining local terminal and opposite end includes: to send Initial message to opposite end, wherein initial
Change and carries the first time information that local terminal sends Initial message in message;Receive the sync message that opposite end is sent;Wherein, synchronous
Opposite end is carried in message receives the second temporal information of Initial message and the third temporal information of opposite end sending sync message;
According to first time information, the second temporal information, third temporal information and the 4th temporal information determine time difference information;Wherein,
4th temporal information is to receive the time of sync message.
Optionally, time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein, the 5th time believed
Breath is the difference of the second temporal information and first time information, the 6th temporal information be the 4th temporal information and third temporal information it
Difference.
Optionally, polymerization time is determined by the 7th temporal information, wherein the 7th temporal information is between local terminal and opposite end
Time delay.
Optionally, local terminal is from end, and opposite end is main side.
Optionally, determine that local terminal is from end in the following manner, opposite end is main side: system banner and opposite end according to local terminal
System banner determine from end and main side;Wherein, it in the case where the system banner of local terminal is less than the system banner of opposite end, determines
Local terminal is from end, and opposite end is main side.
According to one embodiment of present invention, a kind of time conversion equipment is provided, comprising: module is obtained, for obtaining
The time difference information of local terminal and opposite end;Receiving module, for receiving the specified message of opposite end transmission;Wherein, it specifies and is taken in message
The polymerization time being polymerize with opposite end;Conversion module, for polymerization time to be converted to the local terminal time according to time difference information;
Wherein, the local terminal time is polymerize for local terminal.
Optionally, conversion module, it is poor to be also used to make polymerization time and time difference information, obtains the local terminal time.
Optionally, obtaining module includes: transmission unit, for sending Initial message to opposite end, wherein Initial message
The middle first time information for carrying local terminal and sending Initial message;Receiving unit, for receiving the sync message of opposite end transmission;Its
In, in sync message carry opposite end receive Initial message the second temporal information and opposite end issue sync message third when
Between information;Determination unit is used for according to first time information, the second temporal information, third temporal information and the 4th temporal information
Determine time difference information;Wherein, the 4th temporal information is to receive the time of sync message.
Optionally, time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein, the 5th time believed
Breath is the difference of the second temporal information and first time information, the 6th temporal information be the 4th temporal information and third temporal information it
Difference.
According to one embodiment of present invention, a kind of equipment is provided, comprising: processor, for obtaining local terminal and opposite end
Time difference information;Receive the specified message that opposite end is sent;Wherein, when specifying the polymerization that carrying opposite end is polymerize in message
Between;And polymerization time is converted to by the local terminal time according to time difference information;Wherein, the local terminal time is polymerize for local terminal;
Memory is coupled with processor.
Optionally, processor is also used to make polymerization time and time difference information poor, obtains the local terminal time.
Optionally, processor is also used to send Initial message to opposite end, wherein carries local terminal in Initial message and sends
The first time information of Initial message;Receive the sync message that opposite end is sent;Wherein, opposite end is carried in sync message to receive
Second temporal information of Initial message and opposite end issue the third temporal information of sync message;And believed according to first time
Breath, the second temporal information, third temporal information and the 4th temporal information determine time difference information;Wherein, the 4th temporal information is
Receive the time of sync message.
Optionally, time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein, the 5th time believed
Breath is the difference of the second temporal information and first time information, the 6th temporal information be the 4th temporal information and third temporal information it
Difference.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage
Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program,
In, described program executes method described in any of the above embodiments when running.
Through the invention, poly- due to that can be polymerize opposite end with the time difference information of opposite end according to the local terminal of acquisition
Closing the time is converted to the local terminal time that local terminal is polymerize, that is, realizes local terminal and the unification of time that opposite end is polymerize, i.e.,
Local terminal and opposite end can be polymerize in point at the same time, and therefore, can solve cannot be real in LACP networking in the related technology
Now the problem of real simultaneous polymerization, reduce the influence to project operation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of time translation method of the embodiment of the present invention;
Fig. 2 is the flow chart of time translation method according to an embodiment of the present invention;
Fig. 3 is the structural block diagram of time conversion equipment according to an embodiment of the present invention;
Fig. 4 is the structural block diagram of the equipment provided according to embodiments of the present invention;
Fig. 5 is the LACP message reserved field schematic diagram that preferred embodiment provides according to the present invention;
Fig. 6 is the schematic diagram for the LACP message interaction that preferred embodiment provides according to the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application 1 can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of movement of time translation method of the embodiment of the present invention
The hardware block diagram of terminal.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in figure) processing
Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.),
Memory 104 for storing data and the transmitting device 106 for communication function.Those of ordinary skill in the art can be with
Understand, structure shown in FIG. 1 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.For example, mobile terminal 10
It may also include than shown in Fig. 1 more perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing the software program and module of application software, such as the time in the embodiment of the present invention
Corresponding program instruction/the module of conversion method, processor 102 by the software program that is stored in memory 104 of operation and
Module realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include high speed with
Machine memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or other it is non-easily
The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located
Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network is including but not limited to mutual
Networking, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to it is mutual
Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, use
In wirelessly being communicated with internet.
A kind of time translation method for running on above-mentioned mobile terminal is provided in the present embodiment, and Fig. 2 is according to this hair
The flow chart of the time translation method of bright embodiment, as shown in Fig. 2, the process includes the following steps:
Step S202 obtains the time difference information of local terminal and opposite end;
Step S204 receives the specified message that opposite end is sent;Wherein, it specifies and carries the polymerization that opposite end is polymerize in message
Time;
Polymerization time is converted to the local terminal time according to time difference information by step S206;Wherein, the local terminal time is used for local terminal
It is polymerize.
Through the above steps, due to that can be polymerize opposite end with the time difference information of opposite end according to the local terminal of acquisition
Polymerization time is converted to the local terminal time that local terminal is polymerize, that is, realizes local terminal and the unification of time that opposite end is polymerize,
I.e. local terminal and opposite end can be polymerize in point at the same time, and therefore, can solve cannot in LACP networking in the related technology
The problem of realizing real simultaneous polymerization reduces the influence to project operation.
It should be noted that above-mentioned specified message may include: link aggregate control protocol LACP polymerization message, but not
It is limited to this.
It should be noted that above-mentioned steps S206 can be showed themselves in that and be made polymerization time and time difference information poor, obtain
Hold the time.
It should be noted that above-mentioned steps S202, which can be showed themselves in that opposite end, sends Initial message, wherein initialization
The first time information that local terminal sends Initial message is carried in message;Receive the sync message that opposite end is sent;Wherein, synchronous report
Opposite end is carried in text receives the second temporal information of Initial message and the third temporal information of opposite end sending sync message;Root
According to first time information, the second temporal information, third temporal information and the 4th temporal information determine time difference information;Wherein,
Four temporal informations are to receive the time of sync message.
It should be noted that above-mentioned Initial message can be LACP Initial message, but it is not limited to this.
It should be noted that above-mentioned time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein,
5th temporal information is the difference of the second temporal information and first time information, and the 6th temporal information is the 4th temporal information and third
The difference of temporal information.
It should be noted that above-mentioned polymerization time can be determined by the 7th temporal information, wherein the 7th temporal information is this
Time delay between end and opposite end.
Optionally, above-mentioned polymerization time is not less than the 7th temporal information.Above-mentioned time delay can be the 8th temporal information and the
The difference of nine temporal informations;Above-mentioned 8th temporal information can be the difference of above-mentioned 4th temporal information and first time information, above-mentioned
9th temporal information can be the difference of above-mentioned third temporal information and above-mentioned second temporal information.
It should be noted that before above-mentioned steps S204, the above method further include: determine that local terminal is from end, opposite end is
Main side.
It should be noted that can determine that local terminal is from end in the following manner, opposite end is main side: the system according to local terminal
The system banner of mark and opposite end is determined from end and main side;Wherein, the system banner of opposite end is less than in the system banner of local terminal
In the case of, determine that local terminal is from end, opposite end is main side.
It, can be by the MAC Address of equipment and/or excellent it should be noted that above system mark can be a character string
First grade composition, such as the system banner of opposite end can be and be made of the MAC Address and/or priority of opposite end, and but it is not limited to this.
It should be noted that the executing subject of above-mentioned steps can be local terminal, which can be terminal etc., but be not limited to
This.
It should be noted that above-mentioned local terminal and opposite end be it is opposite, the role of the two can exchange, for example above-mentioned local terminal can
To be main side, above-mentioned opposite end can be the function of being used to complete to complete above-mentioned opposite end from end or above-mentioned local terminal, and above-mentioned opposite end is used
In the function of completing above-mentioned local terminal completion, but it is not limited to this.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of time conversion equipment is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably
Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module "
The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or
The realization of the combination of software and hardware is also that may and be contemplated.
Fig. 3 is the structural block diagram of time conversion equipment according to an embodiment of the present invention, as shown in figure 3, the device includes:
Module 32 is obtained, for obtaining the time difference information of local terminal and opposite end;
Receiving module 34 is connect with above-mentioned acquisition module 32, for receiving the specified message of opposite end transmission;Wherein, it specifies
The polymerization time that opposite end is polymerize is carried in message;
Conversion module 36 is connect with above-mentioned receiving module 34, for polymerization time to be converted to this according to time difference information
Hold the time;Wherein, the local terminal time is polymerize for local terminal.
By above-mentioned apparatus, since conversion module 36 can be according to the local terminal of acquisition and the time difference information of opposite end by opposite end
The polymerization time being polymerize is converted to the local terminal time that local terminal is polymerize, that is, realizes local terminal and when opposite end is polymerize
Between unification, i.e., local terminal and opposite end can at the same time point be polymerize, therefore, can solve LACP group in the related technology
The problem of can not achieve real simultaneous polymerization in net reduces the influence to project operation.
It should be noted that above-mentioned specified message may include: link aggregate control protocol LACP polymerization message, but not
It is limited to this.
It should be noted that above-mentioned conversion module 36, it is poor to can be also used for making polymerization time and time difference information, obtains
The local terminal time.
In one embodiment of the invention, above-mentioned acquisition module 32 may include: transmission unit, for sending to opposite end
Initial message, wherein the first time information that local terminal sends Initial message is carried in Initial message;Receiving unit, with
Above-mentioned transmission unit connection, for receiving the sync message of opposite end transmission;Wherein, opposite end is carried in sync message to receive initially
The second temporal information and opposite end of changing message issue the third temporal information of sync message;Determination unit, with above-mentioned receiving unit
Connection, for determining that the time difference believes according to first time information, the second temporal information, third temporal information and the 4th temporal information
Breath;Wherein, the 4th temporal information is to receive the time of sync message.
It should be noted that above-mentioned Initial message can be LACP Initial message, but it is not limited to this.
It should be noted that above-mentioned time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein,
5th temporal information is the difference of the second temporal information and first time information, and the 6th temporal information is the 4th temporal information and third
The difference of temporal information.
It should be noted that above-mentioned polymerization time can be determined by the 7th temporal information, wherein the 7th temporal information is this
Time delay between end and opposite end.
Optionally, above-mentioned polymerization time is not less than the 7th temporal information.Above-mentioned time delay can be the 8th temporal information and the
The difference of nine temporal informations;Above-mentioned 8th temporal information can be the difference of above-mentioned 4th temporal information and first time information, above-mentioned
9th temporal information can be the difference of above-mentioned third temporal information and above-mentioned second temporal information.
It should be noted that above-mentioned opposite end is main side it should be noted that above-mentioned local terminal is from end.
It should be noted that can determine that local terminal is from end in the following manner, opposite end is main side: the system according to local terminal
The system banner of mark and opposite end is determined from end and main side;Wherein, the system banner of opposite end is less than in the system banner of local terminal
In the case of, determine that local terminal is from end, opposite end is main side.
It, can be by the MAC Address of equipment and/or excellent it should be noted that above system mark can be a character string
First grade composition, such as the system banner of opposite end can be and be made of the MAC Address and/or priority of opposite end, and but it is not limited to this.
It should be noted that above-mentioned apparatus can be located in local terminal, which can be terminal etc., but not limited to this.
It should be noted that above-mentioned local terminal and opposite end be it is opposite, the role of the two can exchange, for example above-mentioned local terminal can
To be main side, above-mentioned opposite end can be the function of being used to complete to complete above-mentioned opposite end from end or above-mentioned local terminal, and above-mentioned opposite end is used
In the function of completing above-mentioned local terminal completion, but it is not limited to this.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiment of the invention also provides a kind of equipment, Fig. 4 is the structural frames of the equipment provided according to embodiments of the present invention
Figure, as shown in figure 4, the equipment includes:
Processor 42, for obtaining the time difference information of local terminal and opposite end;Receive the specified message that opposite end is sent;Wherein,
The polymerization time that opposite end is polymerize is carried in specified message;And when according to time difference information polymerization time being converted to local terminal
Between;Wherein, the local terminal time is polymerize for local terminal;
Memory 44 is coupled with above-mentioned processor 42.
By above equipment, due to processor 42 can according to the local terminal of acquisition and the time difference information of opposite end by opposite end into
The polymerization time of row polymerization is converted to the local terminal time that local terminal is polymerize, that is, realizes local terminal and time that opposite end is polymerize
Unification, i.e., local terminal and opposite end can at the same time point be polymerize, therefore, can solve LACP networking in the related technology
In the problem of can not achieve real simultaneous polymerization, reduce the influence to project operation.
It should be noted that above-mentioned specified message may include: link aggregate control protocol LACP polymerization message, but not
It is limited to this.
It should be noted that above-mentioned processor 42 can be also used for making polymerization time and time difference information poor, obtain
Hold the time.
It should be noted that above-mentioned processor 42 can be also used for sending Initial message to opposite end, wherein initialization report
The first time information that local terminal sends Initial message is carried in text;Receive the sync message that opposite end is sent;Wherein, sync message
The middle third temporal information for carrying opposite end and receiving the second temporal information and opposite end sending sync message of Initial message;And
According to first time information, the second temporal information, third temporal information and the 4th temporal information determine time difference information;Wherein,
4th temporal information is to receive the time of sync message.
It should be noted that above-mentioned Initial message can be LACP Initial message, but it is not limited to this.
It should be noted that above-mentioned time difference information is the average value of the 5th temporal information and the 6th temporal information;Wherein,
5th temporal information is the difference of the second temporal information and first time information, and the 6th temporal information is the 4th temporal information and third
The difference of temporal information.
It should be noted that above-mentioned polymerization time can be determined by the 7th temporal information, wherein the 7th temporal information is this
Time delay between end and opposite end.
Optionally, above-mentioned polymerization time is not less than the 7th temporal information.Above-mentioned time delay can be the 8th temporal information and the
The difference of nine temporal informations;Above-mentioned 8th temporal information can be the difference of above-mentioned 4th temporal information and first time information, above-mentioned
9th temporal information can be the difference of above-mentioned third temporal information and above-mentioned second temporal information.
It should be noted that being from end in above-mentioned local terminal, opposite end is main side.
It should be noted that can determine that local terminal is from end in the following manner, opposite end is main side: the system according to local terminal
The system banner of mark and opposite end is determined from end and main side;Wherein, the system banner of opposite end is less than in the system banner of local terminal
In the case of, determine that local terminal is from end, opposite end is main side.
It, can be by the MAC Address of equipment and/or excellent it should be noted that above system mark can be a character string
First grade composition, such as the system banner of opposite end can be and be made of the MAC Address and/or priority of opposite end, and but it is not limited to this.
It should be noted that above-mentioned local terminal and opposite end be it is opposite, the role of the two can exchange, for example above-mentioned local terminal can
To be main side, above-mentioned opposite end can be the function of being used to complete to complete above-mentioned opposite end from end or above-mentioned local terminal, and above-mentioned opposite end is used
In the function of completing above-mentioned local terminal completion, but it is not limited to this.
Embodiment 4
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned
Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store program code such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation
Step in Shi Zhihang any of the above-described method.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Embodiment in order to better understand the present invention is further explained the present invention below in conjunction with preferred embodiment.
The purpose of the preferred embodiment of the present invention is proposed a kind of according to LACP protocol massages feature, by protocol interaction
Time stab information is interacted in the process, is achieved the purpose that interactive both sides' true synchronization polymerization, is reduced the influence to project operation.
In a preferred embodiment of the invention, Network Time Protocol (Network Time Protocol, abbreviation NTP) is utilized
Protocol interaction thought, it is main to be carried in LACP protocol Data Unit (Protocol Data Unit, abbreviation PDU) using related
The temporal information of interaction both sides achievees the purpose that obtain both sides' time.The specific method is as follows, in LACP initial phase, interaction
For both sides when issuing Initial message, starting 4 bytes in LACP reserved field is all T1, and second 4 byte is T2, third
A 4 byte is T3, and when the 4th 4 bytes are that T4. sends first Initial message, T1 fills out the high-precision time stamp of local terminal,
Opposite end time stamp is filled out when opposite end receives on T2.When opposite end is replied, the time stamp of opposite end is filled out in T3, and local terminal receives pair
It is filled out on T4 when holding message, in this way, the time delay of both sides is exactly that delay is equal to (T2-T1)+(T4-T3), unidirectional message
Time delay is exactly the half of the delay.The polymerization of LACP can not polymerize after simple basis receives opposite end syn message,
But to judge principal and subordinate end, by the way that system banner inside LACP, lesser system identifier is main side, to receive the poly- of main side from end
It could start to polymerize after closing message.Main side message before calculates the delay time, provides a polymerization time T5, is put into the 5th
In a 4 byte, from end, T3, T4 are known that the time difference of local terminal and main side, conversion T5 to local terminal time, both sides before
The polymerization of system is finally set according to the time point.Both sides' system has reached point polymerization at the same time as a result,.
In actual use, the method preferred embodiment of the present invention provided is used for broadband access equipment, and which is effective
The load balancing of aggregation group is realized, and the fixation side before being superior to for the load sharing situation in the case of different networkings
Formula, system can be stablized within 1ms.
Fig. 5 is the LACP message reserved field schematic diagram that preferred embodiment provides according to the present invention, in Fig. 5, LACP report
Literary length is usually 128, and arm's length standard provides outside field, and last there are also the reserved fields of 50 bytes, for non-zero reserved word
Section, normal protocol are also to be capable of handling, that is, even if the equipment for not supporting new method, also there is no problem for docking.
Fig. 6 be according to the present invention preferred embodiment provide LACP message interaction schematic diagram, as shown in fig. 6, equipment A and
Equipment B start both sides start carry out LACP interaction, for the first time all can first Initial message of active transmission, tell other side oneself
Correlated condition, inside the message, two T1 fields all have been written to local time stamp.After both sides receive message, the report that will receive
The literary time is written to inside T2, can be by the position the syn position of local terminal if LACP normal process decision can enter next state
And it is sent to other side, the opposite end information package that can receive last time before sending also needs the message before to receive into message
The T1 arrived, T2 are also copied in message, and by T3 set when sending.After the syn message is received by opposite end, the time of T4
Also it is recorded.Finally, the system identifier of equipment A is less than the system identifier of equipment B, then equipment A ' can take in final polymerization message
T5, T5 are the time stamps relative to equipment A current time, and after equipment B is received, according to T1-T4 before, T5 is converted to equipment B
Time stamp, actuating station cause for gossip border polymerize when last port is to the time.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (18)
1. a kind of time translation method characterized by comprising
Obtain the time difference information of local terminal and opposite end;
Receive the specified message that opposite end is sent;Wherein, the polymerization time that the opposite end is polymerize is carried in the specified message;
The polymerization time is converted into the local terminal time according to the time difference information;Wherein, the local terminal time is for described
Local terminal is polymerize.
2. the method according to claim 1, wherein the specified message includes: link aggregate control protocol
LACP polymerize message.
3. the method according to claim 1, wherein the polymerization time is converted according to the time difference information
Include: for the local terminal time
It is poor that the polymerization time and the time difference information are made, and obtains the local terminal time.
4. the method according to claim 1, wherein the time difference information for obtaining local terminal and opposite end includes:
Initial message is sent to the opposite end, wherein is carried the local terminal in the Initial message and is sent the initialization
The first time information of message;
Receive the sync message that the opposite end is sent;Wherein, carried in the sync message opposite end receive it is described initial
The second temporal information and opposite end of changing message issue the third temporal information of the sync message;
According to the first time information, second temporal information, the third temporal information and the 4th temporal information are determined
The time difference information;Wherein, the 4th temporal information is to receive the time of the sync message.
5. according to the method described in claim 4, it is characterized in that, when the time difference information is the 5th temporal information and the 6th
Between information average value;Wherein, the 5th temporal information is the difference of second temporal information and the first time information,
6th temporal information is the difference of the 4th temporal information and the third temporal information.
6. according to the method described in claim 4, it is characterized in that, the polymerization time is determined by the 7th temporal information, wherein
Time delay of 7th temporal information between the local terminal and the opposite end.
7. the opposite end is main side the method according to claim 1, wherein the local terminal is from end.
8. the method according to the description of claim 7 is characterized in that determine in the following manner the local terminal be from end, it is described
Opposite end is main side:
It determines according to the system banner of the local terminal and the system banner of the opposite end from end and main side;Wherein, in the local terminal
System banner be less than the system banner of the opposite end in the case where, determine that the local terminal is from end, the opposite end is main side.
9. a kind of time conversion equipment characterized by comprising
Module is obtained, for obtaining the time difference information of local terminal and opposite end;
Receiving module, for receiving the specified message of opposite end transmission;Wherein, the opposite end is carried in the specified message to be gathered
The polymerization time of conjunction;
Conversion module, for the polymerization time to be converted to the local terminal time according to the time difference information;Wherein, the local terminal
Time is polymerize for the local terminal.
10. device according to claim 9, which is characterized in that the conversion module, be also used to by the polymerization time with
It is poor that the time difference information is made, and obtains the local terminal time.
11. device according to claim 9, which is characterized in that the acquisition module includes:
Transmission unit, for sending Initial message to the opposite end, wherein the local terminal hair is carried in the Initial message
Send the first time information of the Initial message;
Receiving unit, the sync message sent for receiving the opposite end;Wherein, described pair of termination is carried in the sync message
The second temporal information and opposite end that receive the Initial message issue the third temporal information of the sync message;
Determination unit, for according to the first time information, second temporal information, the third temporal information and the 4th
Temporal information determines the time difference information;Wherein, the 4th temporal information is to receive the time of the sync message.
12. device according to claim 11, which is characterized in that the time difference information is the 5th temporal information and the 6th
The average value of temporal information;Wherein, the 5th temporal information be second temporal information and the first time information it
Difference, the 6th temporal information are the difference of the 4th temporal information and the third temporal information.
13. a kind of equipment characterized by comprising
Processor, for obtaining the time difference information of local terminal and opposite end;Receive the specified message that opposite end is sent;Wherein, the finger
Determine to carry the polymerization time that the opposite end is polymerize in message;And the polymerization time is turned according to the time difference information
It is changed to the local terminal time;Wherein, the local terminal time is polymerize for the local terminal;
Memory is coupled with the processor.
14. equipment according to claim 13, which is characterized in that the processor is also used to the polymerization time and institute
It is poor to state time difference information work, obtains the local terminal time.
15. equipment according to claim 13, which is characterized in that the processor is also used to send to the opposite end initial
Change message, wherein the first time information that the local terminal sends the Initial message is carried in the Initial message;It receives
The sync message that the opposite end is sent;Wherein, the opposite end is carried in the sync message receive the Initial message
Second temporal information and opposite end issue the third temporal information of the sync message;And according to the first time information, institute
The second temporal information is stated, the third temporal information and the 4th temporal information determine the time difference information;Wherein, the described 4th
Temporal information is to receive the time of the sync message.
16. equipment according to claim 15, which is characterized in that the time difference information is the 5th temporal information and the 6th
The average value of temporal information;Wherein, the 5th temporal information be second temporal information and the first time information it
Difference, the 6th temporal information are the difference of the 4th temporal information and the third temporal information.
17. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run
Method described in any one of perform claim requirement 1 to 8.
18. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 8 described in method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710482164.6A CN109120392A (en) | 2017-06-22 | 2017-06-22 | Time translation method and device, equipment, storage medium, processor |
PCT/CN2018/088475 WO2018233450A1 (en) | 2017-06-22 | 2018-05-25 | Time conversion method and device, apparatus, storage medium, and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710482164.6A CN109120392A (en) | 2017-06-22 | 2017-06-22 | Time translation method and device, equipment, storage medium, processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109120392A true CN109120392A (en) | 2019-01-01 |
Family
ID=64732789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710482164.6A Pending CN109120392A (en) | 2017-06-22 | 2017-06-22 | Time translation method and device, equipment, storage medium, processor |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109120392A (en) |
WO (1) | WO2018233450A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385048B (en) * | 2018-12-29 | 2023-06-30 | 中兴通讯股份有限公司 | Time synchronization method and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8942089B2 (en) * | 2012-05-08 | 2015-01-27 | Cisco Technology, Inc. | Method and apparatus for adaptive fast start in link aggregation |
CN103067113B (en) * | 2012-12-24 | 2015-08-12 | 中兴通讯股份有限公司 | Method and the device of PTP time synchronized is realized based on aggregated links |
CN103312429B (en) * | 2013-06-08 | 2015-11-25 | 杭州华三通信技术有限公司 | A kind of method for synchronizing time and device |
CN105703933B (en) * | 2014-11-27 | 2019-03-15 | 杭州迪普科技股份有限公司 | Aggregated links restoration methods and device |
-
2017
- 2017-06-22 CN CN201710482164.6A patent/CN109120392A/en active Pending
-
2018
- 2018-05-25 WO PCT/CN2018/088475 patent/WO2018233450A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2018233450A1 (en) | 2018-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11824960B2 (en) | Communication method, communications device, and storage medium | |
CN103888386B (en) | The transmission method and device, system of expansible virtual local area network packet | |
CN111049752B (en) | Load balancing method and device for multiple transmission lines | |
CN106603550B (en) | A kind of Network Isolation method and device | |
CN104995878B (en) | A kind of message transmitting method, equipment and communication system | |
WO2022062052A1 (en) | 5g-based method, module and terminal for realizing low scheduling latency and high speed access, and secondary electrical device | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN108737127B (en) | Information notification method and device | |
CN105471603B (en) | Method, device and system for remotely configuring PTP (precision time protocol) service of optical network unit | |
CN110351286A (en) | Link flood attack detects response mechanism in a kind of software defined network | |
US20230091501A1 (en) | Port status configuration method, apparatus, and system, and storage medium | |
CN109936492A (en) | A kind of methods, devices and systems by tunnel transmission message | |
WO2021088813A1 (en) | Packet encapsulating method and apparatus, and packet decapsulating method and apparatus | |
CN110381071A (en) | A kind of message transmitting method, device and send method, apparatus | |
CN105284083B (en) | The methods, devices and systems that OpenFlow equipment is communicated with IP network equipment | |
CN102546409B (en) | Method and RB (route bridge) for processing message based on TRILL (Transparent Interconnection of Lots of Links) network | |
CN105933235B (en) | Data communications method and device | |
CN105306276B (en) | OAM protocol encapsulating method, system and EPON based on software defined network access net | |
CN105763375B (en) | A kind of data packet sending method, method of reseptance and microwave station | |
CN109120392A (en) | Time translation method and device, equipment, storage medium, processor | |
CN105284184B (en) | A kind of data transmission method, device and network system | |
CN113163276A (en) | Method, device and system for issuing routing information | |
CN104284383A (en) | Method and device for keeping service continuity | |
CN107113229B (en) | A kind of notice message treating method and apparatus | |
CN113747582B (en) | Configuration method, device, storage medium and node of beacon time slot area |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190101 |
|
WD01 | Invention patent application deemed withdrawn after publication |