Invention content
The main object of the present invention is to provide a kind of control method and device of PTN system information interaction, it is intended to which realization carries
The sensitivity and real-time of high PTN system management.
The present invention proposes that a kind of control method of PTN system information interaction, this method include:
Information to be sent is obtained, and analyzes whether the information to be sent meets default transmission condition;
If the information to be sent, which meets, presets transmission condition, controls the information to be sent and sent through physical layer
It goes out;
If the information to be sent is unsatisfactory for default transmission condition, the information to be sent is controlled through data link
Layer is sent.
Preferably, when the information to be sent meets preset transmission condition, this method further includes:
When the size of the information to be sent is less than or equal to default first threshold values, the letter to be sent is controlled
Breath is sent through physical layer;
When the size of the information to be sent is more than default first threshold values, the information to be sent is controlled through data
Link layer is sent.
Preferably, when the information to be sent meets preset transmission condition, this method further includes:
Each information to be sent to meet default transmission condition is sequentially generated transmit queue according to priority;
When the size of current information to be sent in the queue is less than or equal to default first threshold values, described in control
Current information to be sent is sent through physical layer;
When the size of current information to be sent in the queue is more than default first threshold values, control is described to be sent
Information is sent through data link layer.
Preferably, when the information to be sent meets preset transmission condition, this method further includes:
When the size of the current total transmission information of the data link layer is less than default second threshold values, control is described pending
The information sent is sent through data link layer.
The present invention also proposes that a kind of control device of PTN system information interaction, the device include:
Processing module for obtaining information to be sent, and analyzes whether the information to be sent meets default transmission
Condition;
Control module presets transmission condition if meeting for the information to be sent, controls the letter to be sent
Breath is sent through physical layer;And
If the information to be sent is unsatisfactory for default transmission condition, the information to be sent is controlled through data link
Layer is sent.
Preferably, the control module is additionally operable to be less than or equal to default the in the size of the information to be sent
When one threshold values, controls the information to be sent and sent through physical layer;And
When the size of the information to be sent is more than default first threshold values, the information to be sent is controlled through data
Link layer is sent.
Preferably, the processing module is additionally operable to meet each information to be sent for presetting transmission condition according to preferential
Grade is sequentially generated transmit queue;
The control module is additionally operable to the size of the current information to be sent in the queue less than or equal to default
When the first threshold values, controls the current information to be sent and sent through physical layer;And
When the size of current information to be sent in the queue is more than default first threshold values, control is described to be sent
Information is sent through data link layer.
Preferably, when the information to be sent meets preset transmission condition,
The control module is additionally operable to be less than default second in the size of the current total transmission information of the data link layer
When threshold values, controls the information to be sent and sent through data link layer.
Compared with the prior art, the present invention handles the management message of PTN system by physical layer transmission, passes through physical layer reality
The management function of existing PTN system improves the transmission performance of PTN, and then greatly improves the sensitivity and in real time of PTN system management
Property.
Specific implementation mode
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the flow diagram of the first embodiment for the control method of PTN system information of the present invention interaction.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all be detached from the range covered in following technical solution around the embodiment of inventive concept structure:
Information to be sent is obtained, and analyzes whether the information to be sent meets default transmission condition;If described wait for
The information of transmission, which meets, presets transmission condition, then controls the information to be sent and sent through physical layer;If described pending
The information sent is unsatisfactory for default transmission condition, then controls the information to be sent and sent through data link layer.
It is the specific steps for the control that PTN system information interaction is done step-by-step in the present embodiment below:
Step S11 obtains information to be sent;
Step S12, analyzes whether the information to be sent meets default transmission condition.
Specifically, in PTN system, a variety of two-way point-to-point interface channels based on packet switching service are supported, in number
When according to interaction, transmission media and connection are provided for data link layer by physical layer, data link layer provides data for network layer
Transmission service.It is preset with message to be sent in each node of PTN system or is issued for each node by control device
Message to be sent, the message to be sent can be link management, frame synchronization, Error Control, flow control or fault detect
Etc. interactive information.Information to be sent is obtained, can obtain the information to be sent preserved from node, it also can also be from control
Control equipment receives information to be sent.Analyze whether the information to be sent meets default transmission condition, if described to be sent
Information meet and preset transmission condition, then execute following step S13;If the information to be sent is unsatisfactory for default transmission item
Part then executes following step S14.The default transmission condition can be that the mark of transmitting path is carried in message to be sent,
Also it can also be any other applicable information that can distinguish data transmitting path.
Step S13 controls the information to be sent and is sent through physical layer;
Step S14 controls the information to be sent and is sent through data link layer.
Specifically, presetting transmission condition for carrying the mark of transmitting path in message to be sent, then described in analysis
Whether information to be sent carries the mark sent through physical layer, carries in the information to be sent and is sent through physical layer
Mark when, judge that the information to be sent meets and preset transmission condition, control the information to be sent and sent out through physical layer
It sees off;When the information to be sent does not carry the mark sent through physical layer, the information to be sent is judged not
Meet and preset transmission condition, controls the information to be sent and sent through data link layer, the information to be sent is through object
Reason layer or data link layer are sent to the corresponding destination of information to be sent, and the destination can be network element end or server
Deng.Specific mark can be arranged to the message sent through physical layer in advance by programming in the mark sent through physical layer that carries
Know, for example, it may be 1 or 0 is equal to the identification information that other non-message sent through physical layer distinguish.Node is according to pending
The mark for the transmitting path that the message sent carries, judges whether message to be sent meets default transmission condition, i.e., to be sent
Whether message carries is identified that message to be sent is sent through physical layer or through data link through what physical layer was sent
Layer is sent.The mark sent through physical layer is set for the management information of PTN system, is carried through object in message to be sent
When managing the mark that layer is sent, controls the message to be sent and sent through physical layer, i.e., pass through the management message of PTN system
Physical layer is sent;The management message of PTN system includes the response message of command messages and command messages, controls PTN system
Management function realized by physical layer.For example, being defined about in GE interface 8B/10B coding criterions in IEEE802.3
Special code character(KCODE-GROUPS), K code coding information as shown in Figure 2, wherein K28.0/K28.2/K28.3/K28.4/
K28.6 is left unused, the signaling between using this group of code-group to transmit in the present embodiment, is realized the state instruction between network element and is matched
Set management passage.It preferably uses K28.2/D2.2 codings to make local terminal and sends normal instruction;K28.3/D5.6 makees distal end(Opposite end)
Fault warning indication signal;K28.4/D21.5/Config_reg(Configuration registration)As signalling path, wherein Config_reg
For 16BIT bit wides, maximum can support 65536 message/commands.With reference to figure 3, at the ends A of transmission line, periodicity sending
K28.2/D2.2 instruct, receive the instruction in B receiving terminals, if circuit is normal, then the B receiving terminals energy period receive K28.2/D2.2
Normal state information, when circuit is faulty, it will it is discontinuous or be not received by K28.2/D2.2 information completely, pass through the information
Reception situation judges the state of circuit;Circuit AB status informations are informed No. 1 by K28.3/D5.6 fault warning information in C-terminal
Network element AB circuits send faulty, similar CD line faults detection and can also realize, by adjusting the period that message is sent, can make
Line status failure detection time reaches nanosecond, improves efficiency and real-time that management message is sent.In other realities of the invention
It applies in example, in the physical layer transmission free time, the message except PTN system management message can also be sent.
By handling the management message of PTN system by physical layer transmission, the management of PTN system is realized by physical layer
Function improves the transmission performance of PTN, and then greatly improves the sensitivity and real-time of PTN system management.
As shown in figure 4, the flow diagram of the second embodiment for the control method of PTN system information of the present invention interaction.
Based on above-mentioned first embodiment, when the message to be sent meets and presets transmission condition, this method further includes:
Whether step S15, the size for analyzing the message to be sent are less than or equal to default first threshold values.Described
When the size of information to be sent is less than or equal to default first threshold values, step S13 is executed, controls the information to be sent
It is sent through physical layer;When the size of the information to be sent is more than default first threshold values, step S14, control are executed
The information to be sent is sent through data link layer.
Specifically, when the information to be sent meets and presets transmission condition, i.e., the described message to be sent is PTN systems
When the management message of system, whether the size for analyzing the information to be sent is less than or equal to default first threshold values, that is, analyzes
Whether the message to be sent can be sent by physical layer, be less than or equal in the size of the information to be sent
When default first threshold values, controls the information to be sent and sent through physical layer;In the size of the information to be sent
When more than default first threshold values, controls the information to be sent and sent through data link layer.Default first threshold values
The ability of data, as bandwidth are transmitted for physical layer in the set time, default first threshold values can be 0.5MB or 1.0MB,
Also it can also be the applicable bandwidth value that the ability for the data that can be transmitted according to physical layer is configured.In other realities of the invention
It applies in example, when the size of the current total transmission information of the data link layer is less than default second threshold values, control is described pending
The information sent is sent through data link layer.Default second threshold values is according to the current total transmittability of data link layer
Determine, under default second threshold values the management message of transmission PTN system will not because of between data conflict and congestion cause PTN
The management message of system cannot be sent in time.Default second threshold values can be that 4MB or 5MB etc. is current according to data link layer
The transmission value that total transmittability determines.
The size for meeting the message to be sent for presetting transmission condition by analyzing, is less than in the size of information to be sent
Or when equal to default first threshold values, controls the information to be sent and sent through physical layer;In the letter to be sent
When the size of breath is more than default first threshold values, controls the information to be sent and sent through data link layer.It may insure
Data are quickly sent through data link layer when that cannot be sent by physical layer, avoid not waiting for because of physical layer
The situation that the message of transmission is sent further increases the sensitivity and real-time of PTN system management.
As shown in figure 5, the flow diagram of the 3rd embodiment for the control method of PTN system information of the present invention interaction.
Based on above-mentioned first embodiment, when the message to be sent meets and presets transmission condition, this method further includes:
Step S16, each information to be sent to meet default transmission condition send team according to being sequentially generated for priority
Row;
Whether step S17, the size for analyzing the current information to be sent in the queue are less than or equal to default first
Threshold values.
When the size of current information to be sent in the queue is less than or equal to default first threshold values, step is executed
S13 controls the current information to be sent and is sent through physical layer;The size of current information to be sent in the queue
When more than default first threshold values, step S14 is executed, the information to be sent is controlled and is sent through data link layer.
Specifically, when meet the message to be sent for presetting transmission condition there are it is multiple when, preset transmission condition to meet
According to the transmit queue that is sequentially generated of priority, each message to be sent sends urgent each information to be sent according to message
Degree generates transmit queue;The message to be sent of same priority is bound together into transmission, the high transmit queue of priority
It is preferential to send, message to be sent is sent successively, the size of the current information to be sent in the queue be less than or
When person is equal to default first threshold values, controls the current information to be sent and sent through physical layer;Working as in the queue
When the size of preceding information to be sent is more than default first threshold values, controls the information to be sent and sent out through data link layer
It goes.Information to be sent in the queue can be multiple message to be sent in same priority, can also be in same
One message to be sent of one priority.In other embodiments of the present invention, also can also be will be in same transmit queue
Each message to be sent is sent successively, rather than multiple message to be sent in same transmit queue are sent out together
It goes.
By being sequentially generated transmit queue according to priority to message to be sent, priority height is sent to ensure to be in
Message to be sent send, timely the management message of PTN system is sent, further increases PTN system management
Sensitivity and real-time.
As shown in fig. 6, the functional block diagram of the preferred embodiment for the control device of PTN system information of the present invention interaction.
The device includes processing module 10 and control module 20,
The processing module 10, for obtaining information to be sent, and analyze the information to be sent whether meet it is pre-
If the condition of transmission.
Specifically, the control device of the PTN system information interaction is preferably each node in PTN system, may be used yet
To be any other applicable equipment such as control device.In PTN system, a variety of bidirectional points based on packet switching service are supported
To an interface channel, in data interaction, transmission media and connection, data link layer are provided for data link layer by physical layer
Data delivery service is provided for network layer.It is preset with message to be sent in each node of PTN system or is set by control
Standby to issue message to be sent for each node, which can be link management, frame synchronization, Error Control, stream
The interactive information such as amount control or fault detect.Processing module 10 obtains information to be sent, can obtain to preserve from node
Information to be sent, information to be sent can also be also received from control device.Processing module 10 is analyzed described to be sent
Whether information meets default transmission condition, if the information to be sent meets transmission condition of presetting, control module 20 controls
The information to be sent is sent through physical layer;If the information to be sent is unsatisfactory for default transmission condition, control
Module 20 controls the information to be sent and is sent through data link layer, and the information to be sent is through physical layer or data
Link layer is sent to the corresponding destination of information to be sent, and the destination can be network element end or server etc..It is described default
Transmission condition can be that the mark of transmitting path is carried in message to be sent, and also can also be any other applicable can distinguish
The information of data transmitting path.
The control module 20 is preset transmission condition if meeting for the information to be sent, is controlled described pending
The information sent is sent through physical layer;And
If the information to be sent is unsatisfactory for default transmission condition, the information to be sent is controlled through data link
Layer is sent.
Specifically, transmission condition is preset for carrying the mark of transmitting path in message to be sent, processing module 10
It analyzes whether the information to be sent carries the mark sent through physical layer, is carried through object in the information to be sent
When managing the mark that layer is sent, processing module 10 judges that the information to be sent meets transmission condition of presetting, and control module 20 is controlled
The information to be sent is made to send through physical layer;The mark sent through physical layer is not carried in the information to be sent
When knowledge, processing module 10 judges that the information to be sent is unsatisfactory for default transmission condition, and control module 20 controls described pending
The information sent is sent through data link layer.The mark that is sent through physical layer of carrying can be by programming in advance to warp
Specific identifier is arranged in the message that physical layer is sent, for example, it may be 1 or 0 is equal to other non-message differentiations sent through physical layer
Identification information out.The mark for the transmitting path that processing module 10 is carried according to message to be sent, judges to be sent disappear
Whether breath meets default transmission condition, i.e., the mark sent through physical layer whether message to be sent carries identifies to be sent
Message be to send through physical layer or send through data link layer.It is arranged through physical layer for the management information of PTN system
The mark of transmission, when message to be sent carries the mark sent through physical layer, control module 20 controls described to be sent
Message sent through physical layer, i.e., the management message of PTN system is sent through physical layer;The management of PTN system disappears
Breath includes the response message of command messages and command messages, and the management message of PTN system is sent through physical layer, is controlled
The management function of PTN system is realized by physical layer.For example, in IEEE802.3 about in GE interface 8B/10B coding criterions,
Define special code character(KCODE-GROUPS), as shown in Fig. 2, wherein K28.0/K28.2/K28.3/K28.4/K28.6 retains
Unused, the signaling between using this group of code-group to transmit in the present embodiment realizes that the state instruction and configuration management between network element are led to
Road.It preferably uses K28.2/D2.2 codings to make local terminal and sends normal instruction;K28.3/D5.6 makees distal end(Opposite end)Fault warning
Indication signal;K28.4/D21.5/Config_reg is 16BIT bit wides as signalling path, wherein Config_reg, and maximum can
Support 65536 message/commands.With reference to figure 3, at the ends A of transmission line, periodicity sending K28.2/D2.2 instructions are received in B
End receive the instruction, if circuit is normal, then the B receiving terminals energy period receive K28.2/D2.2 normal state informations, when circuit has
Failure, it will it is discontinuous or be not received by K28.2/D2.2 information completely, the shape that situation judges circuit is received by the information
State;Circuit AB status informations are informed that No. 1 network element AB circuits transmission has event by K28.3/D5.6 fault warning information in C-terminal
Barrier, the detection of similar CD line faults can also be realized, by adjusting the period that message is sent, when can make line status fault detect
Between reach nanosecond, improve efficiency and real-time that management message is sent.In other embodiments of the present invention, in physical layer transmission
When idle, the message except PTN system management message can also be sent.
By handling the management message of PTN system by physical layer transmission, the management of PTN system is realized by physical layer
Function improves the transmission performance of PTN, and then greatly improves the sensitivity and real-time of PTN system management.
Further, the control module 20 is additionally operable to be less than or equal in the size of the information to be sent pre-
If when the first threshold values, controlling the information to be sent and being sent through physical layer;And
When the size of the information to be sent is more than default first threshold values, the information to be sent is controlled through data
Link layer is sent.
Specifically, when the information to be sent meets and presets transmission condition, i.e., the described message to be sent is PTN systems
When the management message of system, whether the size that processing module 10 analyzes the information to be sent is less than or equal to default first valve
Value, that is, analyze whether the message to be sent can be sent by physical layer, in the big slight of the information to be sent
When default first threshold values, control module 20 controls the information to be sent and is sent through physical layer;Institute
When stating the size of information to be sent more than default first threshold values, control module 20 controls the information to be sent through data-link
Road floor is sent.Default first threshold values transmits the ability of data, as bandwidth for physical layer in the set time, described pre-
If the first threshold values can be 0.5MB or 1.0MB, it also can also be that the ability for the data that can be transmitted according to physical layer is configured
Applicable bandwidth value.In other embodiments of the present invention, in the big slight of the current total transmission information of the data link layer
When default second threshold values, control module 20 controls the information to be sent and is sent through data link layer.It is described default
Second threshold values is to be determined according to the current total transmittability of data link layer, and the pipe of PTN system is transmitted under default second threshold values
Reason message will not because of between data conflict and congestion cause the management message of PTN system that cannot send in time.It is default
Second threshold values can be the transmission value that 4MB or 5MB etc. is determined according to the current total transmittability of data link layer.
The size for meeting the message to be sent for presetting transmission condition by the analysis of processing module 10, in information to be sent
Size when being less than or equal to default first threshold values, control module 20 controls the information to be sent and is sent out through physical layer
It goes;When the size of the information to be sent is more than default first threshold values, control module 20 controls the information to be sent
It is sent through data link layer.Data be may insure when that cannot be sent by physical layer, quickly through data link
Layer is sent, avoid because physical layer can not the situation that sends of message to be sent, further increase PTN system management
Sensitivity and real-time.
Further, the processing module 10, be additionally operable to for meet preset each information to be sent of transmission condition according to
Priority is sequentially generated transmit queue;
The control module 20, the size for being additionally operable to the current information to be sent in the queue are less than or equal in advance
If when the first threshold values, controlling the current information to be sent and being sent through physical layer;And
When the size of current information to be sent in the queue is more than default first threshold values, control is described to be sent
Information is sent through data link layer.
Specifically, when meet the message to be sent for presetting transmission condition there are it is multiple when, processing module 10 be meet it is default
Each information to be sent of transmission condition is according to the transmit queue that is sequentially generated of priority, and each message to be sent is according to message
The urgency level of transmission generates transmit queue;The message to be sent of same priority is bound together into transmission, priority is high
Transmit queue preferentially send, message to be sent is sent successively, the current information to be sent in the queue
When size is less than or equal to default first threshold values, control module 20 controls the current information to be sent and is sent out through physical layer
It goes;When the size of current information to be sent in the queue is more than default first threshold values, control module 20 controls described wait for
The information of transmission is sent through data link layer.Information to be sent in the queue can be more in same priority
A message to be sent can also be a message to be sent in same priority.In other embodiments of the present invention, yet
Can send each message to be sent in same transmit queue successively, rather than same transmit queue will be in
Multiple message to be sent send together.
By being sequentially generated transmit queue according to priority to message to be sent, priority height is sent to ensure to be in
Message to be sent send, timely the management message of PTN system is sent, further increases PTN system management
Sensitivity and real-time.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every utilization
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations
Technical field, be included within the scope of the present invention.