WO2017118042A1 - Method and apparatus for determining channel state - Google Patents
Method and apparatus for determining channel state Download PDFInfo
- Publication number
- WO2017118042A1 WO2017118042A1 PCT/CN2016/096235 CN2016096235W WO2017118042A1 WO 2017118042 A1 WO2017118042 A1 WO 2017118042A1 CN 2016096235 W CN2016096235 W CN 2016096235W WO 2017118042 A1 WO2017118042 A1 WO 2017118042A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- frame
- determining
- location
- payload area
- payload
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000005540 biological transmission Effects 0.000 claims abstract description 109
- 238000013507 mapping Methods 0.000 claims description 55
- 230000001360 synchronised effect Effects 0.000 claims description 19
- 230000003287 optical effect Effects 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 26
- 238000005516 engineering process Methods 0.000 description 12
- 238000007726 management method Methods 0.000 description 12
- 239000002245 particle Substances 0.000 description 12
- 238000013500 data storage Methods 0.000 description 9
- 238000009432 framing Methods 0.000 description 8
- 101100518559 Homo sapiens OTUB1 gene Proteins 0.000 description 6
- 101150115940 OTU1 gene Proteins 0.000 description 6
- 102100040461 Ubiquitin thioesterase OTUB1 Human genes 0.000 description 6
- 230000008901 benefit Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 239000002699 waste material Substances 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 101100325756 Arabidopsis thaliana BAM5 gene Proteins 0.000 description 2
- 101150046378 RAM1 gene Proteins 0.000 description 2
- 101100476489 Rattus norvegicus Slc20a2 gene Proteins 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 102100031584 Cell division cycle-associated 7-like protein Human genes 0.000 description 1
- 101000777638 Homo sapiens Cell division cycle-associated 7-like protein Proteins 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- 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/0602—Systems characterised by the synchronising information used
- H04J3/0614—Systems characterised by the synchronising information used the synchronising signal being characterised by the amplitude, duration or polarity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/062—Synchronisation of signals having the same nominal but fluctuating bit rates, e.g. using buffers
- H04J3/0623—Synchronous multiplexing systems, e.g. synchronous digital hierarchy/synchronous optical network (SDH/SONET), synchronisation with a pointer process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/12—Arrangements providing for calling or supervisory signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J2203/00—Aspects of optical multiplex systems other than those covered by H04J14/05 and H04J14/07
- H04J2203/0001—Provisions for broadband connections in integrated services digital network using frames of the Optical Transport Network [OTN] or using synchronous transfer mode [STM], e.g. SONET, SDH
- H04J2203/0003—Switching fabrics, e.g. transport network, control network
Definitions
- T1 DS1
- Pulse code modulation or E1 (30-channel pulse code modulation) carrier system (1.544 or 2.048 Mbps), X.25 frame relay, Integrated Services Digital Network (ISDN) and fiber-optic distributed data interface ( Fiber Distributing Data Interface (FDDI) and other network technologies.
- ISDN Integrated Services Digital Network
- FDDI Fiber Distributing Data Interface
- the most basic module is STM-1, and four STM- 1 Synchronous multiplexing constitutes STM-4, 16 STM-1 or four STM-4 synchronous multiplexing constitutes STM-16, four STM-16 synchronous multiplexing constitutes STM-64, and even four STM-64 synchronous complex Used to form STM-256.
- SDH uses a block-like frame structure to carry information. Each frame consists of 9 lines in the vertical direction and 270 ⁇ N columns in the horizontal direction. Each byte contains 8 bits.
- the entire frame structure is divided into segment overheads (Section OverHead, referred to as SOH) area, STM-N payload area and management unit pointer (AU PTR) area, the section overhead area is mainly used for network operation, management, maintenance and assignment to ensure that information can be transmitted normally and flexibly. It is further divided into Regenerator Section OverHead (RSOH) and Multiplex Section OverHead (MSOH); the payload area is used to store bits for information services and a small amount for channel maintenance. The managed channel overhead byte; the management unit pointer is used to indicate the exact location of the first byte of information in the payload area within the STM-N frame so that the payload can be correctly separated upon reception.
- SOH Segment OverHead
- STM-N payload area STM-N payload area
- management unit pointer AU PTR
- the section overhead area is mainly used for network operation, management, maintenance and assignment to ensure that information can be transmitted normally and flexibly. It is further divided into Regenerator Section
- OTN Optical Transport Network
- SDH SDH-based Virtual Private Network
- OTN has strong networking capabilities, good scalability, supports multiple upper-layer services or protocols, and completely transparent transmission of customer signals, and provides multi-level serial connection monitoring (Tandem Connection Monitor, referred to as For TCM) function and stronger forward error correction capability, OTN can also provide the same high bandwidth as Wavelength Division Multiplexing (WDM). Therefore, OTN will become the next generation transmission network, especially the main networking technology of the backbone layer.
- WDM Wavelength Division Multiplexing
- OTN Optical Channel Data Unit-k
- FEC Forward Error Correction
- network structures such as OTN and SDH use block frames as transmission carriers.
- This block frame has a fixed frame length, and ONT and SDH can monitor high-order channels and low-order channels through channel overhead bytes. .
- the overhead in the OTN or SDH frames is Normal, but the channel is not actually used and the payload is empty. It is often difficult for operators to grasp the use of the channel, especially the use of low-order channels, resulting in wasted channels.
- the embodiment of the invention provides a method and a device for determining a channel state, which can accurately know the usage of the channel and reduce the waste of the channel.
- An embodiment of the present invention provides a method for determining a channel state, including: saving payload data of a payload area of a first frame in a current transmission frame and a payload area of a payload area of a second frame in a previous transmission frame. Data comparison, wherein the last transmission frame is the transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame Corresponding to; in the case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining a channel for transmitting the first frame The status is un-beared business status.
- the method further includes: when the current transmission frame is a synchronous transmission module N-level STM-N frame, determining the first frame by: demultiplexing the STM-N frame into N STM-1 frames; determining one of the N STM-1 frames as the first frame.
- the method further includes determining a location of the payload area of the first frame by: determining a type of the first frame; determining, according to a type of the first frame, the first frame The location of the payload area.
- determining, according to the type of the first frame, a location of the payload area of the first frame includes at least one of the following: when the type of the first frame is a fourth-order management unit AU-4, Decoding the first frame to obtain a location of the management unit pointer AU-PTR in the first frame; determining a location of the AU-PTR as a location of a payload area of the first frame; when the first When the type of the frame is the third-order tributary unit TU-3, the first frame is parsed to obtain the third-order virtual in the first frame.
- a location of the container VC-3 determining a location of the VC-3 as a location of a payload area of the first frame; when the type of the first frame is a twelve-order tributary unit TU-12, The first frame is parsed to obtain the location of the twelve-order virtual container VC-12 in the first frame; and the location of the VC-12 is determined as the location of the payload area of the first frame.
- the method further includes: when the current transmission frame is an optical conversion unit OTU frame, determining a location of the payload area of the first frame by: positioning an overhead field according to a frame in a current transmission frame. The pointer in the determination determines the location of the payload area of the first frame.
- the method further includes: determining, when the current transmission frame is an OTU frame, a location of a payload area of the first frame by determining a mapping type of the first frame; The mapping type of the first frame determines the location of the payload area of the first frame.
- An embodiment of the present invention further provides a channel status determining apparatus, including:
- a comparison module configured to compare the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame is a transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame;
- a first determining module configured to determine, when the comparison result of the comparison module is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame
- the state of the channel transmitting the first frame is an un-beared service state.
- the device further includes
- the second determining module is configured to: when the current transmission frame is a synchronous transmission module N-level STM-N frame, determine the first frame by:
- a first demultiplexing unit configured to demultiplex the STM-N frame into N STM-1 frames
- a first determining unit configured to determine that one of the N STM-1 frames is a STM-1 frame Said the first frame.
- the device further includes
- the third determining module is configured to determine a location of the payload area of the first frame by:
- a second determining unit configured to determine a type of the first frame
- a third determining unit configured to determine a location of the payload area of the first frame according to the type of the first frame.
- the third determining unit includes at least one subunit:
- a first determining subunit configured to parse the first frame to obtain a management unit pointer AU-PTR in the first frame when the type of the first frame is a fourth-order management unit AU-4 a location; determining a location of the AU-PTR as a location of a payload area of the first frame;
- a second determining subunit configured to: when the type of the first frame is a third-order tributary unit TU-3, parse the first frame to obtain a third-order virtual container VC in the first frame Position of 3; determining a location of the VC-3 as a location of a payload area of the first frame;
- a third determining subunit configured to parse the first frame to obtain a twelve-order virtual container in the first frame when the type of the first frame is a twelve-order tributary unit TU-12 The location of the VC-12; determining the location of the VC-12 as the location of the payload area of the first frame.
- the apparatus further includes: a fourth determining module, configured to: when the current transmission frame is an OTU frame, determine a location of the payload area of the first frame by: a fourth determining unit, setting To determine the mapping type of the first frame, the fifth determining unit is configured to determine a location of the payload area of the first frame according to a mapping type of the first frame.
- a fourth determining module configured to: when the current transmission frame is an OTU frame, determine a location of the payload area of the first frame by: a fourth determining unit, setting To determine the mapping type of the first frame, the fifth determining unit is configured to determine a location of the payload area of the first frame according to a mapping type of the first frame.
- the fifth determining unit includes: a positioning subunit, configured to: when the mapping type of the first frame is a synchronization mapping, locate a location of a payload area of the first frame according to a byte count; And determining a subunit, configured to determine a location of the payload area of the first frame according to the positive adjustment byte and the negative adjustment byte when the mapping type of the first frame is an asynchronous mapping.
- the device further includes
- a fifth determining module configured to: when the current transmission frame is an OTU frame, determine a location of the payload area of the first frame according to a pointer in a frame positioning overhead field in the current transmission frame.
- Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
- the payload data of the payload area of the first frame in the current transmission frame is compared with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission is performed.
- the frame is a transmission frame that is closest to the current transmission frame, and the position of the first frame in the current transmission frame corresponds to the position of the second frame in the previous transmission frame; If the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining that the state of the channel used for transmitting the first frame is an un-beared service state
- the method of comparing whether the payload data of the first frame in the current transmission frame is the same as the frame payload data of the corresponding position in the previous transmission frame, determining the state of the channel transmitting the first frame, and accurately knowing the channel The use situation, thereby reducing the waste of the channel, thereby achieving the effect of improving the accuracy of the use of the learned channel.
- FIG. 1 is a flow chart of a method of determining a channel state according to an embodiment of the present invention
- FIG. 2 is a block diagram showing the structure of a channel state determining apparatus according to an embodiment of the present invention
- FIG. 3 is a block diagram 1 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention.
- FIG. 4 is a block diagram 2 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention.
- FIG. 5 is a block diagram 3 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention.
- FIG. 6 is a block diagram 4 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention.
- FIG. 7 is a block diagram 5 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention.
- FIG. 8 is a structural block diagram of an apparatus for detecting a channel usage according to Embodiment 1 of the present invention.
- FIG. 9 is a flow chart of a method of detecting a channel usage according to a first embodiment of the present invention.
- Figure 10 is a block diagram showing the structure of an apparatus for determining the use of an SDH channel according to Embodiment 2 of the present invention.
- FIG. 11 is a schematic diagram showing a frame structure of an STM-N frame according to an embodiment of the present invention.
- FIG. 12 is a structural diagram of SDH multiplexing frame mapping in an SDH channel according to an embodiment of the present invention.
- FIG. 13 is a structural block diagram of an apparatus for determining an operation of an OTN channel according to Embodiment 3 of the present invention.
- FIG. 14 is a schematic structural diagram of an OTN frame (G.709 frame) according to an embodiment of the present invention.
- FIG. 15 is a structural diagram of an OTN multiplexing map according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a method for determining a channel state according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
- Step S102 comparing the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame is the current distance Transmitting the most recent transmission frame of the frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame;
- Step S104 in a case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining that the state of the channel for transmitting the first frame is an unbeared service status.
- the foregoing method may further include: determining, by using the following manner, the first frame: demultiplexing the STM-N frame into N STM-1 frame; determining one STM-1 frame of the N STM-1 frames as the first frame.
- the STM-1 frame transmitted in the channel exists in the form of multiplexing into STM-N, whether the payload data of the STM-1 frame in the current transmission frame is the same as the previous transmission frame.
- the STM-N frame needs to be demultiplexed into N STM-1 frames.
- the foregoing method may further include: determining, by using the following manner, the first frame: demultiplexing the OTUk frame into k OTU1 frames; determining that one of the k OTU1 frames is the first frame.
- the OTU1 frame transmitted in the channel exists in the form of multiplexing into OTUk, whether the payload data of the OTU1 frame in the current transmission frame corresponds to the OTU1 corresponding to the previous transmission frame.
- the OTUk frame needs to be demultiplexed into k OTU1 frames.
- the location of the payload area of the first frame may be determined by determining a type of the first frame; determining a location of the payload area of the first frame according to the type of the first frame.
- the location of the payload area in the STM-1 frame can be determined by the type of STM-1 frame.
- determining the location of the payload area of the first frame according to the type of the first frame may include at least one of the following methods: when the type of the first frame is a fourth-order management unit (AU-4, Administrative Unit level 4), parsing the first frame to obtain the position of the management unit pointer AU-PTR in the first frame; determining the position of the AU-PTR as the location of the payload area of the first frame; when the first frame When the type is a third-order tributary unit (TU-3, Tnbutary Unit level 3), the first frame is parsed to obtain the position of the third-order virtual container (VC-3, Virtual Container level 12) in the first frame; Determining the location of the VC-3 as the location of the payload area of the first frame; when the type of the first frame is a TU-12 (Tnbutary Unit level 12), parsing the first frame to obtain The position of the 12th-order virtual container (VC-12, Virtual Container level 12) in the first frame; the position of the VC-12
- the type of the first frame may be AU-4, TU-3, TU-12, and according to different first frame types, the location of the pointer corresponding to the type is found, and the pointer is determined according to the pointer. The location of the payload data for the first frame of the type.
- the determining method of the channel state may further include determining the location of the payload area of the first frame by: According to the pointer in the frame positioning overhead field in the current transmission frame The position of the payload area of the first frame.
- the position pointed by the pointer in the frame positioning overhead field is the location of the payload area of the first frame.
- the payload area of the first frame is obtained according to a pointer in the frame positioning overhead field of the first frame.
- the mapping type of the first frame is synchronous mapping, when the number of bytes of statistics reaches the position pointed by the pointer in the frame positioning overhead field, then Subsequent received payload area; when the mapping type of the first frame is asynchronous mapping, when the number of bytes counted reaches the position pointed by the pointer in the frame positioning overhead field and the sum of the positive adjustment bytes, or the number of bytes counted When the sum of the position pointed by the pointer in the frame positioning overhead field and the negative adjustment byte is reached, the subsequently received payload area is obtained.
- the determining method of the channel state may further include: determining a location of the payload area of the first frame by: determining a mapping type of the first frame; The mapping type of the first frame determines the location of the payload area of the first frame.
- the current transmission frame may be an OTU frame, and the location of the payload data of the OUT frame may be obtained according to the mapping type of the OTU frame.
- determining the location of the payload area of the first frame according to the mapping type of the first frame may include: when the mapping type of the first frame is a synchronization mapping, positioning the first frame according to the byte count The location of the payload area; when the mapping type of the first frame is asynchronous mapping, the location of the payload area of the first frame is determined according to the positive adjustment byte and the negative adjustment byte.
- the mapping manner of the OUT frame may be a synchronous mapping or an asynchronous mapping. According to different mapping manners, different methods for determining the location of the payload data of the OUT frame may be obtained.
- the method according to the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases.
- the former is a better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium (such as a read only memory (ROM, Read). Only Memory) or Random Access Memory (RAM), including a number of instructions to make a terminal device (may be A mobile phone, computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
- a device for determining the state of the channel is provided, and the device is configured to implement the above-mentioned embodiments and optional embodiments, and details are not described herein.
- the term “module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 2 is a block diagram showing the structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a comparing module 22 and a first determining module 24, which will be described below.
- the comparing module 22 is configured to compare the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame For the transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame corresponds to the position of the second frame in the previous transmission frame; the first determining module 24 is connected to the comparison module 22, and is set to When the comparison result of the comparison module 22 is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, the state of the channel for transmitting the first frame is determined to be un-beared service. status.
- FIG. 3 is a block diagram of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a second determining module 32, in addition to all the modules shown in FIG. The device will be described.
- the second determining module 32 is connected to the comparing module 22, and includes a first demultiplexing unit 34 and a first determining unit 36, configured to pass the first solution when the current transmission frame is a synchronous transmission module N-level STM-N frame.
- the first frame is determined by the unit 34 and the first determining unit 36, and the second determining module 32 will be described below.
- the first demultiplexing unit 34 is configured to demultiplex the STM-N frame into N STM-1 frames; the first determining unit 36 is connected to the first demultiplexing unit 34, and is configured to determine N STM-1 One STM-1 frame in the frame is the first frame.
- FIG. 4 is a block diagram 2 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a third determining module 42 in addition to all the modules shown in FIG. The device will be described below.
- the third determining module 42 is coupled to the second determining module 32 and the comparing module 22, and includes a second determining unit 44 and a third determining unit 46, configured to determine the first frame by the second determining unit 44 and the third determining unit 46.
- the position of the payload area is described below for the third determining module 42.
- the second determining unit 44 is configured to determine the type of the first frame; the third determining unit 46 is coupled to the second determining unit 44, and is configured to determine the location of the payload area of the first frame according to the type of the first frame.
- the third determining unit 46 includes a first determining subunit 52, a second determining subunit 54, and a third determining. At least one of the subunits 56, the third determining unit 46 is described below.
- the first determining sub-unit 52 is configured to parse the first frame to obtain the position of the management unit pointer AU-PTR in the first frame when the type of the first frame is AU-4; determine the position of the AU-PTR as The location of the payload area of the first frame; the second determining sub-unit 54 is configured to parse the first frame to obtain the location of the VC-3 in the first frame when the type of the first frame is TU-3; Determining the location of the VC-3 as the location of the payload area of the first frame; the third determining sub-unit 56 is configured to parse the first frame to obtain the first frame when the type of the first frame is TU-12 The location of the VC-12; determine the location of the VC-12 as the location of the payload area of the first frame.
- the device includes a fourth determining module 62 in addition to all the modules shown in FIG. 2, which will be described below.
- FIG. 6 is a block diagram of a preferred structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes a fourth determining module 62 in addition to all the modules shown in FIG. The device is described.
- the fourth determining module 62 is connected to the comparing module 22, and includes a fourth determining unit 64 and a fifth determining unit 66, configured to determine, by the fourth determining unit 64 and the fifth determining unit 66, when the current transmission frame is an OTU frame.
- the position of the payload area of one frame, the fourth determination module 62 will be described below.
- the fourth determining unit 64 is configured to determine a mapping type of the first frame
- the fifth determining unit 66 is connected to the fourth determining unit 64, configured to determine a location of the payload area of the first frame according to the mapping type of the first frame.
- the fifth determining unit 66 includes a positioning subunit 72 and a fourth determining subunit 74. The fifth determining unit 66 will be described.
- the positioning sub-unit 72 is configured to: when the mapping type of the first frame is a synchronization mapping, locate the location of the payload area of the first frame according to the byte count; and the fourth determining sub-unit 74 is configured to use the mapping type of the first frame. For asynchronous mapping, the position of the payload area of the first frame is determined according to the positive adjustment byte and the negative adjustment byte.
- the device includes a fifth determining module, which is connected to the comparing module 22, and is configured to set a frame positioning overhead according to the current transmission frame when the current transmission frame is an OTU frame, in addition to all the modules shown in FIG.
- a pointer in the field determines the location of the payload area of the first frame.
- Embodiment 1 of the present invention provides a method and device for detecting channel usage, which is a method and device for detecting channel usage, which overcomes the problem that the carrier is difficult to grasp and causes channel waste to be used in the related art. Device).
- Embodiment 1 of the present invention adopts the following technical solutions:
- FIG. 8 is a structural block diagram of an apparatus for detecting a channel usage according to a first embodiment of the present invention.
- the apparatus may include a receiving module 82 (corresponding to the second determining module 32 in the foregoing embodiment), and a payload.
- the positioning module 84 (corresponding to the third determining module 42 and/or the fourth determining module 62 in the above embodiment), the payload storage module 86 and the payload comparison module 88 (corresponding to the comparison module 22 and the first determination in the above embodiment) Module 24)
- the receiving module 82 is configured to: frame, demultiplex, descramble, etc. the current transmission frame;
- the payload location module 84 is connected to the receiving module 82, configured to parse the overhead information, and locate the location of the payload in the channel;
- the payload storage module 86 is connected to the payload positioning module 84 and configured to store the parsed payload portion in a random access memory (RAM).
- RAM random access memory
- Payload comparison module 88 connected to RAM and payload location module 84, set to RAM The payload in the previous frame is compared with the current frame data. If the comparison result is the same, it is determined that the current channel does not carry the service; if the comparison result is different, it is determined that the current channel carries the service.
- FIG. 9 is a flowchart of a method for detecting a channel usage according to the embodiment of the present invention.
- FIG. 9 is a flowchart of detecting a usage of a transmission channel according to Embodiment 1 of the present invention. The method includes the following steps:
- Step S802 The receiving module 82 finds the starting position of the frame according to the frame positioning overhead in the block frame, thereby determining the position of each byte in the frame.
- Step S804 In the payload positioning module 84, the specific location of the payload in the channel is parsed according to the overhead byte.
- Step S806 The payload storage module 86 stores the extracted payload in the byte order according to the byte order.
- Step S808 The payload comparison module 88 compares the payload byte in the current frame with the previous frame byte stored in the RAM, and outputs a comparison result. If the comparison result is the same, it is determined that the service is not carried in the current channel, and the result is sent to the CPU module, indicating that the current channel is not loaded with data; if the comparison result is different, then the judgment is made according to the actual situation.
- the method and apparatus of the first embodiment of the present invention achieve the effect of allowing the operator to better grasp the channel usage, save operating costs, and improve the channel utilization efficiency.
- the use of the SDH channel is determined.
- FIG. 10 is a structural block diagram of a device for determining the usage of an SDH channel according to Embodiment 2 of the present invention.
- the device in the second embodiment of the present invention, includes: an SDH receiving module 92, and an AU-4 pointer parsing module 942. , VC-4 data storage module 962, VC-4 data storage module 982, TU-3 pointer parsing module 944, VC-3 data storage module 964, VC-3 data comparison module 984, TU-12 pointer parsing module 946, VC -12 data storage module 966, VC-12 data comparison module 986.
- the SDH receiving module 92 includes a framing unit, a demultiplexing unit, and a descrambling unit.
- the framing unit determines the position of the STM-N frame header according to the A1 and A2 fields in the STM-N frame, that is, the position where the A1 and A2 fields start is the position of the STM-N frame header.
- A1 and A2 have fixed values, that is, there are fixed bit patterns, A1:11110110 (f6H), A2:00101000 (28H).
- FIG. 11 is a schematic diagram showing the frame structure of an STM-N frame.
- the signal of the STM-N frame is a frame structure of 9 rows ⁇ 270 ⁇ N columns.
- N is consistent with the N phase of STM-N, and the value range is 1, 4, 16, 64..., indicating that the signal is formed by interleaving multiplexing of N STM-1 signals.
- the frame structure of the STM-1 signal is a block frame of 9 rows ⁇ 270 columns. As seen from FIG.
- the signal stream processed by the demultiplexing unit enters the descrambling unit.
- the scrambling code is used at the origin to prevent the signal from appearing in the transmission with a long connection “0” or a long connection “1”, which is easy to receive the signal from the signal. Extract timing information. Therefore, the signal needs to be descrambled at the receiving end.
- the International Brass and Telephone Consultative Committee (ITU-T) regulates the scrambling of non-return-to-zero (NRZ) codes using a standard level 7 scrambler.
- the advantage of this method is that the pattern is the simplest, does not increase the line signal rate, has no optical power penalty, does not require encoding, the originator needs a scrambler, and the receiving end uses the same standard descrambler to receive the originating service. Achieve optical path interconnection in a multi-vendor equipment environment.
- the descrambling unit will descramble all bytes except the first line.
- the signal processed by the descrambling unit enters the AU-4 pointer parsing module 942, and the location of the management unit-pointer (AU-PTR) is in the 4th row and the 1st column of the STM-1 frame. 9 bytes, indicating that the first byte J1 of VC-4 is at the specific location of the AU-4 payload, so that the receiving end can correctly separate the VC-4 accordingly.
- the AU-4 pointer parsing module 942 calculates the specific location of the VC-4 in the AU-4 according to the H1 and H2 pointers in the STM-N frame, and generates a pl_au4 signal for the VC-4 data storage module 962 to indicate VC. -4 location of the payload.
- VC-4 data may be carried, or three VC-3 data may be carried, or 63 VC-12 data.
- the AU-4 pointer parsing module 942 extracts the H4 byte at the same time. If the subsequent TU-12 pointer parsing module 946 needs to analyze the TU-12, the H4 byte is required to provide the multiframe number.
- RAM1 Random Access Memory
- SSRAM Access Memory
- SDRAM Synchronous Dynamic Random Access Memory
- the VC-4 data comparison module 982 then reads the VC-4 data of the previous frame from the RAM 1 and compares this data with the current data. If the comparison results are the same, it means that the current channel carries VC-4 particles, and the VC-4 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-4 does not carry valid data. If the comparison results are different, it indicates that the current channel may carry TU-3 or TU-12 particles, or the VC-4 particles have carried valid data. The data will be further processed.
- the data of the lower-order channel needs to be analyzed, and the TU-3 pointer parsing module 944 is first entered.
- a pointer of 3 bytes (H1, H2, H3) is added to the frame of VC-3 - TU-3 tributary unit pointer (Tributary Unit 3 Pointer), which is abbreviated as TU-3 pointer offset range of 0 to 764.
- TU-3 pointer offset range 0 to 764.
- the TU-3 pointer parsing module 944 will parse out the specific location of the VC-3 based on the TU-3 pointer. And generating a pl_tu3 signal is provided to the VC-3 data storage module 964 to indicate the location of the VC-3 payload.
- the VC-3 data storage module 964 writes the payload of the VC-3 into the RAM 2 according to the pl_tu3 signal provided in the TU-3 pointer parsing module 944, and the RAM 2 is controlled by paging, and the two pages are alternately read and written. When one page is written, the other page is read.
- the VC-3 data comparison module 984 reads the VC-3 data of the previous frame from the RAM 2 and compares this data with the current data. If the comparison results are the same, it means that the current channel carries VC-3 particles, and the VC-3 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-3 does not carry valid data. If the comparison results are different, it indicates that valid data has been carried in the VC-3 particles.
- the TU-12 pointer parsing module 946 is entered.
- the TU pointer in the STM-N frame (indicating the location of the TU-12 payload area) is used to indicate the specific location of the first byte V5 of the VC-12 in the TU-12 payload so that the receiving end can correctly separate the VC12.
- the TU-12 pointer provides a flexible and dynamic method for the positioning of VC12 within the TU-12 multiframe.
- the position of the TU-PTR is located at V1, V2, V3, and V4 of the TU-12 multiframe.
- the TU-12 pointer parsing module 946 parses out the payload of the VC-12 based on the pointer value. And generating a pl_tu12 signal is provided to the VC-12 data storage module 966 to indicate the location of the VC-12 payload.
- the VC-12 data storage module 966 writes the payload of the VC-12 into the RAM3 according to the pl_tu12 signal provided by the TU-12 pointer parsing module 946, and the RAM3 is controlled by paging, and the two pages are alternately read and written. When one page is written, the other page is read.
- the VC-12 data comparison module 986 will read the VC-12 data of the previous frame from the RAM 3 and compare this data with the current data. If the comparison result is the same, it means that the current channel carries VC-12 particles, and the VC-12 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-12 does not carry valid data. If the comparison results are different, it indicates that valid data has been carried in the VC-12 particles.
- an OTN transmission channel is taken as an example to describe a method and an apparatus for using an OTN transmission channel.
- FIG. 13 is a structural block diagram of a device for determining the usage of an OTN channel according to Embodiment 3 of the present invention.
- the device of the third embodiment includes: an OTU frame receiving module 122, an OPU positioning module 124, and an OPU storage module. 126 and OPU comparison module 128, the device will be described below.
- the OTU frame receiving module 122 includes a framing unit configured to receive and frame the OTU frame.
- the OPU positioning module 124 is connected to the OTU frame receiving module 122 and configured to locate the payload location of the OPU frame.
- the OPU storage module 126 is connected to the OPU positioning module 124 and the RAM, and is configured to store the payload data in the OPU frame into the RAM;
- the OPU comparison module 128 is connected to the OPU positioning module 124 and the OPU storage module 126, and is configured to read the payload data of the previous frame from the RAM, compare the data with the current data, and if the comparison result is the same, the current The channel does not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the channel does not carry valid data. If the comparison result is different, it indicates that valid data has been carried in the current channel.
- the flow of the method for determining the usage of the OTN channel in the third embodiment of the present invention is as follows:
- the framing unit determines the position of the frame header based on the frame positioning overhead byte.
- 14 is a schematic diagram of an OTN frame structure (G.709 frame).
- the OA1 and OA2 fields in the OTN frame are used to determine the position of the OTN frame header, that is, the position where the OA1 and OA2 fields start is the position of the OTN frame header.
- OA1, OA2 have fixed values, that is, there are fixed bit patterns, OA1:11110110 (f 6H), OA2:00101000 (28H).
- the receiving end locates the starting point of each frame. Different frames are distinguished to achieve the purpose of separating different frames.
- the generated fp signal is aligned with the last A1 byte as the frame header of the subsequent OPU positioning module 124. Instructions.
- the signal processed by the OTU frame receiving module 122 then enters the OPU positioning module 124.
- the OPU positioning module 124 determines whether it is a synchronous mapping or an asynchronous mapping according to the JC byte in the OUT frame. If the synchronization mapping directly locates the payload according to the byte count. The position, if asynchronous mapping is used, the payload position is calculated based on the positive adjustment byte and the negative adjustment byte, and a pl signal is generated and sent to the payload storage module.
- the OPU storage module 126 After the signal processed by the OPU positioning module 124 enters the OPU storage module 126, the OPU storage module 126 writes the payload into the RAM according to the pl signal provided by the OPU1 positioning module 124, and the RAM is controlled by paging, and the two pages are alternately replaced. Do read and write operations, when one page is written, another page is read.
- This RAM and the RAM used in the subsequent modules can use the internal RAM of the FPAG, or an external RAM such as an external SSRAM or SDRAM.
- the OPU comparison module 128 reads the payload data of the previous frame from the RAM and compares this data with the current data. If the comparison result is the same, it means that the current channel does not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the channel does not carry valid data. If the comparison result is different, it indicates that valid data has been carried in the current channel.
- Figure 15 is a diagram showing the structure of an OTN multiplexing map.
- each of the foregoing modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the state of the channel for transmitting the first frame is determined to be un-beared traffic.
- the foregoing storage medium may include, but not limited to, a U disk, a Read-Only Memory (ROM), a RAM, a mobile hard disk, a magnetic disk, or an optical disk, and the like.
- the medium of the program code may include, but not limited to, a U disk, a Read-Only Memory (ROM), a RAM, a mobile hard disk, a magnetic disk, or an optical disk, and the like.
- the processor executes the above-mentioned S1-S2 according to the stored program code in the storage medium.
- each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
- the invention is not limited to any specific form of combination of hardware and software.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the above technical solution accurately knows the use of the channel, thereby reducing the waste of the channel, thereby improving the use efficiency of the channel and saving operating costs.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Time-Division Multiplex Systems (AREA)
Abstract
A method and apparatus for determining a channel state. The method comprises: comparing payload data of a payload region of a pre-set first frame in the current transmission frame with payload data of a payload region of a pre-set second frame in the previous transmission frame, wherein a position of the first frame in the current transmission frame corresponds to a position of the second frame in the previous transmission frame; and where a comparison result is that the payload data of the payload region of the first frame is the same as the payload data of the payload region of the second frame, determining that a state of a channel for transmitting the first frame is a state without bearing a service.
Description
本文涉及但不限于通信领域,具体而言,涉及一种通道状态的确定方法及装置。This document relates to, but is not limited to, the field of communications, and in particular, to a method and apparatus for determining a channel state.
随着通信的发展,要求传送的信息不仅是话音,还有文字、数据、图像和视频等,加之数字通信和计算机技术的发展,在70至80年代,陆续出现了T1(DS1)(23路脉码调制)或E1(30路脉码调制)载波系统(1.544或2.048Mbps)、X.25帧中继、综合业务数字网(Integrated Services Digital Network,简称为ISDN)和光纤分布式数据接口(Fiber Distributing Data Interface,简称为FDDI)等多种网络技术。随着信息社会的到来,人们希望现代信息传输网络能快速、经济、有效地提供多种电路和业务,而上述网络技术由于其业务的单调性,扩展的复杂性,带宽的局限性,仅在原有框架内修改或完善已无济于事。同步数字体系(Synchronous Digital Hierarchy,简称为SDH)技术就是在这种背景下发展起来的。With the development of communication, the information required to be transmitted is not only voice, but also text, data, images and video. In addition to the development of digital communication and computer technology, T1 (DS1) appeared in the 70s and 80s. Pulse code modulation) or E1 (30-channel pulse code modulation) carrier system (1.544 or 2.048 Mbps), X.25 frame relay, Integrated Services Digital Network (ISDN) and fiber-optic distributed data interface ( Fiber Distributing Data Interface (FDDI) and other network technologies. With the advent of the information society, people hope that modern information transmission networks can provide a variety of circuits and services quickly, economically and efficiently. The above-mentioned network technologies are only in the original due to the monotonicity of their services, the complexity of expansion, and the limitations of bandwidth. It is useless to modify or improve within the framework. The Synchronous Digital Hierarchy (SDH) technology was developed in this context.
在多种宽带光纤接入网技术中,采用了SDH技术的接入网系统是应用最普遍的。SDH的诞生解决了由于入户媒质的带宽跟不上骨干网和用户业务需求的发展,而产生的用户与核心网之间的接入“瓶颈”的问题,同时提高了传输网上大量带宽的利用率。自从90年代引入以来,SDH技术已经是一种成熟、标准的技术,在骨干网中被广泛采用,且价格越来越低。应用在接入网中可以将SDH技术在核心网中的巨大带宽优势和技术优势带入接入网领域,并且能够充分利用SDH同步复用、标准化的光接口、强大的网管能力、灵活网络拓扑能力和高可靠性的优势,使得接入网在建设发展中长期受益。Among a variety of broadband fiber access network technologies, access network systems using SDH technology are the most commonly used. The birth of SDH solves the problem of access bottleneck between users and the core network due to the bandwidth of the home media cannot keep up with the development of the backbone network and user service requirements, and at the same time improves the utilization of a large amount of bandwidth on the transmission network. rate. Since its introduction in the 1990s, SDH technology has become a mature, standard technology that has been widely adopted in backbone networks and at a lower price. Application in the access network can bring the huge bandwidth advantages and technical advantages of SDH technology in the core network into the access network field, and can fully utilize SDH synchronous multiplexing, standardized optical interfaces, powerful network management capabilities, and flexible network topology. The advantages of capacity and high reliability make the access network benefit in the long-term development of construction.
SDH采用的信息结构等级称为同步传送模块N级(Synchronous Transport Module level n,N=1,4,16,64,简称为STM-N),最基本的模块为STM-1,四个STM-1同步复用构成STM-4,16个STM-1或四个STM-4同步复用构成STM-16,四个STM-16同步复用构成STM-64,甚至四个STM-64同步复
用构成STM-256。SDH采用块状的帧结构来承载信息,每帧由纵向9行和横向270×N列字节组成,每个字节含8比特(bit),整个帧结构分成段开销(Section OverHead,简称为SOH)区、STM-N净负荷区和管理单元指针(AU PTR)区三个区域,其中段开销区主要用于网络的运行、管理、维护及指配以保证信息能够正常灵活地传送,它又分为再生段开销(Regenerator Section OverHead,简称为RSOH)和复用段开销(Multiplex Section OverHead,简称为MSOH);净负荷区用于存放真正用于信息业务的比特和少量的用于通道维护管理的通道开销字节;管理单元指针用来指示净负荷区内的信息首字节在STM-N帧内的准确位置以便接收时能正确分离净负荷。The information structure level adopted by SDH is called Synchronous Transport Module level n (N=1, 4, 16, 64, referred to as STM-N). The most basic module is STM-1, and four STM- 1 Synchronous multiplexing constitutes STM-4, 16 STM-1 or four STM-4 synchronous multiplexing constitutes STM-16, four STM-16 synchronous multiplexing constitutes STM-64, and even four STM-64 synchronous complex
Used to form STM-256. SDH uses a block-like frame structure to carry information. Each frame consists of 9 lines in the vertical direction and 270×N columns in the horizontal direction. Each byte contains 8 bits. The entire frame structure is divided into segment overheads (Section OverHead, referred to as SOH) area, STM-N payload area and management unit pointer (AU PTR) area, the section overhead area is mainly used for network operation, management, maintenance and assignment to ensure that information can be transmitted normally and flexibly. It is further divided into Regenerator Section OverHead (RSOH) and Multiplex Section OverHead (MSOH); the payload area is used to store bits for information services and a small amount for channel maintenance. The managed channel overhead byte; the management unit pointer is used to indicate the exact location of the first byte of information in the payload area within the STM-N frame so that the payload can be correctly separated upon reception.
光传输网络(Optical Transport Network,简称为OTN)是与SDH共存的另一种网络。与SDH相比,OTN具有较强的组网能力,具备良好的可扩展性、支持多种上层业务或协议、对客户信号进行完全透明的传输,提供多级串联连接监视(Tandem Connection Monitor,简称为TCM)功能和更强的前向纠错能力,同时OTN还可提供与波分复用(Wavelength Division Multiplexing,简称为WDM)同样的高带宽。因此,OTN将成为下一代传输网,特别是骨干层的主要组网技术。OTN在电域方面不仅吸收了SDH的技术优势,还扩展了新的功能。基于光数据单元K(Optical Channel Data Unit-k,简称为ODUK)的交叉功能使得电路交换粒度由SDH的155M提高到2.5G、10G、40G,从而实现大颗粒业务的灵活调度和保护,还支持带外前向纠错(Forward Error Correction,简称为FEC),支持对多层、多域网络进行级联监视等,采用异步方式的映射和复用,不需要网络同步,关键的交叉能采用最经济的空分技术。OTN兼容SDH、异步传输模式,(Asynchronous Transfer Mode,简称为ATM)业务,能承载网络协议或多协议标签交换(Internet Protocol/Multi-Protocol Label Switching,简称为IP/MPLS)、存储局域网络(Storage Area Network,简称为SAN)、视频(Video)等大颗粒业务。An Optical Transport Network (OTN) is another network that coexists with SDH. Compared with SDH, OTN has strong networking capabilities, good scalability, supports multiple upper-layer services or protocols, and completely transparent transmission of customer signals, and provides multi-level serial connection monitoring (Tandem Connection Monitor, referred to as For TCM) function and stronger forward error correction capability, OTN can also provide the same high bandwidth as Wavelength Division Multiplexing (WDM). Therefore, OTN will become the next generation transmission network, especially the main networking technology of the backbone layer. In terms of power domain, OTN not only absorbs the technical advantages of SDH, but also expands new functions. Based on the cross-functional function of Optical Channel Data Unit-k (ODUK), the circuit switching granularity is improved from 155M of SDH to 2.5G, 10G, and 40G, thereby achieving flexible scheduling and protection of large-particle services, and also supporting Forward Error Correction (FEC), which supports cascading monitoring of multi-layer and multi-domain networks, adopts asynchronous mapping and multiplexing, does not require network synchronization, and uses the most critical crossovers. Economic air separation technology. OTN is compatible with SDH and Asynchronous Transfer Mode (ATM) services. It can carry network protocol or Multi-Protocol Label Switching (IP/MPLS) and storage area network (Storage). Area Network, referred to as SAN), video (Video) and other large-granular businesses.
在传输网络中,如OTN和SDH等网络结构都采用块状帧作为传输载体,这种块状帧具有固定帧长,ONT和SDH可以通过通道开销字节对高阶通道和低阶通道进行监控。但在实际使用中,由于在用户侧可能接入了某些类型的接入设备,但并没有实际接入用户业务,导致在OTN或SDH帧中开销都
正常,但实际上通道并未使用,净荷为空。运营商通常难以掌握通道的使用情况,特别是低阶通道的使用情况,导致通道的浪费。In the transmission network, network structures such as OTN and SDH use block frames as transmission carriers. This block frame has a fixed frame length, and ONT and SDH can monitor high-order channels and low-order channels through channel overhead bytes. . However, in actual use, since some types of access devices may be accessed on the user side, but the user services are not actually accessed, the overhead in the OTN or SDH frames is
Normal, but the channel is not actually used and the payload is empty. It is often difficult for operators to grasp the use of the channel, especially the use of low-order channels, resulting in wasted channels.
针对相关技术中运营商难以准确获知通道的使用情况而导致通道浪费的问题,目前尚未提出解决方案。In view of the problem that the operator in the related art is difficult to accurately know the use of the channel and the channel is wasted, no solution has been proposed yet.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种通道状态的确定方法及装置,能够准确获知通道的使用情况而减少通道的浪费。The embodiment of the invention provides a method and a device for determining a channel state, which can accurately know the usage of the channel and reduce the waste of the channel.
本发明实施例提供了一种通道状态的确定方法,包括:将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,所述第一帧在所述当前传输帧中的位置与所述第二帧在所述上一传输帧中的位置相对应;在比较结果为所述第一帧的净荷区域的净荷数据与所述第二帧的净荷区域的净荷数据相同的情况下,确定用于传输所述第一帧的通道的状态为未承载业务状态。An embodiment of the present invention provides a method for determining a channel state, including: saving payload data of a payload area of a first frame in a current transmission frame and a payload area of a payload area of a second frame in a previous transmission frame. Data comparison, wherein the last transmission frame is the transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame Corresponding to; in the case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining a channel for transmitting the first frame The status is un-beared business status.
可选地,所述方法还包括,当所述当前传输帧为同步传输模块N级STM-N帧时,通过如下方式确定所述第一帧:将所述STM-N帧解复用为N个STM-1帧;确定所述N个STM-1帧中的一个STM-1帧为所述第一帧。Optionally, the method further includes: when the current transmission frame is a synchronous transmission module N-level STM-N frame, determining the first frame by: demultiplexing the STM-N frame into N STM-1 frames; determining one of the N STM-1 frames as the first frame.
可选地,所述方法还包括,通过如下方式确定所述第一帧的净荷区域的位置:确定所述第一帧的类型;根据所述第一帧的类型确定所述第一帧的净荷区域的位置。Optionally, the method further includes determining a location of the payload area of the first frame by: determining a type of the first frame; determining, according to a type of the first frame, the first frame The location of the payload area.
可选地,根据所述第一帧的类型确定所述第一帧的净荷区域的位置包括以下至少一种:当所述第一帧的类型为四阶管理单元AU-4时,对所述第一帧进行解析以获取所述第一帧中的管理单元指针AU-PTR的位置;确定所述AU-PTR的位置为所述第一帧的净荷区域的位置;当所述第一帧的类型为三阶支路单元TU-3时,对所述第一帧进行解析以获取所述第一帧中的三阶虚
容器VC-3的位置;确定所述VC-3的位置为所述第一帧的净荷区域的位置;当所述第一帧的类型为十二阶支路单元TU-12时,对所述第一帧进行解析以获取所述第一帧中的十二阶虚容器VC-12的位置;确定所述VC-12的位置为所述第一帧的净荷区域的位置。Optionally, determining, according to the type of the first frame, a location of the payload area of the first frame includes at least one of the following: when the type of the first frame is a fourth-order management unit AU-4, Decoding the first frame to obtain a location of the management unit pointer AU-PTR in the first frame; determining a location of the AU-PTR as a location of a payload area of the first frame; when the first When the type of the frame is the third-order tributary unit TU-3, the first frame is parsed to obtain the third-order virtual in the first frame.
a location of the container VC-3; determining a location of the VC-3 as a location of a payload area of the first frame; when the type of the first frame is a twelve-order tributary unit TU-12, The first frame is parsed to obtain the location of the twelve-order virtual container VC-12 in the first frame; and the location of the VC-12 is determined as the location of the payload area of the first frame.
可选地,所述方法还包括,当所述当前传输帧为光转换单元OTU帧时,通过如下方式确定所述第一帧的净荷区域的位置:根据当前传输帧中的帧定位开销字段中的指针确定所述第一帧的净荷区域的位置。Optionally, the method further includes: when the current transmission frame is an optical conversion unit OTU frame, determining a location of the payload area of the first frame by: positioning an overhead field according to a frame in a current transmission frame. The pointer in the determination determines the location of the payload area of the first frame.
可选地,所述方法还包括,当所述当前传输帧为OTU帧时,通过如下方式确定所述第一帧的净荷区域的位置:确定所述第一帧的映射类型;根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置。Optionally, the method further includes: determining, when the current transmission frame is an OTU frame, a location of a payload area of the first frame by determining a mapping type of the first frame; The mapping type of the first frame determines the location of the payload area of the first frame.
可选地,根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置包括:当所述第一帧的映射类型为同步映射时,根据字节计数定位所述第一帧的净荷区域的位置;当所述第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定所述第一帧的净荷区域的位置。Optionally, determining the location of the payload area of the first frame according to the mapping type of the first frame includes: when the mapping type of the first frame is a synchronization mapping, positioning the first according to a byte count Position of the payload area of the frame; when the mapping type of the first frame is asynchronous mapping, determining the location of the payload area of the first frame according to the positive adjustment byte and the negative adjustment byte.
本发明实施例还提供了一种通道状态的确定装置,包括:An embodiment of the present invention further provides a channel status determining apparatus, including:
比较模块,设置为将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,所述第一帧在所述当前传输帧中的位置与所述第二帧在所述上一传输帧中的位置相对应;And a comparison module, configured to compare the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame is a transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame;
第一确定模块,设置为在所述比较模块的比较结果为所述第一帧的净荷区域的净荷数据与所述第二帧的净荷区域的净荷数据相同的情况下,确定用于传输所述第一帧的通道的状态为未承载业务状态。a first determining module, configured to determine, when the comparison result of the comparison module is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame The state of the channel transmitting the first frame is an un-beared service state.
可选地,所述装置还包括,Optionally, the device further includes
第二确定模块,设置为当所述当前传输帧为同步传输模块N级STM-N帧时,通过如下单元确定所述第一帧:The second determining module is configured to: when the current transmission frame is a synchronous transmission module N-level STM-N frame, determine the first frame by:
第一解复用单元,设置为将所述STM-N帧解复用为N个STM-1帧;a first demultiplexing unit, configured to demultiplex the STM-N frame into N STM-1 frames;
第一确定单元,设置为确定所述N个STM-1帧中的一个STM-1帧为所
述第一帧。a first determining unit, configured to determine that one of the N STM-1 frames is a STM-1 frame
Said the first frame.
可选地,所述装置还包括,Optionally, the device further includes
第三确定模块,设置为通过如下单元确定所述第一帧的净荷区域的位置:The third determining module is configured to determine a location of the payload area of the first frame by:
第二确定单元,用于确定所述第一帧的类型;a second determining unit, configured to determine a type of the first frame;
第三确定单元,设置为根据所述第一帧的类型确定所述第一帧的净荷区域的位置。And a third determining unit, configured to determine a location of the payload area of the first frame according to the type of the first frame.
可选地,所述第三确定单元包括以下至少一个子单元:Optionally, the third determining unit includes at least one subunit:
第一确定子单元,设置为当所述第一帧的类型为四阶管理单元AU-4时,对所述第一帧进行解析以获取所述第一帧中的管理单元指针AU-PTR的位置;确定所述AU-PTR的位置为所述第一帧的净荷区域的位置;a first determining subunit, configured to parse the first frame to obtain a management unit pointer AU-PTR in the first frame when the type of the first frame is a fourth-order management unit AU-4 a location; determining a location of the AU-PTR as a location of a payload area of the first frame;
第二确定子单元,设置为当所述第一帧的类型为三阶支路单元TU-3时,对所述第一帧进行解析以获取所述第一帧中的三阶虚容器VC-3的位置;确定所述VC-3的位置为所述第一帧的净荷区域的位置;a second determining subunit, configured to: when the type of the first frame is a third-order tributary unit TU-3, parse the first frame to obtain a third-order virtual container VC in the first frame Position of 3; determining a location of the VC-3 as a location of a payload area of the first frame;
第三确定子单元,设置为当所述第一帧的类型为十二阶支路单元TU-12时,对所述第一帧进行解析以获取所述第一帧中的十二阶虚容器VC-12的位置;确定所述VC-12的位置为所述第一帧的净荷区域的位置。a third determining subunit, configured to parse the first frame to obtain a twelve-order virtual container in the first frame when the type of the first frame is a twelve-order tributary unit TU-12 The location of the VC-12; determining the location of the VC-12 as the location of the payload area of the first frame.
可选地,所述装置还包括,第四确定模块,设置为当所述当前传输帧为OTU帧时,通过如下单元确定所述第一帧的净荷区域的位置:第四确定单元,设置为确定所述第一帧的映射类型;第五确定单元,设置为根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置。Optionally, the apparatus further includes: a fourth determining module, configured to: when the current transmission frame is an OTU frame, determine a location of the payload area of the first frame by: a fourth determining unit, setting To determine the mapping type of the first frame, the fifth determining unit is configured to determine a location of the payload area of the first frame according to a mapping type of the first frame.
可选地,所述第五确定单元包括:定位子单元,设置为当所述第一帧的映射类型为同步映射时,根据字节计数定位所述第一帧的净荷区域的位置;第四确定子单元,设置为当所述第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定所述第一帧的净荷区域的位置。Optionally, the fifth determining unit includes: a positioning subunit, configured to: when the mapping type of the first frame is a synchronization mapping, locate a location of a payload area of the first frame according to a byte count; And determining a subunit, configured to determine a location of the payload area of the first frame according to the positive adjustment byte and the negative adjustment byte when the mapping type of the first frame is an asynchronous mapping.
可选地,所述装置还包括,Optionally, the device further includes
第五确定模块,设置为当所述当前传输帧为OTU帧时,根据当前传输帧中的帧定位开销字段中的指针确定所述第一帧的净荷区域的位置。
And a fifth determining module, configured to: when the current transmission frame is an OTU frame, determine a location of the payload area of the first frame according to a pointer in a frame positioning overhead field in the current transmission frame.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
通过本发明实施例,采用将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离所述当前传输帧最近的传输帧,所述第一帧在所述当前传输帧中的位置与所述第二帧在所述上一传输帧中的位置相对应;在比较结果为所述第一帧的净荷区域的净荷数据与所述第二帧的净荷区域的净荷数据相同的情况下,确定用于传输所述第一帧的通道的状态为未承载业务状态的方法,通过比较当前传输帧中的第一帧的净荷数据是否与上一传输帧中相应位置的帧净荷数据是否相同,来判断传输第一帧的通道的状态,准确地获知了通道的使用情况,从而减少了通道的浪费,进而达到了提高获知的通道的使用情况的准确率的效果。According to the embodiment of the present invention, the payload data of the payload area of the first frame in the current transmission frame is compared with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission is performed. The frame is a transmission frame that is closest to the current transmission frame, and the position of the first frame in the current transmission frame corresponds to the position of the second frame in the previous transmission frame; If the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining that the state of the channel used for transmitting the first frame is an un-beared service state The method of comparing whether the payload data of the first frame in the current transmission frame is the same as the frame payload data of the corresponding position in the previous transmission frame, determining the state of the channel transmitting the first frame, and accurately knowing the channel The use situation, thereby reducing the waste of the channel, thereby achieving the effect of improving the accuracy of the use of the learned channel.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是根据本发明实施例的通道状态的确定方法的流程图;1 is a flow chart of a method of determining a channel state according to an embodiment of the present invention;
图2是根据本发明实施例的通道状态的确定装置的结构框图;2 is a block diagram showing the structure of a channel state determining apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的通道状态的确定装置的可选结构框图一;3 is a block diagram 1 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的通道状态的确定装置的可选结构框图二;4 is a block diagram 2 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的通道状态的确定装置的可选结构框图三;5 is a block diagram 3 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的通道状态的确定装置的可选结构框图四;6 is a block diagram 4 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的通道状态的确定装置的可选结构框图五;7 is a block diagram 5 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention;
图8是根据本发明实施例一的检测通道使用情况的装置的结构框图;FIG. 8 is a structural block diagram of an apparatus for detecting a channel usage according to Embodiment 1 of the present invention; FIG.
图9是根据本发明实施例一的检测通道使用情况的方法的流程图;9 is a flow chart of a method of detecting a channel usage according to a first embodiment of the present invention;
图10是根据本发明实施例二的SDH通道的使用情况的确定装置的结构框图;Figure 10 is a block diagram showing the structure of an apparatus for determining the use of an SDH channel according to Embodiment 2 of the present invention;
图11是根据本发明实施例STM-N帧的帧结构示意图;
11 is a schematic diagram showing a frame structure of an STM-N frame according to an embodiment of the present invention;
图12是根据本发明实施例SDH通道中SDH复用帧映射结构图;12 is a structural diagram of SDH multiplexing frame mapping in an SDH channel according to an embodiment of the present invention;
图13是根据本发明实施例三的OTN通道的使用情况的确定装置的结构框图;FIG. 13 is a structural block diagram of an apparatus for determining an operation of an OTN channel according to Embodiment 3 of the present invention; FIG.
图14是本发明实施例OTN帧结构示意图(G.709帧);14 is a schematic structural diagram of an OTN frame (G.709 frame) according to an embodiment of the present invention;
图15是本发明实施例OTN复用映射结构图。FIG. 15 is a structural diagram of an OTN multiplexing map according to an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种通道状态的确定方法,图1是根据本发明实施例的通道状态的确定方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for determining a channel state is provided. FIG. 1 is a flowchart of a method for determining a channel state according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,第一帧在当前传输帧中的位置与第二帧在上一传输帧中的位置相对应;Step S102, comparing the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame is the current distance Transmitting the most recent transmission frame of the frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame;
步骤S104,在比较结果为第一帧的净荷区域的净荷数据与第二帧的净荷区域的净荷数据相同的情况下,确定用于传输第一帧的通道的状态为未承载业务状态。Step S104, in a case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining that the state of the channel for transmitting the first frame is an unbeared service status.
通过上述步骤,比较当前传输帧中的第一帧的净荷数据是否与上一传输帧中相应位置的帧净荷数据是否相同,来判断传输第一帧的通道的状态,准确地知了通道的使用情况,从而减少了通道的浪费,进而提高了通道的使用效率,节省了运营成本。Through the above steps, comparing whether the payload data of the first frame in the current transmission frame is the same as the frame payload data of the corresponding position in the previous transmission frame, determining the state of the channel transmitting the first frame, and accurately knowing the channel The use of the device reduces the waste of the channel, thereby improving the efficiency of the channel and saving operating costs.
在一个可选的实施例中,当当前传输帧为同步传输模块N级STM-N帧时,上述方法还可以包括,通过如下方式确定第一帧:将STM-N帧解复用为N个STM-1帧;确定N个STM-1帧中的一个STM-1帧为第一帧。在该
可选实施例中,由于在通道中传输的STM-1帧是以复用成STM-N的形式存在的,在对当前传输帧中的STM-1帧的净荷数据是否与上一传输帧中对应的STM-1帧的净荷数据是否相同进行比较判断时,需要将STM-N帧解复用成N个STM-1帧。In an optional embodiment, when the current transmission frame is a synchronous transmission module N-level STM-N frame, the foregoing method may further include: determining, by using the following manner, the first frame: demultiplexing the STM-N frame into N STM-1 frame; determining one STM-1 frame of the N STM-1 frames as the first frame. In the
In an optional embodiment, since the STM-1 frame transmitted in the channel exists in the form of multiplexing into STM-N, whether the payload data of the STM-1 frame in the current transmission frame is the same as the previous transmission frame. When the payload data of the corresponding STM-1 frame is the same for comparison judgment, the STM-N frame needs to be demultiplexed into N STM-1 frames.
当当前传输帧为OTUk帧时,上述方法还可以包括,通过如下方式确定第一帧:将OTUk帧解复用为k个OTU1帧;确定k个OTU1帧中的一个OTU1帧为第一帧。在该可选实施例中,由于在通道中传输的OTU1帧是以复用成OTUk的形式存在的,在对当前传输帧中的OTU1帧的净荷数据是否与上一传输帧中对应的OTU1帧的净荷数据是否相同进行比较判断时,需要将OTUk帧解复用成k个OTU1帧。When the current transmission frame is an OTUk frame, the foregoing method may further include: determining, by using the following manner, the first frame: demultiplexing the OTUk frame into k OTU1 frames; determining that one of the k OTU1 frames is the first frame. In this alternative embodiment, since the OTU1 frame transmitted in the channel exists in the form of multiplexing into OTUk, whether the payload data of the OTU1 frame in the current transmission frame corresponds to the OTU1 corresponding to the previous transmission frame. When the payload data of the frame is the same for comparison and judgment, the OTUk frame needs to be demultiplexed into k OTU1 frames.
在一个可选的实施例中,可以通过如下方式确定第一帧的净荷区域的位置:确定第一帧的类型;根据第一帧的类型确定第一帧的净荷区域的位置。在该可选实施例中,通过将STM-N帧解复用为N个STM-1帧后,可以通过STM-1帧的类型,确定STM-1帧中净荷区域的位置。In an optional embodiment, the location of the payload area of the first frame may be determined by determining a type of the first frame; determining a location of the payload area of the first frame according to the type of the first frame. In this alternative embodiment, by demultiplexing the STM-N frames into N STM-1 frames, the location of the payload area in the STM-1 frame can be determined by the type of STM-1 frame.
在另一个可选的实施例中,根据第一帧的类型确定第一帧的净荷区域的位置可以包括以下至少一种方法:当第一帧的类型为四阶管理单元(AU-4,Administrative Unit level 4)时,对第一帧进行解析以获取第一帧中的管理单元指针AU-PTR的位置;确定AU-PTR的位置为第一帧的净荷区域的位置;当第一帧的类型为三阶支路单元(TU-3,Tnbutary Unit level 3)时,对第一帧进行解析以获取第一帧中的三阶虚容器(VC-3,Virtual Container level 12)的位置;确定VC-3的位置为第一帧的净荷区域的位置;当第一帧的类型为十二阶支路单元(TU-12,Tnbutary Unit level 12)时,对第一帧进行解析以获取第一帧中的十二阶虚容器(VC-12,Virtual Container level 12)的位置;确定VC-12的位置为第一帧的净荷区域的位置。在该可选实施例中,第一帧的类型可以为AU-4、TU-3、TU-12,根据不同的第一帧类型,找到与该类型相对应的指针的位置,根据指针确定该类型的第一帧的净荷数据的位置。In another optional embodiment, determining the location of the payload area of the first frame according to the type of the first frame may include at least one of the following methods: when the type of the first frame is a fourth-order management unit (AU-4, Administrative Unit level 4), parsing the first frame to obtain the position of the management unit pointer AU-PTR in the first frame; determining the position of the AU-PTR as the location of the payload area of the first frame; when the first frame When the type is a third-order tributary unit (TU-3, Tnbutary Unit level 3), the first frame is parsed to obtain the position of the third-order virtual container (VC-3, Virtual Container level 12) in the first frame; Determining the location of the VC-3 as the location of the payload area of the first frame; when the type of the first frame is a TU-12 (Tnbutary Unit level 12), parsing the first frame to obtain The position of the 12th-order virtual container (VC-12, Virtual Container level 12) in the first frame; the position of the VC-12 is determined as the location of the payload area of the first frame. In this optional embodiment, the type of the first frame may be AU-4, TU-3, TU-12, and according to different first frame types, the location of the pointer corresponding to the type is found, and the pointer is determined according to the pointer. The location of the payload data for the first frame of the type.
在一个可选的实施例中,当当前传输帧为光转换单元(out,Optical Transform Unit)帧时,通道状态的确定方法还可以包括,通过如下方式确定第一帧的净荷区域的位置:根据当前传输帧中的帧定位开销字段中的指针确
定第一帧的净荷区域的位置。In an optional embodiment, when the current transmission frame is an optical transform unit (out, Optical Transform Unit) frame, the determining method of the channel state may further include determining the location of the payload area of the first frame by: According to the pointer in the frame positioning overhead field in the current transmission frame
The position of the payload area of the first frame.
帧定位开销字段中的指针指向的位置即为第一帧的净荷区域的位置。The position pointed by the pointer in the frame positioning overhead field is the location of the payload area of the first frame.
在另一个可选实施例中,根据第一帧的帧定位开销字段中的指针获取第一帧的净荷区域。In another optional embodiment, the payload area of the first frame is obtained according to a pointer in the frame positioning overhead field of the first frame.
在接收当前传输帧时,会对接收的字节数进行计数,当第一帧的映射类型为同步映射时,当统计的字节数达到帧定位开销字段中的指针指向的位置时,则获取后续接收到的净荷区域;当第一帧的映射类型为异步映射时,当统计的字节数达到帧定位开销字段中的指针指向的位置和正调整字节之和、或统计的字节数达到帧定位开销字段中的指针指向的位置和负调整字节之和时,获取后续接收到的净荷区域。When receiving the current transmission frame, the number of received bytes is counted. When the mapping type of the first frame is synchronous mapping, when the number of bytes of statistics reaches the position pointed by the pointer in the frame positioning overhead field, then Subsequent received payload area; when the mapping type of the first frame is asynchronous mapping, when the number of bytes counted reaches the position pointed by the pointer in the frame positioning overhead field and the sum of the positive adjustment bytes, or the number of bytes counted When the sum of the position pointed by the pointer in the frame positioning overhead field and the negative adjustment byte is reached, the subsequently received payload area is obtained.
在一个可选的实施例中,当当前传输帧为OTU帧时,通道状态的确定方法还可以包括,通过如下方式确定第一帧的净荷区域的位置:确定第一帧的映射类型;根据第一帧的映射类型确定第一帧的净荷区域的位置。在该可选实施例中,当前传输帧可以为OTU帧,根据OTU帧的映射类型可以得到该OUT帧的净荷数据的位置。In an optional embodiment, when the current transmission frame is an OTU frame, the determining method of the channel state may further include: determining a location of the payload area of the first frame by: determining a mapping type of the first frame; The mapping type of the first frame determines the location of the payload area of the first frame. In this alternative embodiment, the current transmission frame may be an OTU frame, and the location of the payload data of the OUT frame may be obtained according to the mapping type of the OTU frame.
在另一个可选实施例中,根据第一帧的映射类型确定第一帧的净荷区域的位置可以包括:当第一帧的映射类型为同步映射时,根据字节计数定位第一帧的净荷区域的位置;当第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定第一帧的净荷区域的位置。在该可选实施例中,OUT帧的映射方式可以是同步映射或者异步映射,根据不同的映射方式,可以得到不同的确定该OUT帧的净荷数据的位置的方法。In another optional embodiment, determining the location of the payload area of the first frame according to the mapping type of the first frame may include: when the mapping type of the first frame is a synchronization mapping, positioning the first frame according to the byte count The location of the payload area; when the mapping type of the first frame is asynchronous mapping, the location of the payload area of the first frame is determined according to the positive adjustment byte and the negative adjustment byte. In this alternative embodiment, the mapping manner of the OUT frame may be a synchronous mapping or an asynchronous mapping. According to different mapping manners, different methods for determining the location of the payload data of the OUT frame may be obtained.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(ROM,Read Only Memory)或随机存取存储器(RAM,Random Access Memory)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是
手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases. The former is a better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a storage medium (such as a read only memory (ROM, Read). Only Memory) or Random Access Memory (RAM), including a number of instructions to make a terminal device (may be
A mobile phone, computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
在本实施例中还提供了一种通道状态的确定装置,该装置设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a device for determining the state of the channel is provided, and the device is configured to implement the above-mentioned embodiments and optional embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的通道状态的确定装置的结构框图,如图2所示,该装置包括比较模块22和第一确定模块24,下面对该装置进行说明。2 is a block diagram showing the structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a comparing module 22 and a first determining module 24, which will be described below.
比较模块22,设置为将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,第一帧在当前传输帧中的位置与第二帧在上一传输帧中的位置相对应;第一确定模块24,连接至比较模块22,设置为在比较模块22的比较结果为第一帧的净荷区域的净荷数据与第二帧的净荷区域的净荷数据相同的情况下,确定用于传输第一帧的通道的状态为未承载业务状态。The comparing module 22 is configured to compare the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame For the transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame corresponds to the position of the second frame in the previous transmission frame; the first determining module 24 is connected to the comparison module 22, and is set to When the comparison result of the comparison module 22 is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, the state of the channel for transmitting the first frame is determined to be un-beared service. status.
图3是根据本发明实施例的通道状态的确定装置的可选结构框图一,如图3所示,该装置除了包括图2所示的所有模块外,还包括第二确定模块32,下面对该装置进行说明。3 is a block diagram of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a second determining module 32, in addition to all the modules shown in FIG. The device will be described.
第二确定模块32,连接至比较模块22,包括第一解复用单元34和第一确定单元36,设置为当当前传输帧为同步传输模块N级STM-N帧时,通过第一解复用单元34和第一确定单元36确定第一帧,下面对该第二确定模块32进行说明。The second determining module 32 is connected to the comparing module 22, and includes a first demultiplexing unit 34 and a first determining unit 36, configured to pass the first solution when the current transmission frame is a synchronous transmission module N-level STM-N frame. The first frame is determined by the unit 34 and the first determining unit 36, and the second determining module 32 will be described below.
第一解复用单元34,设置为将STM-N帧解复用为N个STM-1帧;第一确定单元36,连接至第一解复用单元34,设置为确定N个STM-1帧中的一个STM-1帧为第一帧。The first demultiplexing unit 34 is configured to demultiplex the STM-N frame into N STM-1 frames; the first determining unit 36 is connected to the first demultiplexing unit 34, and is configured to determine N STM-1 One STM-1 frame in the frame is the first frame.
图4是根据本发明实施例的通道状态的确定装置的可选结构框图二,如图4所示,该装置除了包括图3所示的所有模块外,还包括第三确定模块42,
下面对该装置进行说明。4 is a block diagram 2 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes a third determining module 42 in addition to all the modules shown in FIG.
The device will be described below.
第三确定模块42,连接至第二确定模块32和比较模块22,包括第二确定单元44和第三确定单元46,设置为通过第二确定单元44和第三确定单元46确定第一帧的净荷区域的位置,下面对该第三确定模块42进行说明。The third determining module 42 is coupled to the second determining module 32 and the comparing module 22, and includes a second determining unit 44 and a third determining unit 46, configured to determine the first frame by the second determining unit 44 and the third determining unit 46. The position of the payload area is described below for the third determining module 42.
第二确定单元44,设置为确定第一帧的类型;第三确定单元46,连接至第二确定单元44,设置为根据第一帧的类型确定第一帧的净荷区域的位置。The second determining unit 44 is configured to determine the type of the first frame; the third determining unit 46 is coupled to the second determining unit 44, and is configured to determine the location of the payload area of the first frame according to the type of the first frame.
图5是根据本发明实施例的通道状态的确定装置的可选结构框图三,如图5所示,第三确定单元46包括第一确定子单元52、第二确定子单元54和第三确定子单元56中的至少一个子单元,下面对该第三确定单元46进行说明。5 is a block diagram 3 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 5, the third determining unit 46 includes a first determining subunit 52, a second determining subunit 54, and a third determining. At least one of the subunits 56, the third determining unit 46 is described below.
第一确定子单元52,设置为当第一帧的类型为AU-4时,对第一帧进行解析以获取第一帧中的管理单元指针AU-PTR的位置;确定AU-PTR的位置为第一帧的净荷区域的位置;第二确定子单元54,设置为当第一帧的类型为TU-3时,对第一帧进行解析以获取第一帧中的VC-3的位置;确定VC-3的位置为第一帧的净荷区域的位置;第三确定子单元56,设置为当第一帧的类型为TU-12时,对第一帧进行解析以获取第一帧中的VC-12的位置;确定VC-12的位置为第一帧的净荷区域的位置。The first determining sub-unit 52 is configured to parse the first frame to obtain the position of the management unit pointer AU-PTR in the first frame when the type of the first frame is AU-4; determine the position of the AU-PTR as The location of the payload area of the first frame; the second determining sub-unit 54 is configured to parse the first frame to obtain the location of the VC-3 in the first frame when the type of the first frame is TU-3; Determining the location of the VC-3 as the location of the payload area of the first frame; the third determining sub-unit 56 is configured to parse the first frame to obtain the first frame when the type of the first frame is TU-12 The location of the VC-12; determine the location of the VC-12 as the location of the payload area of the first frame.
可选的,该装置除了包括图2所示的所有模块外,还包括第四确定模块62,下面对该装置进行说明。Optionally, the device includes a fourth determining module 62 in addition to all the modules shown in FIG. 2, which will be described below.
图6是根据本发明实施例的通道状态的确定装置的优选结构框图四,如图6所示,该装置除了包括图2所示的所有模块外,还包括第四确定模块62,下面对该装置进行说明。6 is a block diagram of a preferred structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes a fourth determining module 62 in addition to all the modules shown in FIG. The device is described.
第四确定模块62,连接至比较模块22,包括第四确定单元64和第五确定单元66,用于当当前传输帧为OTU帧时,通过第四确定单元64和第五确定单元66确定第一帧的净荷区域的位置,下面对第四确定模块62进行说明。The fourth determining module 62 is connected to the comparing module 22, and includes a fourth determining unit 64 and a fifth determining unit 66, configured to determine, by the fourth determining unit 64 and the fifth determining unit 66, when the current transmission frame is an OTU frame. The position of the payload area of one frame, the fourth determination module 62 will be described below.
第四确定单元64,用于确定第一帧的映射类型;第五确定单元66,连接至第四确定单元64,用于根据第一帧的映射类型确定第一帧的净荷区域的位置。
The fourth determining unit 64 is configured to determine a mapping type of the first frame, and the fifth determining unit 66 is connected to the fourth determining unit 64, configured to determine a location of the payload area of the first frame according to the mapping type of the first frame.
图7是根据本发明实施例的通道状态的确定装置的可选结构框图五,如图7所示,该第五确定单元66包括定位子单元72和第四确定子单元74,下面对该第五确定单元66进行说明。7 is a block diagram 5 of an optional structure of a channel state determining apparatus according to an embodiment of the present invention. As shown in FIG. 7, the fifth determining unit 66 includes a positioning subunit 72 and a fourth determining subunit 74. The fifth determining unit 66 will be described.
定位子单元72,用于当第一帧的映射类型为同步映射时,根据字节计数定位第一帧的净荷区域的位置;第四确定子单元74,用于当第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定第一帧的净荷区域的位置。The positioning sub-unit 72 is configured to: when the mapping type of the first frame is a synchronization mapping, locate the location of the payload area of the first frame according to the byte count; and the fourth determining sub-unit 74 is configured to use the mapping type of the first frame. For asynchronous mapping, the position of the payload area of the first frame is determined according to the positive adjustment byte and the negative adjustment byte.
可选的,该装置除了包括图2所示的所有模块外,还包括第五确定模块,连接至比较模块22,设置为当当前传输帧为OTU帧时,根据当前传输帧中的帧定位开销字段中的指针确定所述第一帧的净荷区域的位置。Optionally, the device includes a fifth determining module, which is connected to the comparing module 22, and is configured to set a frame positioning overhead according to the current transmission frame when the current transmission frame is an OTU frame, in addition to all the modules shown in FIG. A pointer in the field determines the location of the payload area of the first frame.
下面给出本发明通道状态的确定方法及装置的优选实施例。Preferred embodiments of the method and apparatus for determining the channel state of the present invention are given below.
实施例一 Embodiment 1
本发明实施例一为克服相关技术中存在的传输通道使用情况运营商难以掌握,造成通道浪费的问题和缺陷,提供了一种检测通道使用情况的方法和装置(即上述通道状态的确定方法及装置)。 Embodiment 1 of the present invention provides a method and device for detecting channel usage, which is a method and device for detecting channel usage, which overcomes the problem that the carrier is difficult to grasp and causes channel waste to be used in the related art. Device).
本发明实施例一采用以下技术方案: Embodiment 1 of the present invention adopts the following technical solutions:
图8是根据本发明实施例一的检测通道使用情况的装置的结构框图,如图8所示,该装置可以包括接收模块82(相当于上述实施例中的第二确定模块32)、净荷定位模块84(相当于上述实施例中第三确定模块42和/或第四确定模块62)、净荷存储模块86和净荷比较模块88(相当于上述实施例中比较模块22和第一确定模块24)以下模块:FIG. 8 is a structural block diagram of an apparatus for detecting a channel usage according to a first embodiment of the present invention. As shown in FIG. 8, the apparatus may include a receiving module 82 (corresponding to the second determining module 32 in the foregoing embodiment), and a payload. The positioning module 84 (corresponding to the third determining module 42 and/or the fourth determining module 62 in the above embodiment), the payload storage module 86 and the payload comparison module 88 (corresponding to the comparison module 22 and the first determination in the above embodiment) Module 24) The following modules:
接收模块82:设置为对当前传输帧进行定帧,解复用,解扰等;The receiving module 82 is configured to: frame, demultiplex, descramble, etc. the current transmission frame;
净荷定位模块84:连接至接收模块82,设置为解析开销信息,定位净荷在通道中的位置;The payload location module 84 is connected to the receiving module 82, configured to parse the overhead information, and locate the location of the payload in the channel;
净荷存储模块86:连接至净荷定位模块84,设置为将解析出的净荷部分存入随机存取存储器(RAM,Random Access Memory)中;The payload storage module 86 is connected to the payload positioning module 84 and configured to store the parsed payload portion in a random access memory (RAM).
净荷比较模块88:连接至RAM和净荷定位模块84,设置为从RAM中
读取上一帧当中的净荷与当前帧数据进行比较,如果比较结果相同,判断为当前通道中未承载业务;如果比较结果不同,判断为当前通道中承载业务。Payload comparison module 88: connected to RAM and payload location module 84, set to RAM
The payload in the previous frame is compared with the current frame data. If the comparison result is the same, it is determined that the current channel does not carry the service; if the comparison result is different, it is determined that the current channel carries the service.
基于图8给出的检测通道使用情况的装置,图9是根据本发明实施例一的检测通道使用情况的方法的流程图,如图9所示,本发明实施例一检测传输通道使用情况的方法包括以下步骤:FIG. 9 is a flowchart of a method for detecting a channel usage according to the embodiment of the present invention. FIG. 9 is a flowchart of detecting a usage of a transmission channel according to Embodiment 1 of the present invention. The method includes the following steps:
步骤S802:接收模块82根据块状帧中的帧定位开销找到帧的起始位置,从而确定帧中每一个字节的位置。Step S802: The receiving module 82 finds the starting position of the frame according to the frame positioning overhead in the block frame, thereby determining the position of each byte in the frame.
步骤S804:在净荷定位模块84中,根据开销字节,解析出净荷在通道中的具体位置。Step S804: In the payload positioning module 84, the specific location of the payload in the channel is parsed according to the overhead byte.
步骤S806:净荷存储模块86将提取到的净荷根据字节顺序存储到RAM中。Step S806: The payload storage module 86 stores the extracted payload in the byte order according to the byte order.
步骤S808:净荷比较模块88将当前帧中的净荷字节与RAM中存储的上一帧字节进行比较,输出比较结果。如果比较结果相同,判断为当前通道中未承载业务,并将结果送给CPU模块,提示当前通道未装载数据;如果比较结果不同,再根据实际情况进行判断。Step S808: The payload comparison module 88 compares the payload byte in the current frame with the previous frame byte stored in the RAM, and outputs a comparison result. If the comparison result is the same, it is determined that the service is not carried in the current channel, and the result is sent to the CPU module, indicating that the current channel is not loaded with data; if the comparison result is different, then the judgment is made according to the actual situation.
有益效果:采用本发明实施例一的方法和装置,与相关技术相比,达到了让运营商更好地掌握通道使用情况的效果,节省了运营成本,提高了通道的使用效率。Advantageous Effects: Compared with the related technologies, the method and apparatus of the first embodiment of the present invention achieve the effect of allowing the operator to better grasp the channel usage, save operating costs, and improve the channel utilization efficiency.
实施例二 Embodiment 2
本发明实施例二就SDH通道的使用情况进行确定。In the second embodiment of the present invention, the use of the SDH channel is determined.
图10是根据本发明实施例二的SDH通道的使用情况的确定装置的结构框图,如图10所示,本发明实施例二中该装置包括:SDH接收模块92,AU-4指针解析模块942,VC-4数据存储模块962,VC-4数据存储模块982,TU-3指针解析模块944,VC-3数据存储模块964,VC-3数据比较模块984,TU-12指针解析模块946,VC-12数据存储模块966,VC-12数据比较模块986。其中,SDH接收模块92包括定帧单元、解复用单元、解扰单元。FIG. 10 is a structural block diagram of a device for determining the usage of an SDH channel according to Embodiment 2 of the present invention. As shown in FIG. 10, in the second embodiment of the present invention, the device includes: an SDH receiving module 92, and an AU-4 pointer parsing module 942. , VC-4 data storage module 962, VC-4 data storage module 982, TU-3 pointer parsing module 944, VC-3 data storage module 964, VC-3 data comparison module 984, TU-12 pointer parsing module 946, VC -12 data storage module 966, VC-12 data comparison module 986. The SDH receiving module 92 includes a framing unit, a demultiplexing unit, and a descrambling unit.
根据图9所示的装置,本发明实施例二的SDH通道的使用情况的确定方
法的流程如下:According to the apparatus shown in FIG. 9, the determining side of the use condition of the SDH channel of the second embodiment of the present invention
The process of the law is as follows:
STM-N帧进入本发明实施例二的装置之后,首先进入SDH接收模块92的定帧单元。定帧单元根据STM-N帧中的A1、A2字段确定STM-N帧头的位置,即A1、A2字段开始的位置即为STM-N帧头的位置。A1、A2有固定的值,也就是有固定的比特图案,A1:11110110(f6H),A2:00101000(28H)。检测信号流中的每一个字节,当发现连续出现3N个f6H,又紧跟着出现3N个28H字节时(在STM-1帧中A1和A2字节各有3个),就断定现在开始收到一个STM-N帧,收端通过定位每个STM-N帧的起点,来区分不同的STM-N帧,以达到分离不同帧的目的,当N=1时,区分的是STM-1帧。在此定帧单元中将产生fp信号与最后一个A1字节对齐,作为后面解复用单元帧头的指示。After the STM-N frame enters the apparatus of the second embodiment of the present invention, it first enters the framing unit of the SDH receiving module 92. The framing unit determines the position of the STM-N frame header according to the A1 and A2 fields in the STM-N frame, that is, the position where the A1 and A2 fields start is the position of the STM-N frame header. A1 and A2 have fixed values, that is, there are fixed bit patterns, A1:11110110 (f6H), A2:00101000 (28H). Detecting every byte in the signal stream, when it is found that 3N f6Hs appear consecutively, followed by 3N 28H bytes (3 in each of the A1 and A2 bytes in the STM-1 frame), it is determined that now At the beginning, an STM-N frame is received, and the receiving end distinguishes different STM-N frames by locating the starting point of each STM-N frame to achieve the purpose of separating different frames. When N=1, the STM- is distinguished. 1 frame. The resulting fp signal is aligned with the last A1 byte in this framing unit as an indication of the header of the subsequent demultiplexing unit.
然后经定帧单元处理后的信号流将进入解复用单元。图11是STM-N帧的帧结构示意图,如图11可知,STM-N帧的信号是9行×270×N列的帧结构。此处的N与STM-N的N相一致,取值范围:1,4,16,64……,表示此信号由N个STM-1信号通过字节间插复用而成。由此可知,STM-1信号的帧结构是9行×270列的块状帧,由图11看出,当N个STM-1信号通过字节间插复用成STM-N信号时,仅仅是将STM-1信号的列按字节间插复用,行数恒定为9行。在解复用单元中STM-N帧将被解复用为N个STM-1帧,在后面解扰单元中分别被处理。The signal stream processed by the framing unit will then enter the demultiplexing unit. FIG. 11 is a schematic diagram showing the frame structure of an STM-N frame. As shown in FIG. 11, the signal of the STM-N frame is a frame structure of 9 rows×270×N columns. Here, N is consistent with the N phase of STM-N, and the value range is 1, 4, 16, 64..., indicating that the signal is formed by interleaving multiplexing of N STM-1 signals. It can be seen that the frame structure of the STM-1 signal is a block frame of 9 rows × 270 columns. As seen from FIG. 11, when N STM-1 signals are inter-multiplexed into STM-N signals by byte interleaving, only The column of the STM-1 signal is inter-multiplexed by byte, and the number of lines is constant to 9 lines. The STM-N frames in the demultiplexing unit will be demultiplexed into N STM-1 frames, which are processed separately in the subsequent descrambling unit.
接着经解复用单元处理过的信号流进入解扰单元,在SDH中,在发端采用扰码是为了防止信号在传输中出现长连“0”或长连“1”,易于收端从信号中提取定时信息。因此在收端需要对信号进行解扰码。国际电信联盟远程通信标准化组织(ITU-T,International Telegraph and Telephone Consultative Committee)规范了对不归零码(NRZ,Non-Return to Zero)码的加扰方式,采用标准的7级扰码器,扰码生成多项式为1+X6+X7,扰码序列长为27-1=127(位)。这种方式的优点是:码型最简单,不增加线路信号速率,没有光功率代价,无需编码,发端需一个扰码器即可,收端采用同样标准的解扰器即可接收发端业务,实现多厂家设备环境的光路互连。解扰单元将对除第一行以外的所有字节进行解扰。
Then, the signal stream processed by the demultiplexing unit enters the descrambling unit. In the SDH, the scrambling code is used at the origin to prevent the signal from appearing in the transmission with a long connection “0” or a long connection “1”, which is easy to receive the signal from the signal. Extract timing information. Therefore, the signal needs to be descrambled at the receiving end. The International Telegraph and Telephone Consultative Committee (ITU-T) regulates the scrambling of non-return-to-zero (NRZ) codes using a standard level 7 scrambler. The scrambling code generator polynomial is 1+X6+X7, and the scrambling code sequence length is 27-1=127 (bit). The advantage of this method is that the pattern is the simplest, does not increase the line signal rate, has no optical power penalty, does not require encoding, the originator needs a scrambler, and the receiving end uses the same standard descrambler to receive the originating service. Achieve optical path interconnection in a multi-vendor equipment environment. The descrambling unit will descramble all bytes except the first line.
接着经解扰单元处理后的信号进入AU-4指针解析模块942,管理指针单元(Administration unit-Pointer,简称为AU-PTR)的位置在STM-1帧的第4行1-9列,共9个字节,用以指示VC-4的首字节J1在AU-4净负荷的具体位置,以便收端能据此正确分离VC-4。此AU-4指针解析模块942根据STM-N帧中的H1、H2指针计算出VC-4在AU-4中的具体位置,并产生pl_au4信号提供给VC-4数据存储模块962用以指示VC-4净荷的位置。图12是SDH通道中SDH复用帧映射结构图,如图12所示,在一个VC-4数据中,可能承载的是VC-4数据,也可能承载着3个VC-3数据,或者63个VC-12数据。AU-4指针解析模块942会同时提取出H4字节,如果后面的TU-12指针解析模块946需要对TU-12进行分析,需要H4字节提供复帧编号。Then, the signal processed by the descrambling unit enters the AU-4 pointer parsing module 942, and the location of the management unit-pointer (AU-PTR) is in the 4th row and the 1st column of the STM-1 frame. 9 bytes, indicating that the first byte J1 of VC-4 is at the specific location of the AU-4 payload, so that the receiving end can correctly separate the VC-4 accordingly. The AU-4 pointer parsing module 942 calculates the specific location of the VC-4 in the AU-4 according to the H1 and H2 pointers in the STM-N frame, and generates a pl_au4 signal for the VC-4 data storage module 962 to indicate VC. -4 location of the payload. 12 is a SDH multiplex frame mapping structure diagram in the SDH channel. As shown in FIG. 12, in a VC-4 data, VC-4 data may be carried, or three VC-3 data may be carried, or 63 VC-12 data. The AU-4 pointer parsing module 942 extracts the H4 byte at the same time. If the subsequent TU-12 pointer parsing module 946 needs to analyze the TU-12, the H4 byte is required to provide the multiframe number.
随后,经AU-4指针解析模块942处理过的信号进入VC-4存储模块962后,根据AU-4指针解析模块942提供的pl_au4信号,将VC-4的净荷写入随机存取存储器(Random Access Memory,简称为RAM)1中,RAM1采用分页的方式控制,两个页面分别交替做读写操作,当一个页面进行写操作时,另一个页面进行读操作。这个RAM1以及之后模块中用到的RAM2、RAM3,可以使用现场可编程门阵列(Field-Programmable Gate Array,简称为FPGA)内部的RAM,也可以使用外部的同步静态随机存取存储器(Synchronous Static Random Access Memory,简称为SSRAM)、同步动态随机存储器(Synchronous Dynamic Random Access Memory,简称为SDRAM)等外部RAM。Then, after the signal processed by the AU-4 pointer parsing module 942 enters the VC-4 storage module 962, the payload of the VC-4 is written into the random access memory according to the pl_au4 signal provided by the AU-4 pointer parsing module 942 ( Random Access Memory (referred to as RAM)1, RAM1 is controlled by paging, and two pages are alternately read and written. When one page is written, the other page is read. This RAM1 and the RAM2 and RAM3 used in the subsequent modules can use the internal RAM of the Field-Programmable Gate Array (FPGA) or the external synchronous static random access memory (Synchronous Static Random External RAM such as Access Memory (SSRAM) and Synchronous Dynamic Random Access Memory (SDRAM).
然后在VC-4数据比较模块982将从RAM1中读取出上一帧的VC-4数据,将这个数据与当前数据进行比较。如果比较结果相同,表示当前通道承载的是VC-4颗粒,并且VC-4颗粒中并未承载有效数据。此时产生指示信号送给CPU模块,指示出VC-4未承载有效数据。如果比较结果不同,说明当前通道可能承载的是TU-3或TU-12颗粒,或VC-4颗粒中已承载有效数据。将进一步对数据进行处理。The VC-4 data comparison module 982 then reads the VC-4 data of the previous frame from the RAM 1 and compares this data with the current data. If the comparison results are the same, it means that the current channel carries VC-4 particles, and the VC-4 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-4 does not carry valid data. If the comparison results are different, it indicates that the current channel may carry TU-3 or TU-12 particles, or the VC-4 particles have carried valid data. The data will be further processed.
接下来需要对低阶通道的数据进行分析,首先将进入TU-3指针解析模块944。在VC-3的帧上加了3个字节(H1、H2、H3)的指针--TU-3支路单元指针(Tributary Unit 3Pointer),简称为TU-3指针偏移范围为0~764,如
果解析出的指针大于764,则认为提取到无效的TU-3指针,说明装载的可能是TU-12的颗粒,则直接进行TU-12的指针解析。如果提取到有效指针,TU-3指针解析模块944将根据TU-3指针解析出VC-3的具体位置。并产生pl_tu3信号提供给VC-3数据存储模块964用以指示VC-3净荷的位置。Next, the data of the lower-order channel needs to be analyzed, and the TU-3 pointer parsing module 944 is first entered. A pointer of 3 bytes (H1, H2, H3) is added to the frame of VC-3 - TU-3 tributary unit pointer (Tributary Unit 3 Pointer), which is abbreviated as TU-3 pointer offset range of 0 to 764. ,Such as
If the parsed pointer is greater than 764, it is considered that the invalid TU-3 pointer is extracted, indicating that the TU-12 particle may be loaded, and the pointer resolution of the TU-12 is directly performed. If a valid pointer is extracted, the TU-3 pointer parsing module 944 will parse out the specific location of the VC-3 based on the TU-3 pointer. And generating a pl_tu3 signal is provided to the VC-3 data storage module 964 to indicate the location of the VC-3 payload.
VC-3数据存储模块964根据TU-3指针解析模块944中提供的pl_tu3信号,将VC-3的净荷写入RAM2中,RAM2采用分页的方式控制,两个页面分别交替做读写操作,当一个页面进行写操作时,另一个页面进行读操作。The VC-3 data storage module 964 writes the payload of the VC-3 into the RAM 2 according to the pl_tu3 signal provided in the TU-3 pointer parsing module 944, and the RAM 2 is controlled by paging, and the two pages are alternately read and written. When one page is written, the other page is read.
之后,在VC-3数据比较模块984中,VC-3数据比较模块984将从RAM2中读取出上一帧的VC-3数据,将这个数据与当前数据进行比较。如果比较结果相同,表示当前通道承载的是VC-3颗粒,并且VC-3颗粒中并未承载有效数据。此时产生指示信号送给CPU模块,指示出VC-3未承载有效数据。如果比较结果不同,说明VC-3颗粒中已承载有效数据。Thereafter, in the VC-3 data comparison module 984, the VC-3 data comparison module 984 reads the VC-3 data of the previous frame from the RAM 2 and compares this data with the current data. If the comparison results are the same, it means that the current channel carries VC-3 particles, and the VC-3 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-3 does not carry valid data. If the comparison results are different, it indicates that valid data has been carried in the VC-3 particles.
如果需要对TU-12的指针进行解析,则进入TU-12指针解析模块946。STM-N帧中的TU指针(指示TU-12净荷区域的位置)用以指示VC-12的首字节V5在TU-12净负荷中的具体位置,以便收端能正确分离出VC12。TU-12指针为VC12在TU-12复帧内的定位提供了灵活动态的方法。TU-PTR的位置位于TU-12复帧的V1、V2、V3、V4处。TU-12指针解析模块946根据指针值解析出VC-12的净荷。并产生pl_tu12信号提供给VC-12数据存储模块966用以指示VC-12净荷的位置。If the pointer of the TU-12 needs to be parsed, the TU-12 pointer parsing module 946 is entered. The TU pointer in the STM-N frame (indicating the location of the TU-12 payload area) is used to indicate the specific location of the first byte V5 of the VC-12 in the TU-12 payload so that the receiving end can correctly separate the VC12. The TU-12 pointer provides a flexible and dynamic method for the positioning of VC12 within the TU-12 multiframe. The position of the TU-PTR is located at V1, V2, V3, and V4 of the TU-12 multiframe. The TU-12 pointer parsing module 946 parses out the payload of the VC-12 based on the pointer value. And generating a pl_tu12 signal is provided to the VC-12 data storage module 966 to indicate the location of the VC-12 payload.
VC-12数据存储模块966根据TU-12指针解析模块946中提供的pl_tu12信号,将VC-12的净荷写入RAM3中,RAM3采用分页的方式控制,两个页面分别交替做读写操作,当一个页面进行写操作时,另一个页面进行读操作。The VC-12 data storage module 966 writes the payload of the VC-12 into the RAM3 according to the pl_tu12 signal provided by the TU-12 pointer parsing module 946, and the RAM3 is controlled by paging, and the two pages are alternately read and written. When one page is written, the other page is read.
在VC-12数据比较模块986中,VC-12数据比较模块986将从RAM3中读取出上一帧的VC-12数据,将这个数据与当前数据进行比较。如果比较结果相同,表示当前通道承载的是VC-12颗粒,并且VC-12颗粒中并未承载有效数据。此时产生指示信号送给CPU模块,指示出VC-12未承载有效数据。如果比较结果不同,说明VC-12颗粒中已承载有效数据。
In the VC-12 data comparison module 986, the VC-12 data comparison module 986 will read the VC-12 data of the previous frame from the RAM 3 and compare this data with the current data. If the comparison result is the same, it means that the current channel carries VC-12 particles, and the VC-12 particles do not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the VC-12 does not carry valid data. If the comparison results are different, it indicates that valid data has been carried in the VC-12 particles.
实施例三 Embodiment 3
本发明实施例三以OTN传输通道为例,对OTN传输通道的使用情况的方法和装置进行说明。In the third embodiment of the present invention, an OTN transmission channel is taken as an example to describe a method and an apparatus for using an OTN transmission channel.
图13是根据本发明实施例三的OTN通道的使用情况的确定装置的结构框图,如图13所示,该实施例三的装置包括:OTU帧接收模块122、OPU定位模块124、OPU存储模块126和OPU比较模块128,下面的对该装置进行说明。FIG. 13 is a structural block diagram of a device for determining the usage of an OTN channel according to Embodiment 3 of the present invention. As shown in FIG. 13, the device of the third embodiment includes: an OTU frame receiving module 122, an OPU positioning module 124, and an OPU storage module. 126 and OPU comparison module 128, the device will be described below.
OTU帧接收模块122,包括定帧单元,设置为对OTU帧进行接收、定帧;The OTU frame receiving module 122 includes a framing unit configured to receive and frame the OTU frame.
OPU定位模块124,连接至OTU帧接收模块122,设置为对OPU帧的净荷位置进行定位;The OPU positioning module 124 is connected to the OTU frame receiving module 122 and configured to locate the payload location of the OPU frame.
OPU存储模块126,连接至OPU定位模块124和RAM,设置为将OPU帧中的净荷数据存储到RAM中;The OPU storage module 126 is connected to the OPU positioning module 124 and the RAM, and is configured to store the payload data in the OPU frame into the RAM;
OPU比较模块128,连接至OPU定位模块124和OPU存储模块126,设置为将从RAM中读取出上一帧的净荷数据,将这个数据与当前数据进行比较,如果比较结果相同,表示当前通道并未承载有效数据。此时产生指示信号送给CPU模块,指示出通道未承载有效数据。如果比较结果不同,说明当前通道中已承载有效数据。The OPU comparison module 128 is connected to the OPU positioning module 124 and the OPU storage module 126, and is configured to read the payload data of the previous frame from the RAM, compare the data with the current data, and if the comparison result is the same, the current The channel does not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the channel does not carry valid data. If the comparison result is different, it indicates that valid data has been carried in the current channel.
根据图13所示的OTN通道的使用情况的确定装置,本发明实施例三的OTN通道使用情况的确定方法的流程如下:According to the apparatus for determining the usage of the OTN channel shown in FIG. 13, the flow of the method for determining the usage of the OTN channel in the third embodiment of the present invention is as follows:
OTU帧进入本发明实施例三的装置之后,首先进入OTU帧接收模块122的定帧单元。定帧单元根据帧定位开销字节确定帧头的位置。图14是OTN帧结构示意图(G.709帧),OTN帧中的OA1、OA2字段用于确定OTN帧头的位置,即OA1、OA2字段开始的位置即为OTN帧头的位置。OA1、OA2有固定的值,也就是有固定的比特图案,OA1:11110110(f 6H),OA2:00101000(28H)。检测信号流中的每一个字节,当发现连续出现3个f6H,又紧跟着出现3个28H字节时,就断定现在开始收到一个帧,收端通过定位每个帧的起点,来区分不同的帧,以达到分离不同帧的目的,在此模块中将产生fp信号与最后一个A1字节对齐,作为后面OPU定位模块124帧头的
指示。After the OTU frame enters the apparatus of the third embodiment of the present invention, it first enters the framing unit of the OTU frame receiving module 122. The framing unit determines the position of the frame header based on the frame positioning overhead byte. 14 is a schematic diagram of an OTN frame structure (G.709 frame). The OA1 and OA2 fields in the OTN frame are used to determine the position of the OTN frame header, that is, the position where the OA1 and OA2 fields start is the position of the OTN frame header. OA1, OA2 have fixed values, that is, there are fixed bit patterns, OA1:11110110 (f 6H), OA2:00101000 (28H). Detecting every byte in the signal stream, when it is found that three f6Hs appear consecutively, followed by three 28H bytes, it is determined that a frame is now received, and the receiving end locates the starting point of each frame. Different frames are distinguished to achieve the purpose of separating different frames. In this module, the generated fp signal is aligned with the last A1 byte as the frame header of the subsequent OPU positioning module 124.
Instructions.
接着经OTU帧接收模块122处理过的信号进入OPU定位模块124,OPU定位模块124根据OUT帧中的JC字节判断是同步映射还是异步映射,如果是同步映射直接根据字节计数定位出净荷的位置,如果采用异步映射,则根据正调整字节和负调整字节算出净荷位置,产生pl信号送给净荷存储模块。The signal processed by the OTU frame receiving module 122 then enters the OPU positioning module 124. The OPU positioning module 124 determines whether it is a synchronous mapping or an asynchronous mapping according to the JC byte in the OUT frame. If the synchronization mapping directly locates the payload according to the byte count. The position, if asynchronous mapping is used, the payload position is calculated based on the positive adjustment byte and the negative adjustment byte, and a pl signal is generated and sent to the payload storage module.
经过OPU定位模块124处理过的信号进入OPU存储模块126后,OPU存储模块126根据OPU1定位模块124提供的pl信号,将净荷写入RAM中,RAM采用分页的方式控制,两个页面分别交替做读写操作,当一个页面进行写操作时,另一个页面进行读操作。这个RAM以及之后模块中用到的RAM可以使用FPAG内部的RAM,也可以使用外部的SSRAM,SDRAM等外部RAM。After the signal processed by the OPU positioning module 124 enters the OPU storage module 126, the OPU storage module 126 writes the payload into the RAM according to the pl signal provided by the OPU1 positioning module 124, and the RAM is controlled by paging, and the two pages are alternately replaced. Do read and write operations, when one page is written, another page is read. This RAM and the RAM used in the subsequent modules can use the internal RAM of the FPAG, or an external RAM such as an external SSRAM or SDRAM.
然后,在OPU比较模块128中,OPU比较模块128将从RAM中读取出上一帧的净荷数据,将这个数据与当前数据进行比较。如果比较结果相同,表示当前通道并未承载有效数据。此时产生指示信号送给CPU模块,指示出通道未承载有效数据。如果比较结果不同,说明当前通道中已承载有效数据。图15是OTN复用映射结构图。Then, in the OPU comparison module 128, the OPU comparison module 128 reads the payload data of the previous frame from the RAM and compares this data with the current data. If the comparison result is the same, it means that the current channel does not carry valid data. At this time, an indication signal is generated and sent to the CPU module, indicating that the channel does not carry valid data. If the comparison result is different, it indicates that valid data has been carried in the current channel. Figure 15 is a diagram showing the structure of an OTN multiplexing map.
需要说明的是,上述每一个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the foregoing modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,将当前传输帧中的第一帧的净荷区域的净荷数据与距离当前传输帧最近的上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,第一帧在当前传输帧中的位置与第二帧在上一传输帧中的位置相对应;S1, comparing the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame that is closest to the current transmission frame, where The position of the frame in the current transmission frame corresponds to the position of the second frame in the previous transmission frame;
S2,在比较结果为第一帧的净荷区域的净荷数据与第二帧的净荷区域的净荷数据相同的情况下,确定用于传输第一帧的通道的状态为未承载业务。S2. In a case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, the state of the channel for transmitting the first frame is determined to be un-beared traffic.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、RAM、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a U disk, a Read-Only Memory (ROM), a RAM, a mobile hard disk, a magnetic disk, or an optical disk, and the like. The medium of the program code.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述S1-S2。Optionally, in the embodiment, the processor executes the above-mentioned S1-S2 according to the stored program code in the storage medium.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
上述技术方案准确地获知了通道的使用情况,从而减少了通道的浪费,进而提高了通道的使用效率,节省了运营成本。
The above technical solution accurately knows the use of the channel, thereby reducing the waste of the channel, thereby improving the use efficiency of the channel and saving operating costs.
Claims (14)
- 一种通道状态的确定方法,包括:A method for determining a channel status includes:将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,所述第一帧在所述当前传输帧中的位置与所述第二帧在所述上一传输帧中的位置相对应;Comparing the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, wherein the last transmission frame is the closest to the current transmission frame a transmission frame, a position of the first frame in the current transmission frame and a position of the second frame in the previous transmission frame;在比较结果为所述第一帧的净荷区域的净荷数据与所述第二帧的净荷区域的净荷数据相同的情况下,确定用于传输所述第一帧的通道的状态为未承载业务状态。In a case where the comparison result is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame, determining that the state of the channel for transmitting the first frame is The business status is not carried.
- 根据权利要求1所述的方法,所述方法还包括,The method of claim 1 further comprising当所述当前传输帧为同步传输模块N级STM-N帧时,通过如下方式确定所述第一帧:When the current transmission frame is a synchronous transmission module N-level STM-N frame, the first frame is determined by:将所述STM-N帧解复用为N个STM-1帧;Demultiplexing the STM-N frame into N STM-1 frames;确定所述N个STM-1帧中的一个STM-1帧为所述第一帧。Determining one of the N STM-1 frames as the first frame.
- 根据权利要求2所述的方法,所述方法还包括,通过如下方式确定所述第一帧的净荷区域的位置:The method of claim 2, the method further comprising determining a location of a payload area of the first frame by:确定所述第一帧的类型;Determining the type of the first frame;根据所述第一帧的类型确定所述第一帧的净荷区域的位置。Determining a location of a payload area of the first frame according to a type of the first frame.
- 根据权利要求3所述的方法,其中,根据所述第一帧的类型确定所述第一帧的净荷区域的位置包括以下至少一种方法:The method according to claim 3, wherein determining the location of the payload area of the first frame according to the type of the first frame comprises at least one of the following methods:当所述第一帧的类型为四阶管理单元AU-4时,对所述第一帧进行解析以获取所述第一帧中的管理单元指针AU-PTR的位置;确定所述AU-PTR的位置为所述第一帧的净荷区域的位置;When the type of the first frame is the fourth-order management unit AU-4, parsing the first frame to obtain a location of the management unit pointer AU-PTR in the first frame; determining the AU-PTR The location is the location of the payload area of the first frame;当所述第一帧的类型为三阶支路单元TU-3时,对所述第一帧进行解析以获取所述第一帧中的三阶虚容器VC-3的位置;确定所述VC-3的位置为所述第一帧的净荷区域的位置; When the type of the first frame is the third-order tributary unit TU-3, parsing the first frame to obtain a position of the third-order virtual container VC-3 in the first frame; determining the VC The position of -3 is the location of the payload area of the first frame;当所述第一帧的类型为十二阶支路单元TU-12时,对所述第一帧进行解析以获取所述第一帧中的十二阶虚容器VC-12的位置;确定所述VC-12的位置为所述第一帧的净荷区域的位置。When the type of the first frame is a 12th-order tributary unit TU-12, the first frame is parsed to obtain a position of the 12th-order virtual container VC-12 in the first frame; The location of VC-12 is the location of the payload area of the first frame.
- 根据权利要求1所述的方法,所述方法还包括,当所述当前传输帧为OTU帧时,通过如下方式确定所述第一帧的净荷区域的位置:The method according to claim 1, further comprising determining a location of a payload area of the first frame when the current transmission frame is an OTU frame:确定所述第一帧的映射类型;Determining a mapping type of the first frame;根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置。Determining a location of a payload area of the first frame according to a mapping type of the first frame.
- 根据权利要求5所述的方法,其中,根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置包括:The method according to claim 5, wherein determining the location of the payload area of the first frame according to the mapping type of the first frame comprises:当所述第一帧的映射类型为同步映射时,根据字节计数定位所述第一帧的净荷区域的位置;When the mapping type of the first frame is a synchronization mapping, locate a location of a payload area of the first frame according to a byte count;当所述第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定所述第一帧的净荷区域的位置。When the mapping type of the first frame is an asynchronous mapping, the location of the payload area of the first frame is determined according to the positive adjustment byte and the negative adjustment byte.
- 根据权利要求1所述的方法,所述方法还包括,The method of claim 1 further comprising当所述当前传输帧为光转换单元OTU帧时,根据当前传输帧中的帧定位开销字段中的指针确定所述第一帧的净荷区域的位置。When the current transmission frame is an optical conversion unit OTU frame, the location of the payload area of the first frame is determined according to a pointer in a frame positioning overhead field in the current transmission frame.
- 一种通道状态的确定装置,包括:A channel status determining device includes:比较模块,设置为将当前传输帧中的第一帧的净荷区域的净荷数据与上一传输帧中的第二帧的净荷区域的净荷数据进行比较,其中,上一传输帧为距离当前传输帧最近的传输帧,所述第一帧在所述当前传输帧中的位置与所述第二帧在所述上一传输帧中的位置相对应;And a comparison module, configured to compare the payload data of the payload area of the first frame in the current transmission frame with the payload data of the payload area of the second frame in the previous transmission frame, where the previous transmission frame is a transmission frame closest to the current transmission frame, the position of the first frame in the current transmission frame and the position of the second frame in the previous transmission frame;第一确定模块,设置为在所述比较模块的比较结果为所述第一帧的净荷区域的净荷数据与所述第二帧的净荷区域的净荷数据相同的情况下,确定用于传输所述第一帧的通道的状态为未承载业务状态。a first determining module, configured to determine, when the comparison result of the comparison module is that the payload data of the payload area of the first frame is the same as the payload data of the payload area of the second frame The state of the channel transmitting the first frame is an un-beared service state.
- 根据权利要求8所述的装置,所述装置还包括,第二确定模块,设置为当所述当前传输帧为同步传输模块N级STM-N帧时,通过如下单元确定所述第一帧: The apparatus according to claim 8, further comprising: a second determining module, configured to determine the first frame by the following unit when the current transmission frame is a synchronous transmission module N-level STM-N frame:第一解复用单元,设置为将所述STM-N帧解复用为N个STM-1帧;a first demultiplexing unit, configured to demultiplex the STM-N frame into N STM-1 frames;第一确定单元,设置为确定所述N个STM-1帧中的一个STM-1帧为所述第一帧。The first determining unit is configured to determine that one of the N STM-1 frames is the first frame.
- 根据权利要求9所述的装置,所述装置还包括,第三确定模块,设置为通过如下单元确定所述第一帧的净荷区域的位置:The apparatus of claim 9, further comprising a third determining module configured to determine a location of a payload area of the first frame by:第二确定单元,设置为确定所述第一帧的类型;a second determining unit, configured to determine a type of the first frame;第三确定单元,设置为根据所述第一帧的类型确定所述第一帧的净荷区域的位置。And a third determining unit, configured to determine a location of the payload area of the first frame according to the type of the first frame.
- 根据权利要求10所述的装置,其中,所述第三确定单元包括以下至少一个子单元:The apparatus of claim 10, wherein the third determining unit comprises at least one of the following subunits:第一确定子单元,设置为当所述第一帧的类型为四阶管理单元AU-4时,对所述第一帧进行解析以获取所述第一帧中的管理单元指针AU-PTR的位置;确定所述AU-PTR的位置为所述第一帧的净荷区域的位置;a first determining subunit, configured to parse the first frame to obtain a management unit pointer AU-PTR in the first frame when the type of the first frame is a fourth-order management unit AU-4 a location; determining a location of the AU-PTR as a location of a payload area of the first frame;第二确定子单元,设置为当所述第一帧的类型为三阶支路单元TU-3时,对所述第一帧进行解析以获取所述第一帧中的三阶虚容器VC-3的位置;确定所述VC-3的位置为所述第一帧的净荷区域的位置;a second determining subunit, configured to: when the type of the first frame is a third-order tributary unit TU-3, parse the first frame to obtain a third-order virtual container VC in the first frame Position of 3; determining a location of the VC-3 as a location of a payload area of the first frame;第三确定子单元,设置为当所述第一帧的类型为十二阶支路单元TU-12时,对所述第一帧进行解析以获取所述第一帧中的十二阶虚容器VC-12的位置;确定所述VC-12的位置为所述第一帧的净荷区域的位置。a third determining subunit, configured to parse the first frame to obtain a twelve-order virtual container in the first frame when the type of the first frame is a twelve-order tributary unit TU-12 The location of the VC-12; determining the location of the VC-12 as the location of the payload area of the first frame.
- 根据权利要求8所述的装置,所述装置还包括,第四确定模块,设置为当所述当前传输帧为OTU帧时,通过如下单元确定所述第一帧的净荷区域的位置:The apparatus according to claim 8, further comprising: a fourth determining module, configured to determine a location of a payload area of the first frame by the following unit when the current transmission frame is an OTU frame:第四确定单元,设置为确定所述第一帧的映射类型;a fourth determining unit, configured to determine a mapping type of the first frame;第五确定单元,设置为根据所述第一帧的映射类型确定所述第一帧的净荷区域的位置。And a fifth determining unit, configured to determine a location of the payload area of the first frame according to a mapping type of the first frame.
- 根据权利要求12所述的装置,其中,所述第五确定单元包括:The apparatus of claim 12, wherein the fifth determining unit comprises:定位子单元,设置为当所述第一帧的映射类型为同步映射时,根据字节 计数定位所述第一帧的净荷区域的位置;a positioning subunit, configured to when the mapping type of the first frame is a synchronization mapping, according to a byte Counting the location of the payload area of the first frame;第四确定子单元,设置为当所述第一帧的映射类型为异步映射时,根据正调整节字节和负调整字节确定所述第一帧的净荷区域的位置。And a fourth determining subunit, configured to determine, when the mapping type of the first frame is an asynchronous mapping, determining a location of the payload area of the first frame according to the positive adjustment byte and the negative adjustment byte.
- 根据权利要求8所述的装置,所述装置还包括,第五确定模块,设置为当所述当前传输帧为OTU帧时,根据当前传输帧中的帧定位开销字段中的指针确定所述第一帧的净荷区域的位置。 The apparatus according to claim 8, further comprising: a fifth determining module, configured to determine, according to a pointer in a frame positioning overhead field in a current transmission frame, when the current transmission frame is an OTU frame The location of the payload area of a frame.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610005054.6A CN106941388B (en) | 2016-01-04 | 2016-01-04 | The determination method and device of channel status |
CN201610005054.6 | 2016-01-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017118042A1 true WO2017118042A1 (en) | 2017-07-13 |
Family
ID=59273069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/096235 WO2017118042A1 (en) | 2016-01-04 | 2016-08-22 | Method and apparatus for determining channel state |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106941388B (en) |
WO (1) | WO2017118042A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412692A (en) * | 2018-10-30 | 2019-03-01 | 中国科学院国家授时中心 | A kind of distribution type fiber-optic time dissemination system and its sagnac effect compensation method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674478A (en) * | 2004-03-23 | 2005-09-28 | 华为技术有限公司 | Method and apparatus for virtual container frame analysis |
CN101291179A (en) * | 2007-04-17 | 2008-10-22 | 华为技术有限公司 | Customer signal transmission method in optical transmitting network and related equipment |
US20100226370A1 (en) * | 2009-03-06 | 2010-09-09 | Hitachi, Ltd. | Network system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798145A (en) * | 2004-12-24 | 2006-07-05 | 华为技术有限公司 | Method for detecting payload carried by frame in synchronous optical network or synchronous digital hierarchy |
US7873732B2 (en) * | 2005-04-28 | 2011-01-18 | International Business Machines Corporation | Maintaining service reliability in a data center using a service level objective provisioning mechanism |
CN101729188B (en) * | 2008-10-14 | 2016-10-05 | 华为技术有限公司 | Send and receive the method for mapping cost, device |
CN101465706A (en) * | 2008-12-29 | 2009-06-24 | 华为技术有限公司 | Transmission method, device and system for synchronous numerical sequence signal |
CN103731223B (en) * | 2012-10-16 | 2016-09-28 | 中兴通讯股份有限公司 | A kind of clock recovery method and device |
-
2016
- 2016-01-04 CN CN201610005054.6A patent/CN106941388B/en active Active
- 2016-08-22 WO PCT/CN2016/096235 patent/WO2017118042A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674478A (en) * | 2004-03-23 | 2005-09-28 | 华为技术有限公司 | Method and apparatus for virtual container frame analysis |
CN101291179A (en) * | 2007-04-17 | 2008-10-22 | 华为技术有限公司 | Customer signal transmission method in optical transmitting network and related equipment |
US20100226370A1 (en) * | 2009-03-06 | 2010-09-09 | Hitachi, Ltd. | Network system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412692A (en) * | 2018-10-30 | 2019-03-01 | 中国科学院国家授时中心 | A kind of distribution type fiber-optic time dissemination system and its sagnac effect compensation method |
CN109412692B (en) * | 2018-10-30 | 2021-05-18 | 中国科学院国家授时中心 | Distributed optical fiber time service system and sagnac effect compensation method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106941388B (en) | 2019-11-29 |
CN106941388A (en) | 2017-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11234055B2 (en) | Service data processing method and apparatus | |
US11233571B2 (en) | Method for processing low-rate service data in optical transport network, apparatus, and system | |
US7106968B2 (en) | Combined SONET/SDH and OTN architecture | |
US7602814B2 (en) | Systems and methods for mapping and multiplexing wider clock tolerance signals in optical transport network transponders and multiplexers | |
US8494363B2 (en) | Signal format conversion apparatus and methods | |
US8699886B2 (en) | Externally synchronized optical transport network systems and associated methods | |
EP4027650A1 (en) | Method and device for service processing in optical transport network, and system | |
US9838109B2 (en) | Method and device for realizing optical channel data unit shared protection ring | |
CN101030827B (en) | Method and apparatus for mapping DTM to OTN | |
US20070264015A1 (en) | Uniform Switching System and Method for Synchronous Optical Network and Optical Transport Network | |
US10931578B2 (en) | Method for processing data in ethernet, device, and system | |
US20240223321A1 (en) | Communication method, related apparatus, and storage medium | |
US7227844B1 (en) | Non-standard concatenation mapping for payloads | |
JP2010206625A (en) | Optical transmission apparatus and optical transmission method | |
WO2017118042A1 (en) | Method and apparatus for determining channel state | |
WO2020051851A1 (en) | Data transmission method and apparatus in optical transport network | |
US9226050B2 (en) | Transmission apparatus and transmission method | |
US8824507B2 (en) | Transmitting apparatus and signal transmitting method | |
JP2002176408A (en) | Multi-frame multiplex transmission device | |
JP2012249028A (en) | Transmission device and data transmission method | |
Dhadwal et al. | SONET/SDH: Review of technology and developments | |
JP6101306B2 (en) | Optical transmission apparatus and optical transmission method | |
Dutta et al. | Grooming mechanisms in SONET/SDH and next-generation SONET/SDH | |
Dhull et al. | Analyzing Bandwidth spectrum in SONET & SDH | |
SECTOR et al. | ITU-Tg. 709/Y. 1331 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16883172 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16883172 Country of ref document: EP Kind code of ref document: A1 |