CN102291294A - Method and device for realizing line card intercommunication of packet over SONET/SDH / Ethernet (POS/ETH) - Google Patents
Method and device for realizing line card intercommunication of packet over SONET/SDH / Ethernet (POS/ETH) Download PDFInfo
- Publication number
- CN102291294A CN102291294A CN201110122410XA CN201110122410A CN102291294A CN 102291294 A CN102291294 A CN 102291294A CN 201110122410X A CN201110122410X A CN 201110122410XA CN 201110122410 A CN201110122410 A CN 201110122410A CN 102291294 A CN102291294 A CN 102291294A
- Authority
- CN
- China
- Prior art keywords
- message
- pos
- packet
- port
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method and a device for realizing the line card intercommunication of a packet over SONET/SDH/Ethernet (POS/ETH), which are applied to the communication field. The method comprises the following steps: after a message is received through a port, the type of the received message is determined by the port which receives the message, and a type identification corresponding to the message type is added into the message; when the message is transmitted internally, the type identification of the message to be transmitted is obtained, whether the message to be transmitted is in a POS format is judged according to the type identification, and if the message to be transmitted is in the POS pattern, the message to be transmitted is refitted into an Ethernet format message and the refitted Ethernet format message is sent to an outlet port through an exchanging network board; and when receiving the message to be sent, the outlet port reads a port forwarding table, and if the outlet port is determined to be the POS format according to the outlet port type recorded in an outlet forwarding table, the message to be sent is refitted into the POS format message. Through the method and the device provided by the invention, such as the port, the transmitting process and the outlet port, the message is refitted so that the intercommunication of POS/ETH is realized.
Description
Technical field
The present invention relates to communication technical field, relate in particular to the method and the device of a kind of POS/ETH of realization ply-yarn drill intercommunication.
Background technology
The POS full name is Packet over SONET/SDH, and the high-speed transfer passage that POS promptly provides by SDH directly transmits the IP grouping.POS is positioned the data backbone network of telecom operation level (carrier scale), and its network mainly is formed by connecting via the high speed fibre transmission channel by jumbo high-end router.
The basic problem that the POS model relates generally to is the encapsulation of data message.SONET/SDH is the agreement of physical layer, is responsible for transparent transmission bit stream on channel; IP is the agreement of network layer, is responsible for packet by addressing that comes from the place and route.According to the OSI seven layer model, also need a link layer protocol between the two, carry out the location and the error correction of frame level.Because being point-to-point transmission channel, SONE/SDH forms, so adopt the agreement of PPP (Chinese and English full name) as link layer.
When the SDH signal being regarded as when forming by low speed signal is multiplexing, these low speed tributary signals just are called passage.Unchannelized then is to use whole STM-N signals, and all data that transmit on an optical fiber belong to same road, have identical sign, and identical starting point and terminal point are obeyed single monitoring strategies.
Growing along with mechanics of communication, variation has also taken place in the edge of network, and the optimization of product and technology causes the core switch of IP, router and backbone network to become and becomes more and more important.On same equipment, possess functions such as multi-service, high-transmission, easy expansion and seem particularly important.This just the isomery problem of POS, ether and other networks occurred, needs to realize the intercommunication of miscellaneous service.If realize the intercommunication of unchannelized POS and Ethernet, need increase FPGA or other chips at the forwarding chip front end of unchannelized POS, this method has increased cost.
Summary of the invention
The invention provides the method and the device of the intercommunication of a kind of POS/ETH of realization ply-yarn drill, be used for solving the forwarding chip front end increase FPGA of prior art unchannelized POS or the problem of other chips.
The embodiment of the invention provides the method for a kind of POS/ETH of realization ply-yarn drill intercommunication, comprising:
After port receives message, determine to receive type of message according to the port that receives message, and the type identification of type of message correspondence is added in the message;
When inside E-Packets, obtain type identification to be E-Packeted, judge the described POS form of whether waiting to E-Packet according to described type identification, if, then with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port;
During message to be sent that outbound port is received, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
Also provide the device of a kind of POS/ETH of realization ply-yarn drill intercommunication according to said method the present invention, this device comprises:
Receiver module after being used to receive message, is determined to receive type of message according to the port that receives message, and the type identification of type of message correspondence is added in the message;
Inner forwarding module, when being used to E-Packet, obtain type identification to be E-Packeted, judge the described POS form of whether waiting to E-Packet according to described type identification, if, then with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port;
Sending module, during the message to be sent that is used to receive, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
The method and apparatus that the embodiment of the invention provided is adapted as unified format by forwarding plane with message, has realized message forwarding; According to the type of port message is advanced the intercommunication that corresponding repacking has realized POS/ETH again at outbound port then.
Description of drawings
Fig. 1 is a kind of flow chart of realizing the method for POS/ETH ply-yarn drill intercommunication of the embodiment of the invention;
Fig. 2 is the flow chart that the embodiment of the invention two realizes the method for POS/ETH ply-yarn drill intercommunication;
Fig. 3 is a kind of structure chart of realizing the device of POS/ETH ply-yarn drill intercommunication of the embodiment of the invention.
Embodiment
The embodiment of the invention provides the method for a kind of POS/ETH of realization ply-yarn drill intercommunication, comprising: after port receives message, determine to receive type of message according to the port that receives message, and the type identification of type of message correspondence is added in the message; When inside E-Packets, obtain type identification to be E-Packeted, judge the described POS form of whether waiting to E-Packet according to described type identification, if, then with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port; During message to be sent that outbound port is received, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
As shown in Figure 1, the embodiment of the invention provides the method for a kind of POS/ETH of realization ply-yarn drill intercommunication, and the specific implementation step comprises:
Because the attribute of port is fixed, hardware carries out that can to carry which kind of professional back just immutable, and therefore the message of receiving is that the message of which kind of form can be judged according to the port that receives message.The message of coming in from the POS mouth is exactly a POS form message, and the message of coming in from Ethernet interface is exactly an ether form message.
Step 101 after port receives message, is determined to receive type of message according to the port type that receives message, and the type identification of type of message correspondence is added in the message;
When inside E-Packeted, protocol massages and the data message in the POS form message distinguished by system for convenience, also comprises
Step 102 determines according to the heading information of this message whether message is POS format protocol message, if then after the agreement flag bit set with this message, change step 103 over to and carry out the forwarding operation; Otherwise directly change step 103 pair this message over to and carry out the forwarding operation;
Step 103 is obtained type identification to be E-Packeted, and judges the described POS form of whether waiting to E-Packet according to described type identification, if, then change step 104 over to, otherwise, change step 106 over to;
In embodiments of the present invention, judge according to described type identification and describedly wait to E-Packet whether the POS form comprises:
Obtain the type identification of packet, the type identification that gets access to and the heading rule of preservation are mated, determining to wait to E-Packet according to matching result is POS form or ether form.
Step 104 reads the agreement flag bit that carries in the message, if this flag bit set, then with central processor CPU in the message up sending, otherwise, change step 105 over to.
Step 105, with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port;
Wherein, message format described to be E-Packeted being revised as the ether form in embodiments of the present invention can be to realize in the following manner:
Two MAC Address obtaining at random, described wait to E-Packet middle loaded service data, the MAC Address of obtaining at random and EtherType are assembled into ether form message according to the Ethernet message form, wherein, two MAC Address obtaining at random are as the target MAC (Media Access Control) address and the source MAC of ether form message.
During message to be sent that step 106, outbound port are received, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
Wherein, in embodiments of the present invention described message to be sent being adapted as POS form message can manifest in the following manner: delete ETH head, VLAN or the ETYPE head of message to be sent, according to the protocol number of bearer service type package POS head in the message.
As shown in Figure 2, system receives the message of POS form, transmits then and can also realize by following concrete steps:
Step 201 reads the agreement flag bit that carries in the message, if this flag bit set represents that then this message is the ppp protocol package, directly message is sent to CPU, if there is not set, shows that this message is a packet, changes step 202 over to;
Step 202, read the header packet information that message carries, judge that this message is POS form or ETH form; If the POS form then changes step 203 over to,, change step 204 over to if be the message of ether form;
Step 203, message format is made amendment, PPP information message (as shown in table 1) is removed the ppp head, increase a mac head and etpye head, it is assembled into the message (as shown in table 2) of ether form.All business all unified to be the ether form after the Inbound processing finished like this;
Sign 7E | Address FF | Control 03 | Agreement | Payload | CRC | Sign 7E |
1bvte | 1bvte | 1bvte | 2bytes | Maximum 1500bytes | 2bytes | 1bvte |
Table 1
Target MAC (Media Access Control) address | Source MAC | Type/Length | Payload | FCS |
6byte | 6byte | 2byte | Maximum 1500bytes | 4bytes |
Table 2
Step 204, forwarding module are transmitted processing to the message that receives;
Step 205, process network board are delivered to destination interface with message;
The bag that step 206, outbound port are received is the ether form, read out port and transmit (the middle type and the loaded service that can write down outbound port transmitted in outlet), transmit according to outbound port and to judge port type and bearer service type, if this outbound port is the ether form, then message is not handled, if be the POS form, delete Ethernet header, VLAN and the ETYPE head of message, encapsulation ppp head (because of outbound port will receive each device or the next message of system forwards, so the message that outbound port receives comprises all kinds).
In addition, because being adapted as POS form message, ether form message need add protocol number, so also need protocol number according to loaded service type package POS head.
As shown in Figure 3, also provide the device of a kind of POS/ETH of realization ply-yarn drill intercommunication according to the said method embodiment of the invention, this device comprises:
Wherein, this inside forwarding module 302 is revised as the ether form with message format described to be E-Packeted and comprises:
Two MAC Address obtaining at random, described wait to E-Packet middle loaded service data, the MAC Address of obtaining at random and EtherType are assembled into ether form message according to the Ethernet message form, wherein, two MAC Address obtaining at random are as the target MAC (Media Access Control) address and the source MAC of ether form message.
In addition, this inside forwarding module 302 is judged according to described type identification and is describedly waited to E-Packet whether the POS form comprises:
Obtain the type identification of packet, the type identification that gets access to and the heading rule of preservation are mated, determining to wait to E-Packet according to matching result is POS form or ether form.
Sending module 303, during the message to be sent that is used to receive, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
Wherein, this sending module 303 is adapted as POS form message with described message to be sent and comprises:
Delete ETH head, VLAN or the ETYPE head of message to be sent, according to the protocol number of bearer service type package POS head in the message.
When inside E-Packeted, protocol massages and the data message in the POS form message distinguished by system for convenience:
Described receiver module 301 also is used for determining according to the heading information of this message whether message is POS format protocol message, if, then with the agreement flag bit set of this message; Then
Described inner forwarding module 302 also is used for reading the agreement flag bit that message carries, if this flag bit set, then with central processor CPU in the message up sending, otherwise, message format described to be E-Packeted is revised as the ether form.
The method and apparatus that the embodiment of the invention provided is adapted as unified format by forwarding plane with message, has realized message forwarding; According to the type of port message is advanced the intercommunication that corresponding repacking has realized POS/ETH again at outbound port then.Use the method that the embodiment of the invention provided, can data forwarding not be subjected to the restriction of interface, no matter be from POS mouth or ETH mouth receive message by innerly transmit, can be after the assembling by POS mouth or the transmission of ETH mouth outbound port.And the method that the invention process provided is simple.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.
Claims (10)
1. a method that realizes the intercommunication of POS/ETH ply-yarn drill is characterized in that, comprising:
After port receives message, determine to receive type of message according to the port that receives message, and the type identification of type of message correspondence is added in the message;
When inside E-Packets, obtain type identification to be E-Packeted, judge the described POS form of whether waiting to E-Packet according to described type identification, if, then with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port;
During message to be sent that outbound port is received, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
2. the method for claim 1 is characterized in that, after determining to receive type of message according to the port that receives message, further comprises:
Determine according to the heading information of this message whether message is POS format protocol message, if, then with the agreement flag bit set of this message; Then
Judge that according to described type identification described to wait to E-Packet be after the POS form, further comprise:
Read the agreement flag bit that carries in the message, if this flag bit set, then with central processor CPU in the message up sending, otherwise, message format described to be E-Packeted is revised as the ether form.
3. the method for claim 1, it is characterized in that, message format described to be E-Packeted is revised as the ether form to be comprised: two MAC Address obtaining at random, described wait to E-Packet middle loaded service data, the MAC Address of obtaining at random and EtherType are assembled into ether form message according to the Ethernet message form, wherein, two MAC Address obtaining at random are as the target MAC (Media Access Control) address and the source MAC of ether form message.
4. the method for claim 1 is characterized in that, described message to be sent is adapted as POS form message comprises: delete ETH head, VLAN or the ETYPE head of message to be sent, according to the protocol number of bearer service type package POS head in the message.
5. the method for claim 1 is characterized in that, judges according to described type identification and describedly waits to E-Packet whether the POS form comprises:
Obtain the type identification of packet, the type identification that gets access to and the heading rule of preservation are mated, determining to wait to E-Packet according to matching result is POS form or ether form.
6. a device of realizing the intercommunication of POS/ETH ply-yarn drill is characterized in that, this device comprises:
Receiver module after being used to receive message, is determined to receive type of message according to the port that receives message, and the type identification of type of message correspondence is added in the message;
Inner forwarding module, when being used to E-Packet, obtain type identification to be E-Packeted, judge the described POS form of whether waiting to E-Packet according to described type identification, if, then with described wait to E-Packet be adapted as ether form message, and the ether form message after will reequiping through network board is delivered to outbound port;
Sending module, during the message to be sent that is used to receive, read port is transmitted, if the outbound port type of record determines that this outbound port is the POS form, then is adapted as POS form message with described message to be sent in transmitting according to outlet.
7. device as claimed in claim 6 is characterized in that, comprising:
Described receiver module also is used for determining according to the heading information of this message whether message is POS format protocol message, if, then with the agreement flag bit set of this message; Then
Described inner forwarding module also is used for reading the agreement flag bit that message carries, if this flag bit set, then with central processor CPU in the message up sending, otherwise, message format described to be E-Packeted is revised as the ether form.
8. device as claimed in claim 6 is characterized in that, described inner forwarding module is revised as the ether form with message format described to be E-Packeted and comprises:
Two MAC Address obtaining at random, described wait to E-Packet middle loaded service data, the MAC Address of obtaining at random and EtherType are assembled into ether form message according to the Ethernet message form, wherein, two MAC Address obtaining at random are as the target MAC (Media Access Control) address and the source MAC of ether form message.
9. device as claimed in claim 6 is characterized in that, described sending module is adapted as POS form message with described message to be sent and comprises:
Delete ETH head, VLAN or the ETYPE head of message to be sent, according to the protocol number of bearer service type package POS head in the message.
10. device as claimed in claim 6 is characterized in that, inner forwarding module is judged according to described type identification and describedly waited to E-Packet whether the POS form comprises:
Obtain the type identification of packet, the type identification that gets access to and the heading rule of preservation are mated, determining to wait to E-Packet according to matching result is POS form or ether form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110122410.XA CN102291294B (en) | 2011-05-12 | 2011-05-12 | A kind of method and device realizing the intercommunication of POS/ETH line card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110122410.XA CN102291294B (en) | 2011-05-12 | 2011-05-12 | A kind of method and device realizing the intercommunication of POS/ETH line card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102291294A true CN102291294A (en) | 2011-12-21 |
CN102291294B CN102291294B (en) | 2016-03-30 |
Family
ID=45337412
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110122410.XA Active CN102291294B (en) | 2011-05-12 | 2011-05-12 | A kind of method and device realizing the intercommunication of POS/ETH line card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102291294B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
WO2015131720A1 (en) * | 2014-03-04 | 2015-09-11 | 华为技术有限公司 | Packet processing method and device |
US9692716B2 (en) | 2013-07-03 | 2017-06-27 | Hewlett Packard Enterprise Development Lp | Interoperation of switch line card and programmable line card |
CN107517247A (en) * | 2017-08-07 | 2017-12-26 | 浪潮金融信息技术有限公司 | A kind of socket interfaces applied to financial industry turn the system and method for http interfaces |
CN114338548A (en) * | 2020-10-12 | 2022-04-12 | 迈普通信技术股份有限公司 | Message distribution method, device, network equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5678010A (en) * | 1995-06-07 | 1997-10-14 | Compuserve Incorporated | Automated routing of messages over a network |
CN1575560A (en) * | 2001-08-24 | 2005-02-02 | 朗米·S·冈达 | Method and apparaturs for translating sdh/sonet frames to Ethernet frames |
CN1731755A (en) * | 2004-08-04 | 2006-02-08 | 杭州华为三康技术有限公司 | Adapting device for resilient packet ring and method |
CN1791075A (en) * | 2004-12-17 | 2006-06-21 | 华为技术有限公司 | Device for realizing network fusion and its method |
CN101692673A (en) * | 2009-10-16 | 2010-04-07 | 中国电信股份有限公司 | Message processing method of payment platform, payment platform device and payment system |
-
2011
- 2011-05-12 CN CN201110122410.XA patent/CN102291294B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5678010A (en) * | 1995-06-07 | 1997-10-14 | Compuserve Incorporated | Automated routing of messages over a network |
CN1575560A (en) * | 2001-08-24 | 2005-02-02 | 朗米·S·冈达 | Method and apparaturs for translating sdh/sonet frames to Ethernet frames |
CN1731755A (en) * | 2004-08-04 | 2006-02-08 | 杭州华为三康技术有限公司 | Adapting device for resilient packet ring and method |
CN1791075A (en) * | 2004-12-17 | 2006-06-21 | 华为技术有限公司 | Device for realizing network fusion and its method |
CN101692673A (en) * | 2009-10-16 | 2010-04-07 | 中国电信股份有限公司 | Message processing method of payment platform, payment platform device and payment system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915600A (en) * | 2012-09-20 | 2013-02-06 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
CN102915600B (en) * | 2012-09-20 | 2014-10-08 | 无锡华御信息技术有限公司 | Fore-POS (point of sale) system and method convenient for function extension |
US9692716B2 (en) | 2013-07-03 | 2017-06-27 | Hewlett Packard Enterprise Development Lp | Interoperation of switch line card and programmable line card |
WO2015131720A1 (en) * | 2014-03-04 | 2015-09-11 | 华为技术有限公司 | Packet processing method and device |
CN107517247A (en) * | 2017-08-07 | 2017-12-26 | 浪潮金融信息技术有限公司 | A kind of socket interfaces applied to financial industry turn the system and method for http interfaces |
CN107517247B (en) * | 2017-08-07 | 2020-11-17 | 浪潮金融信息技术有限公司 | System and method for converting socket interface into http interface applied to financial industry |
CN114338548A (en) * | 2020-10-12 | 2022-04-12 | 迈普通信技术股份有限公司 | Message distribution method, device, network equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102291294B (en) | 2016-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101160850B (en) | Method and device for forwarding packet | |
JP5041035B2 (en) | Radio apparatus and radio base station apparatus | |
US8787402B2 (en) | Systems and methods to control flow and to define and interleave multiple channels | |
US7684419B2 (en) | Ethernet encapsulation over optical transport network | |
KR101463289B1 (en) | A device and method for implementing a channel of signaling communication network and management communication network | |
CN102291294A (en) | Method and device for realizing line card intercommunication of packet over SONET/SDH / Ethernet (POS/ETH) | |
CN102468899B (en) | Channelizing STM-1 access distribution method of and system thereof | |
CN106717111A (en) | Method, device, and system for receiving CPRI data stream and ethernet frame | |
CN105323137B (en) | Service data transmission method and device | |
CN101212390A (en) | A data transmission method and device | |
CN113890680A (en) | Transmission method applied to fiber channel avionics network DDS | |
CN109951458B (en) | RapidIO/FC protocol conversion system and method applied to simulation ICP environment | |
CN101309263B (en) | Data transmission method, apparatus and system | |
US11902172B2 (en) | Device and method for transferring identification and/or data flow control information between devices | |
CN101860461B (en) | A kind of method and system of carrying out user port management in link aggregation | |
CN104394160B (en) | A kind of Link Layer Discovery Protocol applies the method in SDH | |
CN111342929A (en) | Information sending and receiving method and device and information processing system | |
CN102780639B (en) | Router wire card and data processing method | |
CN115250389A (en) | Optical network terminal | |
CN101515880A (en) | Method and equipment for providing Ethernet service on network based on resilient packet ring | |
CN104270341B (en) | Data protocol repeater system in ip ran and method | |
CN206181067U (en) | MII interface and GPMC interface data communication system | |
US20040114640A1 (en) | System, method and device for aggregating SONET links | |
CN205265697U (en) | Grouping optical transmission terminal chip based on tag switching | |
JP3605005B2 (en) | System and method for selectively separating point-to-point protocol header information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |