CN104579835B - The method and apparatus of transmission channel in a kind of detection E1 link data frames - Google Patents
The method and apparatus of transmission channel in a kind of detection E1 link data frames Download PDFInfo
- Publication number
- CN104579835B CN104579835B CN201510004058.8A CN201510004058A CN104579835B CN 104579835 B CN104579835 B CN 104579835B CN 201510004058 A CN201510004058 A CN 201510004058A CN 104579835 B CN104579835 B CN 104579835B
- Authority
- CN
- China
- Prior art keywords
- time slot
- slot
- data
- time
- detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiments of the invention provide a kind of method and apparatus of transmission channel in detection E1 link data frames.This method mainly includes:Cache the time slot data of setting time section respectively to each time slot in the data frame of E1 links;Using single time slot filtering policy set in advance, the time slot data of each time slot are analyzed successively, the time slot without composition transmission channel is excluded according to analysis result;All time slots for not having to exclude for single time slot filtering policy, inspection policies are bundled using multi-slot set in advance, the splicing data of the time slot data of multiple time slots are analyzed, are excluded to bundle mode without multiple time slots of composition transmission channel according to analysis result.The embodiment of the present invention can exclude some single time slots for being not engaged in transmission channel in advance, exclude two time slots binding mode, the multiple time slots binding mode that some do not form transmission channel, it need not carry out matching one by one between time slot, avoid the consumption of time and resource caused by matching one by one between time slot.
Description
Technical field
The present invention relates to a kind of method of transmission channel in E1 link technologies field, more particularly to detection E1 link data frames
And device.
Background technology
30 road PCM (pulse code modulation, pulse code modulation) abbreviation E1, the E1 speed in Europe is
2.048Mbit/s。
E1 applies mainly has two ways in data communication:Channelized e1 and nonchannelized E1.When using nonchannelized
During E1, it is transmitted 1 E1 link as the data channel all the way of 2M bandwidth.
When using channelized e1 link, a time division multiple frame (frame rate T=125us) of E1 links is divided into 32 altogether
Individual time slot, the numbering of time slot is TS0~TS31.Wherein time slot TS0 is used as frame synchronization, and time slot TS16 is used for transmitting signaling or biography
Transmission of data, one or more time slot can form a transmission channel, transmission of one line data-signal.Therefore, in practical application
In, multilink transmission channel can be formed in the data frame of an E1 link.
The method that transmission channel in a kind of data frame to E1 links of the prior art is detected is:In E1 links
Data frame each time slot between, according to link data whether byte-aligned, FCS (Frame Check Sequence, frame examine
Sequence) whether consistent etc. the detection method of verification, matching detection, detects which time slot bundles, and constitutes transmission one by one
Passage.
The shortcomings that method that transmission channel in the above-mentioned data frame of the prior art to E1 links is detected is:Should
Method is very time-consuming, it is necessary to consume substantial amounts of system resource.
The content of the invention
The embodiment provides a kind of method and apparatus of transmission channel in detection E1 link data frames, with lifting
Transmission channel detection efficiency in the data frame of E1 links.
According to an aspect of the invention, there is provided in a kind of detection E1 link data frames transmission channel method, including:
Cache the time slot data of setting time section respectively to each time slot in the data frame of E1 links;
Using single time slot filtering policy set in advance, the time slot data of each time slot are analyzed successively, according to
Analysis result excludes the time slot without composition transmission channel;
All time slots for not having to exclude for the single time slot filtering policy, bundled and examined using multi-slot set in advance
Strategy is surveyed, the splicing data of the time slot data of multiple time slots are analyzed, is excluded according to analysis result logical without composition transmission
Multiple time slots binding mode in road.
Preferably, the single time slot filtering policy, multi-slot binding inspection policies are controlled based on high speed data link
The link characteristics of HDLC classes agreement (including HDLC, PPP, MLPPP, FR, MFR etc.) and formulate.
Preferably, described utilization single time slot filtering policy set in advance, successively to the time slot data of each time slot
Analyzed, the time slot without composition transmission channel is excluded according to analysis result, including:
When the data value of the time slot data of some time slot keeps constant in the setting time section, and the data value is not
Equal to the designated identification value in the data frame of the E1 links of HDLC class agreements, then judge some described time slot not with other time slots
Form transmission channel;
And/or
In the setting time section, the time slot data of some time slot described in caching are divided into multiple 8bit data
Section, when containing continuous 1 situation no less than 7 in the data value of any one data segment, then judge some described time slot
Transmission channel is not formed with other time slots.
Preferably, the described all time slots for not having to exclude for the single time slot filtering policy, using presetting
Multi-slot binding inspection policies, the splicing data of the time slot data of multiple time slots are analyzed, excluded according to analysis result
Multiple time slots binding mode of transmission channel is not formed, including:
By the single time slot filtering policy do not have exclude each time slot, according to each time slot time-gap number from it is small to
Big sortord is arranged, and forms slot arrangements queue;The arrangement of each time slot in the slot arrangements queue
Sequentially, the priority of each time slot matching is determined, is arranged in foremost slot priorities highest, the time slot of arrangement more rearward is excellent
First level is lower, and the slot priorities for being arranged in most rank rear are minimum;
Each time slot is extracted successively from the slot arrangements queue, for each time slot extracted, according to setting
Multi-slot binding inspection policies, with reference to each time slot priority to each time slot carry out time slot bundle detection two-by-two, exclusion
Time slot binding mode between some two time slots;
After the detection of binding two-by-two between all two time slots in completing the slot arrangements queue, according still further to institute
Multi-slot binding inspection policies are stated, are carried out with reference to the priority of each time slot between all time slots in the slot arrangements queue
The binding detection of multiple time slots, exclude multiple time slots binding modes that some do not form transmission channel.
Preferably, described each time slot for extracting, inspection policies are bundled according to the multi-slot of setting, with reference to each
The priority of individual time slot carries out time slot to each time slot and bundlees detection two-by-two, excludes the time slot binding side between some two time slots
Formula, including:
By some time slot to be detected and an other time slot, totally two time slot data are stitched together, when obtaining splicing
Gap data, during splicing, the time slot data of the high time slot of priority are arranged in front, the timeslot number of the low time slot of priority
After being arranged in;
By the data segment for splicing time slot data and being divided into multiple 8bit, in the data value for detecting any one data segment
Whether continuous 1 no less than 7 is contained, if comprising excluding among described two time slots without being spaced other time slots, straight
Connect the time slot binding mode bundled;
Detection process is bundled two-by-two according to the time slot between above-mentioned two time slot, completes the institute in the slot arrangements queue
There is the detection of binding two-by-two between two time slots.
Preferably, after the detection of binding two-by-two between all two time slots in completing the slot arrangements queue,
Inspection policies are bundled according still further to the multi-slot, owning in the slot arrangements queue is carried out with reference to the priority of each time slot
Multiple time slots binding detection between time slot, some multiple time slots binding modes for not forming transmission channel are excluded, including:
After the detection of binding two-by-two between all two time slots in completing the slot arrangements queue, according still further to institute
Multi-slot binding inspection policies are stated, 3 time slots carried out between all time slots in the slot arrangements queue bundle detection, 4
For M time slot binding detection ... of individual time slot binding detection ... until the binding detection of N number of time slot, the N is the slot arrangements team
Total number of timeslots in row;
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing timeslot number
According to during splicing, the time slot data of the high time slot of priority are arranged in front, the time slot data row of the low time slot of priority
After being listed in;
By the data segment for splicing time slot data and being divided into multiple 8bit, in the data value for detecting any one data segment
Whether contain continuous 1 no less than 7, if comprising, eliminate among the M time slot without be spaced other time slots,
The time slot binding mode directly bundled.
Another aspect of the present invention, there is provided the device of transmission channel in a kind of detection E1 link data frames, including:
Time slot data cache module, setting time section is cached respectively for each time slot in the data frame to E1 links
Time slot data;
Single time slot excludes module, for utilizing single time slot filtering policy set in advance, successively to each time slot
Time slot data are analyzed, and the time slot without composition transmission channel is excluded according to analysis result;
Multi-slot binding excludes module, for all time slots for not having to exclude for the single time slot filtering policy, profit
With multi-slot set in advance bundle inspection policies, the splicing data of the time slot data of multiple time slots are analyzed, according to point
Result is analysed to exclude to bundle mode without multiple time slots of composition transmission channel.
Preferably, described single time slot excludes module, and the data value for the time slot data when some time slot is described
Keep constant in setting time section, and the data value is not equal to the designated identification in the data frame of the E1 links of HDLC class agreements
Value, then judge that some described time slot does not form transmission channel with other time slots;
And/or
In the setting time section, when containing the company no less than 7 in the data value of the time slot data of some time slot
Continuous 1 situation, then judge that some described time slot does not form transmission channel with other time slots.
Preferably, described multi-slot binding excludes module, specifically for the single time slot filtering policy is not arranged
The each time slot removed, arranged according to the time-gap number sortord from small to large of each time slot, composition slot arrangements team
Row;Each time slot in the slot arrangements queue puts in order, and determines the priority of each time slot matching, is arranged in
Foremost slot priorities highest, the slot priorities of arrangement more rearward are lower, are arranged in the slot priorities of most rank rear most
It is low;
Each time slot is extracted successively from the slot arrangements queue, for each time slot extracted, according to setting
Multi-slot binding inspection policies, with reference to each time slot priority to each time slot carry out time slot bundle detection two-by-two, exclusion
Time slot binding mode between some two time slots;
After the detection of binding two-by-two between all time slots in completing the slot arrangements queue, according still further to described more
Time slot bundlees inspection policies, with reference to each time slot priority carry out it is more between all time slots in the slot arrangements queue
Individual time slot binding detection, exclude some multiple time slots binding modes for not forming transmission channel.
Preferably, described multi-slot binding excludes module, specifically for by some time slot to be detected and others one
The time slot data of individual the two time slots of time slot are stitched together, and obtain splicing time slot data, and during splicing, priority is high
The time slot data of time slot be arranged in front, after the time slot data of the low time slot of priority are arranged in;
Detect it is described splicing time slot data data value in whether contain no less than 7 continuous 1, if comprising,
Exclude to bundle mode without the time slot for being spaced other time slots, directly bundling among described two time slots;
Detection process is bundled two-by-two according to the time slot between above-mentioned two time slot, completes the institute in the slot arrangements queue
There is the detection of binding two-by-two between two time slots.
Preferably, described multi-slot binding excludes module, specifically in the slot arrangements queue is completed
After the detection of binding two-by-two between all time slots, inspection policies are bundled according still further to the multi-slot, carry out the slot arrangements team
M 3 time slots binding detection, 4 time slots binding detection ... time slots binding detection ... between all time slots in row up to
N number of time slot binding detection, the N are the total number of timeslots in the slot arrangements queue;
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing timeslot number
According to during splicing, the time slot data of the high time slot of priority are arranged in front, the time slot data row of the low time slot of priority
After being listed in;
Detect it is described splicing time slot data data value in whether contain no less than 7 continuous 1, if comprising,
Eliminate and bundle mode without the time slot for being spaced other time slots, directly bundling among the M time slot.
The embodiment of the present invention passes through based on HDLC classes it can be seen from the technical scheme provided by embodiments of the invention described above
The link characteristics of agreement formulate single time slot filtering policy, multi-slot binding inspection policies, can exclude some in advance and not join
With the single time slot of transmission channel, two time slots binding mode, the binding of multiple time slots that some do not form transmission channel are excluded
Mode, it is not necessary to matched one by one between time slot, avoid the consumption of time and resource caused by matching one by one between time slot, reduce E1
Time slot matching times in the data frame of link, system resource is saved, lift the transmission channel detection in the data frame of E1 links
Efficiency.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, without having to pay creative labor, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the processing stream of the method for transmission channel in a kind of detection E1 link data frames that the embodiment of the present invention one provides
Cheng Tu;
Fig. 2 is the specific knot of the device of transmission channel in a kind of detection E1 link data frames that the embodiment of the present invention three provides
Composition, in figure, time slot data cache module 21, single time slot excludes module 22, and multi-slot binding excludes module 23.
Embodiment
For ease of the understanding to the embodiment of the present invention, done further by taking several specific embodiments as an example below in conjunction with accompanying drawing
Explanation, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
When using channelized e1, i.e., in the case of the framing of E1 links, by the 2M of the data frame of E1 link transmission point
Into 32 64K time slot, and one transmission channel of composition can be bundled using one or more of time slots
(Nx64K bindings), transmission link data, therefore 1 E1 circuit can also form multiple transmission channels.The time slot of E1 links is typically simple
Claim TS (Time Slot), such as TS0~TS31.
The embodiment proposes a kind of for widely used HDLC (High-Speed Data Link Control, high speed
Data link controls) the quick time slot selective mechanisms methods of the E1 links of class link protocol, the method is according to exclusive timeslot number
The optimization of E1 time slot detections is carried out according to analysis strategy, tactful Treatment Analysis in advance is carried out to time slot and goes out which time slot is most likely to be
The channel slot of binding, some single time slots for being not engaged in transmission channel are excluded, some is excluded and does not form transmission channel
Two time slot binding modes, multiple time slots binding mode, it is not necessary to matched one by one between time slot, reduce matching times lifting matching
Efficiency.
The processing stream of the method detected this embodiment offers the transmission channel in a kind of data frame to E1 links
Journey is as shown in figure 1, including following processing step:
Step S110, the various frame data transmitted in E1 links are received and are cached, pre-process every number of E1 links
According to the frame data of frame, determined to be used for the time slot for transmitting data in data frame according to the frame structure form of data frame.For E1 links
A data frame in each time slot cache the time slot data of a setting time section respectively, in case carrying out follow-up analysis.On
Stating the duration of setting time section can set according to the needs of detection, such as, this when a length of deposit 250 milliseconds~8 seconds.
Step S120, using single time slot filtering policy set in advance, specified according to the time-gap number of each time slot
Sortord, the time slot data of each time slot are analyzed successively, obtain the transmission channel testing result of each time slot.
Single time slot filtering policy, link of the multi-slot binding inspection policies based on HDLC class agreements in the embodiment is special
Levy and formulate.Above-mentioned HDLC classes agreement include HDLC, PPP (Point-to-Point Protocol, peer-peer protocol),
The agreement such as MLPPP, FR (Frame Relay, frame relay), MFR.
Above-mentioned single time slot filtering policy includes:
1:When the data value of the time slot data of some time slot keeps constant in the setting time section, and the data value
Not equal to the designated identification value in the data frame of the E1 links of HDLC protocol, then judge some described time slot not with other time slots
Form transmission channel.Above-mentioned designated identification value include but is not limited to 0x7E, 0xFC, 0xF9,0xF3,0xE7,0xCF, 0x9F or
0x3F.The partial time slot need to further confirm that, temporarily be not involved in time slot combinatory analysis.
2nd, at most only has the situation of continuous 61 according to HDLC links, therefore, in the setting time section, by caching
The time slot data of some above-mentioned time slot are divided into multiple 8bit data segment, are contained in the data value of any one data segment
Continuous 1 situation no less than 7, then judge that some described time slot does not form transmission channel with other time slots.Such as data
It is worth for 11111111b (0xFF) (b is expressed as binary numeral), 11111110b (0xFE) or 01111111b (0x7F), then sentences
Some fixed described time slot does not form transmission channel with other time slots.
Therefore, by the screening of above-mentioned single time slot filtering policy, some can be excluded and do not form biography with other time slots
The time slot of defeated passage, that is, exclude the time slot of some binding combinations for being not engaged in Nx64K time slots.
Step S130, above-mentioned single time slot filtering policy be there is no to each time slot excluded, according to the time slot of each time slot
The sortord of numbering from small to large is arranged, and forms slot arrangements queue.In above-mentioned slot arrangements queue, time-gap number
Minimum slot arrangements are in most forefront, and after more, the maximum slot arrangements of time-gap number exist the bigger slot arrangements of time-gap number
Most rank rear.
In embodiments of the present invention, each time slot in above-mentioned slot arrangements queue puts in order, and determines each
The priority of time slot matching, foremost slot priorities highest is arranged in, the slot priorities of arrangement more rearward are lower, arrangement
It is minimum in the slot priorities of most rank rear.
Step S240, in above-mentioned slot arrangements queue, according to arranging vertical order, when extracting each successively
Gap, i.e., extract at first and be arranged in the minimum time slot of foremost numbering, extract be arranged in deputy time slot for the second time.
For each time slot extracted, inspection policies are bundled according to the multi-slot of setting, with reference to the preferential of each time slot
Level detect the time slot whether with other time slots form transmission channel.Above-mentioned multi-slot binding inspection policies include:
1st, for some to be detected time slot (for example numbering the time slot of minimum), detect first some time slot whether with when
One time slot of others composition transmission channel in gap arrangement queue, that is, detect some time slot whether with one time slot of others
Bundle two-by-two.
Above-mentioned time slot bundlees detection process two-by-two to be included:By some time slot to be detected and an other time slot totally two
The time slot data of time slot are stitched together, and obtain splicing time slot data.During above-mentioned splicing, the high time slot of priority
Time slot data are arranged in front, after the time slot data of the low time slot of priority are arranged in.Then, above-mentioned splicing time slot data are divided
For multiple 8bit data segment, continuous 1 whether contained in the data value of any one data segment no less than 7 is detected, such as
Fruit includes, then judges that described some time slot to be detected and other time slots do not form transmission channel, eliminate this two
Without the situation for being spaced other time slots, directly bundling composition transmission channel among individual time slot.Meanwhile eliminate and contain
The other various time slot binding modes of the two time slot direct splicings together.
For example above-mentioned some time slot to be detected is TS2, another time slot is TS5, and time slot TS2 time slot data are arranged
Before being listed in, after time slot TS5 time slot data are arranged in, the time slot data of two time slots are stitched together, obtain splicing time slot
Data.Detect in the numerical value of above-mentioned splicing time slot data and contain 1111111...b, then eliminate TS2, TS5 the two when
Without the situation for being spaced other time slots, directly bundling composition transmission channel among gap.Meanwhile eliminate similar
TSxx...TS2TS5...TSxx, TSxx...TS2TS5, TS2TS5...TSxx binding mode.
Time slot according to above-mentioned two time slot bundlees detection process two-by-two, successively to each two in above-mentioned slot arrangements queue
Time slot carries out time slot and bundlees detection two-by-two, completes the detection of binding two-by-two between all two time slots in slot arrangements queue.
By the binding detection process two-by-two between above-mentioned all two time slots, one in slot arrangements queue can be excluded
Without the other time slots in interval, the situation of direct splicing together among a little two time slots, and can exclude to include two time slots
Centre is without the other time slots in interval, the other time slot connecting methods of direct splicing together.
2nd, after the detection of binding two-by-two between all two time slots in completing above-mentioned slot arrangements queue, according still further to
Above-mentioned multi-slot bundlees inspection policies, carries out multiple time slots binding inspection between all time slots in above-mentioned slot arrangements queue
Survey, that is, carry out M 3 time slot binding detections, 4 time slot binding detections ... time slot binding detection ... until N number of time slot bundlees
Detection, above-mentioned N are the total number of timeslots in above-mentioned slot arrangements queue.
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing timeslot number
According to.During above-mentioned splicing, the time slot data of the high time slot of priority are arranged in front, the timeslot number of the low time slot of priority
After being arranged in.
Then, above-mentioned splicing time slot data are divided into multiple 8bit data segment, detect the number of any one data segment
According to whether contained in value no less than 7 continuous 1, if comprising eliminating other without being spaced among the M time slot
Time slot, the situation for directly bundling composition transmission channel, meanwhile, eliminate and contain M time slot direct splicing together
Other various time slots binding modes.
Detection is bundled by multiple time slots between all time slots in above-mentioned slot arrangements queue, can further be excluded
Without the other time slots in interval, the time slot splicing side of direct splicing together among some multiple time slots in slot arrangements queue
Formula.
Step S250, inspection policies are bundled for above-mentioned single time slot filtering policy and multi-slot to spell without the time slot excluded
Connect mode, according to existing inspection link data whether byte-aligned, calculate whether FCS verifications correctly wait HDLC link protocols to divide
Analysis method, the actual time slot binding mode in E1 links is detected, that is, detects the transmission channel in the data frame of E1 links.
(Sub Time Slot, i.e. Nx8K bindings, 1 byte are divided into the sub-slots included for each time slot of E1 circuits
8 passages of individual bit) analysis can also carry out in this way.
Can for undetermined time slot, undetermined time slot binding combination or time slot binding combination in the case of of changing
Sampled within certain cycle and cache E1 circuit datas, repeat detection and analysis according to the method described above, in real time with being connected
Connect E1 test circuits and keep synchronous.
Embodiment two
A kind of method detected this embodiment offers Frame Protocol of the data frame to E1 links is included as follows
Processing procedure:
Judgement for link-layer frame agreement, because the frame head form of different link layer protocols is all fixed and mutually not
With, the length of different its frame head of link layer protocol and the value of each field of frame head even each bit position are had any different.
The embodiment is analyzed frame head data according to the difference of frame structure the data frame of the E1 links of reception, you can to detect
Which kind of link protocol transmission data E1 circuit paths are with.Link Protocol Type includes HDLC classes, ATM (Asynchronous
Transfer Mode, asynchronous transfer mode) and ETHERNET (Ethernet) type etc..
The embodiment of the present invention is detected using the pattern that attribute field matches to the Frame Protocol of the data frame of E1 links, example
Such as, ppp protocol uses beginning and end marks of the 0x7E as a frame, wherein address field and control domain take fixed value (0xFF,
0x03) and which kind of message what its protocol domain also show that it is carried is.Such as 0x0021 is IP messages, 0x003d is
The message of MLPPP agreements.
In another example the byte of frame head the 13rd, 14 of MAC data frame represents the agreement of last layer, as 0x0800 represents last layer
It is IP agreement, 0x0806 is ARP protocol.When network layer protocol is IP agreement, the present invention can analyze the agreement of transport layer.
The protocol type field contrast protocol number in decoded ip packet header can obtain protocol type.Such as the protocol number of Transmission Control Protocol is 0x06,
The protocol number of udp protocol is 0x11.
Embodiment three
This embodiment offers a kind of device of transmission channel in detection E1 link data frames, its concrete structure such as Fig. 2 institutes
Show, including following module:
Time slot data cache module 21, setting time section is cached respectively for each time slot in the data frame to E1 links
Time slot data;
Single time slot excludes module 22, for utilizing single time slot filtering policy set in advance, successively to each time slot
Time slot data analyzed, according to analysis result exclude without form transmission channel time slot;
Multi-slot binding excludes module 23, for there is no all time slots of exclusion for the single time slot filtering policy,
Inspection policies are bundled using multi-slot set in advance, the splicing data of the time slot data of multiple time slots are analyzed, according to
Analysis result excludes multiple time slots binding mode without composition transmission channel.
Further, described single time slot excludes module 22, and the data value for the time slot data when some time slot exists
Keep constant in the setting time section, and the data value is not equal to the specified mark in the data frame of the E1 links of HDLC protocol
Knowledge value, then judge that some described time slot does not form transmission channel with other time slots;
And/or
In the setting time section, the time slot data of some time slot described in caching are divided into multiple 8bit data
Section, when containing continuous 1 situation no less than 7 in the data value of any one data segment, then judge some described time slot
Transmission channel is not formed with other time slots.
Further, described multi-slot binding excludes module 23, specifically for the single time slot filtering policy is not had
There is each time slot of exclusion, arranged according to the time-gap number sortord from small to large of each time slot, composition time slot row
Rank queue;Each time slot in the slot arrangements queue puts in order, and determines the priority of each time slot matching, row
Foremost slot priorities highest is listed in, the slot priorities of arrangement more rearward are lower, are arranged in the time slots priority of most rank rear
Level is minimum;
Each time slot is extracted successively from the slot arrangements queue, for each time slot extracted, according to setting
Multi-slot binding inspection policies, with reference to each time slot priority to each two time slot carry out time slot bundle detection two-by-two, row
Except the time slot between some two time slots bundlees mode;
After the detection of binding two-by-two between all two time slots in completing the slot arrangements queue, according still further to institute
Multi-slot binding inspection policies are stated, are carried out with reference to the priority of each time slot between all time slots in the slot arrangements queue
The binding detection of multiple time slots, exclude multiple time slots binding modes that some do not form transmission channel.
Further, described multi-slot binding excludes module 23, specifically for by some time slot to be detected and other
The time slot data of time slot the two time slots be stitched together, obtain splicing time slot data, during splicing, preferentially
The time slot data of the high time slot of level are arranged in front, after the time slot data of the low time slot of priority are arranged in;
By the data segment for splicing time slot data and being divided into multiple 8bit, in the data value for detecting any one data segment
Whether continuous 1 no less than 7 is contained, if comprising excluding among described two time slots without being spaced other time slots, straight
Connect the time slot binding mode bundled;
Detection process is bundled two-by-two according to the time slot between above-mentioned two time slot, completes the institute in the slot arrangements queue
There is the detection of binding two-by-two between two time slots.
Further, described multi-slot binding excludes module 23, specifically for completing the slot arrangements queue
In all time slots between binding two-by-two detection after, according still further to the multi-slot bundle inspection policies, carry out the time slot row
M 3 time slots binding detection, 4 time slot binding detections ... time slot binding detection ... one between all time slots in rank queue
Detected until N number of time slot bundlees, the N is the total number of timeslots in the slot arrangements queue;
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing timeslot number
According to during splicing, the time slot data of the high time slot of priority are arranged in front, the time slot data row of the low time slot of priority
After being listed in;
By the data segment for splicing time slot data and being divided into multiple 8bit, in the data value for detecting any one data segment
Whether contain continuous 1 no less than 7, if comprising, eliminate among the M time slot without be spaced other time slots,
The time slot binding mode directly bundled.
Detect the detailed process of transmission channel and foregoing side in E1 link data frames with the device of the embodiment of the present invention
Method embodiment is similar, and here is omitted.
In summary, the embodiment of the present invention formulates single time slot by the link characteristics based on HDLC class agreements and filters plan
Slightly, multi-slot binding inspection policies, can exclude some single time slots for being not engaged in transmission channel in advance, excluding some does not have
Form two time slots binding mode, the multiple time slots binding mode of transmission channel, it is not necessary to match one by one between time slot, when avoiding
The consumption of time and resource caused by matching one by one, reduces the time slot matching times in the data frame of E1 links, saves between gap
System resource, lift the transmission channel detection efficiency in the data frame of E1 links.
The embodiment of the present invention is also achieved according to the frame head data of the data frame of E1 links to detect E1 links automatically
Link-layer frame agreement, it is not necessary to the link-layer frame agreement of attendant's manual configuration E1 links, further mitigate E1 links
Maintenance difficulties.
One of ordinary skill in the art will appreciate that:Accompanying drawing is the schematic diagram of one embodiment, module in accompanying drawing or
Flow is not necessarily implemented necessary to the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment
(can be personal computer, server, either network equipment etc.) performs some of each embodiment of the present invention or embodiment
Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or
For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto,
Any one skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in,
It should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims
It is defined.
Claims (11)
1. a kind of method of transmission channel in detection E1 link data frames, it is characterised in that including:
Cache the time slot data of setting time section respectively to each time slot in the data frame of E1 links;
Using single time slot filtering policy set in advance, successively to the time slot of the setting time section of the caching of each time slot
Data are analyzed, and the time slot without composition transmission channel is excluded according to analysis result;
All time slots for not having to exclude for the single time slot filtering policy, detection plan is bundled using multi-slot set in advance
Slightly, the splicing data of the time slot data of multiple time slots are analyzed, excluded according to analysis result without composition transmission channel
Multiple time slots bundle mode.
2. the method for transmission channel in detection E1 link data frames according to claim 1, it is characterised in that described single
Time slot filtering policy, multi-slot binding inspection policies control the link characteristics of HDLC class agreements based on high speed data link and made
It is fixed.
3. the method for transmission channel in detection E1 link data frames according to claim 2, it is characterised in that described profit
With single time slot filtering policy set in advance, the time slot data of each time slot are analyzed successively, arranged according to analysis result
Except the time slot of no composition transmission channel, including:
When the data value of the time slot data of some time slot keeps constant in the setting time section, and the data value is not equal to
Designated identification value in the data frame of the E1 links of HDLC class agreements, then judge that some described time slot does not form with other time slots
Transmission channel;
And/or
In the setting time section, the time slot data of some time slot described in caching are divided into multiple 8bit data segment,
When containing continuous 1 situation no less than 7 in the data value of any one data segment, then judge that some described time slot does not have
Transmission channel is formed with other time slots.
4. the method for transmission channel in detection E1 link data frames according to claim 2, it is characterised in that described pin
All time slots for not having to exclude to the single time slot filtering policy, inspection policies are bundled using multi-slot set in advance, it is right
The splicing data of the time slot data of multiple time slots are analyzed, according to analysis result exclude without composition transmission channel it is multiple when
Gap bundlees mode, including:
Each time slot that the single time slot filtering policy is not had to exclude, according to each time slot time-gap number from small to large
Sortord is arranged, and forms slot arrangements queue;Each time slot in the slot arrangements queue puts in order,
The priority of each time slot matching is determined, is arranged in foremost slot priorities highest, the slot priorities of arrangement more rearward
Lower, the slot priorities for being arranged in most rank rear are minimum;
Each time slot is extracted successively from the slot arrangements queue, for each time slot extracted, according to the more of setting
Time slot bundlees inspection policies, bundlees detection two-by-two to each time slot progress time slot with reference to the priority of each time slot, excludes
Time slot binding mode between two time slots;
After the detection of binding two-by-two between all two time slots in completing the slot arrangements queue, according still further to described more
Time slot bundlees inspection policies, with reference to each time slot priority carry out it is more between all time slots in the slot arrangements queue
Individual time slot binding detection, exclude some multiple time slots binding modes for not forming transmission channel.
5. the method for transmission channel in detection E1 link data frames according to claim 4, it is characterised in that described pin
To each time slot extracted, inspection policies are bundled according to the multi-slot of setting, with reference to each time slot priority to it is each when
Gap carries out time slot and bundlees detection two-by-two, excludes the time slot binding mode between some two time slots, including:
By some time slot to be detected and an other time slot, totally two time slot data are stitched together, and obtain splicing timeslot number
According to during splicing, the time slot data of the high time slot of priority are arranged in front, the time slot data row of the low time slot of priority
After being listed in;
Above-mentioned splicing time slot data are divided into multiple 8bit data segment, detect in the data value of any one data segment whether
Continuous 1 no less than 7 is contained, if comprising excluding among described two time slots without being spaced other time slots, directly bundle
The time slot binding mode being held together;
Detection process is bundled two-by-two according to the time slot between above-mentioned two time slot, completes all two in the slot arrangements queue
The detection of binding two-by-two between individual time slot.
6. the method for transmission channel in detection E1 link data frames according to claim 5, it is characterised in that completing
After the detection of binding two-by-two between all two time slots in the slot arrangements queue, bundle and detect according still further to the multi-slot
Strategy, carry out multiple time slots between all time slots in the slot arrangements queue with reference to the priority of each time slot and bundle inspection
Survey, exclude some multiple time slots binding modes for not forming transmission channel, including:
After the detection of binding two-by-two between all two time slots in completing the slot arrangements queue, according still further to described more
Time slot bundle inspection policies, carry out between all time slots in the slot arrangements queue 3 time slots binding detection, 4 when
M time slot binding detection ... of gap binding detection ... is until the binding detection of N number of time slot, the N are in the slot arrangements queue
Total number of timeslots;
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing time slot data,
During splicing, the time slot data of the high time slot of priority are arranged in front, and the time slot data of the low time slot of priority are arranged in
Afterwards;
The splicing time slot data are divided into multiple 8bit data segment, detect in the data value of any one data segment whether
Continuous 1 no less than 7 is contained, if comprising eliminating among the M time slot without being spaced other time slots, direct
The time slot binding mode bundled.
A kind of 7. device of transmission channel in detection E1 link data frames, it is characterised in that including:
Time slot data cache module, cache the time slot of setting time section respectively for each time slot in the data frame to E1 links
Data;
Single time slot excludes module, for utilizing single time slot filtering policy set in advance, successively to described in each time slot
The time slot data of the setting time section of caching are analyzed, and the time slot without composition transmission channel is excluded according to analysis result;
Multi-slot binding excludes module, for all time slots for not having to exclude for the single time slot filtering policy, using pre-
The splicing data of the time slot data of multiple time slots are analyzed, tied according to analysis by the multi-slot binding inspection policies first set
Fruit excludes multiple time slots binding mode without composition transmission channel.
8. the device of transmission channel in detection E1 link data frames according to claim 7, it is characterised in that:
Described single time slot excludes module, and the data value for the time slot data when some time slot is in the setting time section
Keep constant, and the data value then judges institute not equal to the designated identification value in the data frame of the E1 links of HDLC class agreements
State some time slot and do not form transmission channel with other time slots;
And/or
In the setting time section, the time slot data of some time slot described in caching are divided into multiple 8bit data segment,
When containing continuous 1 situation no less than 7 in the data value of any one data segment, then judge that some described time slot does not have
Transmission channel is formed with other time slots.
9. the device of transmission channel in detection E1 link data frames according to claim 8, it is characterised in that:
Described multi-slot binding excludes module, specifically for by the single time slot filtering policy do not have to exclude it is each when
Gap, arranged according to the time-gap number sortord from small to large of each time slot, form slot arrangements queue;According to described
Each time slot in slot arrangements queue puts in order, and the priority of each time slot matching is determined, when being arranged in foremost
Gap highest priority, the slot priorities of arrangement more rearward are lower, and the slot priorities for being arranged in most rank rear are minimum;
Each time slot is extracted successively from the slot arrangements queue, for each time slot extracted, according to the more of setting
Time slot bundlees inspection policies, bundlees detection two-by-two to each time slot progress time slot with reference to the priority of each time slot, excludes
Time slot binding mode between two time slots;
After the detection of binding two-by-two between all time slots in completing the slot arrangements queue, according still further to the multi-slot
Inspection policies are bundled, when carrying out multiple between all time slots in the slot arrangements queue with reference to the priority of each time slot
Gap binding detection, exclude some multiple time slots binding modes for not forming transmission channel.
10. the device of transmission channel in detection E1 link data frames according to claim 9, it is characterised in that:
Described multi-slot binding excludes module, specifically for by some time slot to be detected and other time slots the two
The time slot data of time slot are stitched together, and obtain splicing time slot data, during splicing, the time slot of the high time slot of priority
Data arrangement is preceding, after the time slot data of the low time slot of priority are arranged in;
The splicing time slot data are divided into multiple 8bit data segment, detect in the data value of any one data segment whether
Continuous 1 no less than 7 is contained, if comprising excluding among described two time slots without being spaced other time slots, directly bundle
The time slot binding mode being held together;
Detection process is bundled two-by-two according to the time slot between above-mentioned two time slot, completes all two in the slot arrangements queue
The detection of binding two-by-two between individual time slot.
11. the device of transmission channel in detection E1 link data frames according to claim 10, it is characterised in that:
Described multi-slot binding excludes module, specifically between all time slots in the slot arrangements queue is completed
Binding two-by-two detection after, according still further to the multi-slot bundle inspection policies, carry out in the slot arrangements queue institute sometimes
M 3 time slots binding detection, 4 time slot binding detections ... time slot binding detection ... between gap are until N number of time slot bundlees
Detection, the N are the total number of timeslots in the slot arrangements queue;
When carrying out M time slot binding detection, the time slot data of M time slot are stitched together, obtain splicing time slot data,
During splicing, the time slot data of the high time slot of priority are arranged in front, and the time slot data of the low time slot of priority are arranged in
Afterwards;
The splicing time slot data are divided into multiple 8bit data segment, detect in the data value of any one data segment whether
Continuous 1 no less than 7 is contained, if comprising eliminating among the M time slot without being spaced other time slots, direct
The time slot binding mode bundled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004058.8A CN104579835B (en) | 2015-01-05 | 2015-01-05 | The method and apparatus of transmission channel in a kind of detection E1 link data frames |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510004058.8A CN104579835B (en) | 2015-01-05 | 2015-01-05 | The method and apparatus of transmission channel in a kind of detection E1 link data frames |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104579835A CN104579835A (en) | 2015-04-29 |
CN104579835B true CN104579835B (en) | 2018-02-16 |
Family
ID=53095099
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510004058.8A Active CN104579835B (en) | 2015-01-05 | 2015-01-05 | The method and apparatus of transmission channel in a kind of detection E1 link data frames |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104579835B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412895A (en) * | 2018-11-14 | 2019-03-01 | 电信科学技术第五研究所有限公司 | A kind of method and apparatus detecting E1/T1 chain time gap binding mode |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375076A (en) * | 2016-08-31 | 2017-02-01 | 北京钧威科技有限公司 | Method and system based on train data in frame structure transmission area |
US10680737B1 (en) * | 2019-04-09 | 2020-06-09 | Ciena Corporation | Bundling capacity changes in channel holder based optical links |
JP7337627B2 (en) * | 2019-09-24 | 2023-09-04 | 株式会社日立製作所 | Communication controller and system |
CN111555844B (en) * | 2020-05-14 | 2023-07-28 | 北京中科网维科技有限公司 | Method and device for automatically identifying VC3/VC4 virtual concatenation GFP protocol |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008117722A1 (en) * | 2007-03-23 | 2008-10-02 | Panasonic Electric Works Co., Ltd. | Communication system and communication method |
CN101425876A (en) * | 2008-12-16 | 2009-05-06 | 北京中创信测科技股份有限公司 | Communication protocol deciphering method and device |
CN101541028A (en) * | 2009-04-22 | 2009-09-23 | 华为技术有限公司 | Testing method and device for high-speed information channel |
CN101741649A (en) * | 2009-12-31 | 2010-06-16 | 中兴通讯股份有限公司 | Signaling monitoring collecting device and data processing device and method thereof |
CN103503341A (en) * | 2011-11-15 | 2014-01-08 | 华为技术有限公司 | Method and device for determining time slot configuration in Time Division Modulation (TDM) transmission |
-
2015
- 2015-01-05 CN CN201510004058.8A patent/CN104579835B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008117722A1 (en) * | 2007-03-23 | 2008-10-02 | Panasonic Electric Works Co., Ltd. | Communication system and communication method |
CN101425876A (en) * | 2008-12-16 | 2009-05-06 | 北京中创信测科技股份有限公司 | Communication protocol deciphering method and device |
CN101541028A (en) * | 2009-04-22 | 2009-09-23 | 华为技术有限公司 | Testing method and device for high-speed information channel |
CN101741649A (en) * | 2009-12-31 | 2010-06-16 | 中兴通讯股份有限公司 | Signaling monitoring collecting device and data processing device and method thereof |
CN103503341A (en) * | 2011-11-15 | 2014-01-08 | 华为技术有限公司 | Method and device for determining time slot configuration in Time Division Modulation (TDM) transmission |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412895A (en) * | 2018-11-14 | 2019-03-01 | 电信科学技术第五研究所有限公司 | A kind of method and apparatus detecting E1/T1 chain time gap binding mode |
CN109412895B (en) * | 2018-11-14 | 2020-09-18 | 电信科学技术第五研究所有限公司 | Method and equipment for detecting E1/T1 link time slot binding mode |
Also Published As
Publication number | Publication date |
---|---|
CN104579835A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104579835B (en) | The method and apparatus of transmission channel in a kind of detection E1 link data frames | |
CN1976537B (en) | Transmission apparatus | |
CN100382517C (en) | Network QoS test method and system | |
CN104471883B (en) | The method and apparatus that clock synchronization information is distributed in optical communication network | |
CN104580031B (en) | POS based on multi-protocols link encapsulation technology separates frame framing device and method | |
CN105939499B (en) | A kind of method and system of mobile POTN transmission network tunnel rapid configuration | |
CN104066017B (en) | The method and system that unit, node device, tunnel bandwidth adjust | |
CN100558037C (en) | A kind of method for transmission processing of Frame | |
WO2003009540A1 (en) | Common channel flow control method and system | |
EP2197179A3 (en) | System and method for fast detection of communication path failures | |
EP2530888A1 (en) | Method, apparatus and system for data transmission | |
JP5597765B2 (en) | Method, apparatus and system for transmitting SDH / SONET section overhead bytes | |
CA2472056A1 (en) | Methods and apparatus for encapsulating a frame for transmission in a storage area network | |
CN108259362A (en) | flow control method, device, CU and DU | |
US7308006B1 (en) | Propagation and detection of faults in a multiplexed communication system | |
US10764189B1 (en) | OTN transport over a leaf/spine packet network | |
EP2963858B1 (en) | Lane synchronization | |
CN106464765B (en) | The method and apparatus of flowing control on cable network | |
CN106973391A (en) | The cut-in method and access device of a kind of shared channel | |
US6708001B1 (en) | Method and apparatus for transmitting an internet protocol (IP) packet within a fiber optic network | |
CN104579821B (en) | The method and apparatus for detecting the frame structure form of the data frame of E1 links | |
CN100403705C (en) | Loopback detecting method for PPP package interface | |
CN109412895B (en) | Method and equipment for detecting E1/T1 link time slot binding mode | |
CN108574530B (en) | Data transmitting and receiving method and device and multichannel EPON system | |
CN104539409B (en) | Method and system for adapting multi-path Ethernet to multi-path E1 channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |