CN102291294B - A kind of method and device realizing the intercommunication of POS/ETH line card - Google Patents

A kind of method and device realizing the intercommunication of POS/ETH line card Download PDF

Info

Publication number
CN102291294B
CN102291294B CN201110122410.XA CN201110122410A CN102291294B CN 102291294 B CN102291294 B CN 102291294B CN 201110122410 A CN201110122410 A CN 201110122410A CN 102291294 B CN102291294 B CN 102291294B
Authority
CN
China
Prior art keywords
message
pos
forwarded
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.)
Active
Application number
CN201110122410.XA
Other languages
Chinese (zh)
Other versions
CN102291294A (en
Inventor
孔玲丽
姜海明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110122410.XA priority Critical patent/CN102291294B/en
Publication of CN102291294A publication Critical patent/CN102291294A/en
Application granted granted Critical
Publication of CN102291294B publication Critical patent/CN102291294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and the device that realize the intercommunication of POS/ETH line card, be applied to the communications field, the method comprises: after port accepts to message, and the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message; When inside E-Packets, obtain the type identification of message to be forwarded, judge described message to be forwarded whether POS form according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port; During the message to be sent that outbound port receives, read port is transmitted, if determine that this outbound port is POS form according to exporting the outbound port type transmitting middle record, then described message to be sent is adapted as POS form message.Method and apparatus provided by the invention such as port, repeating process and outbound port enter to message the intercommunication that repacking achieves POS/ETH.

Description

A kind of method and device realizing the intercommunication of POS/ETH line card
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and the device that realize the intercommunication of POS/ETH line card.
Background technology
POS full name is that the high-speed transfer passage that namely PacketoverSONET/SDH, POS are provided by SDH directly transmits IP grouping.POS is positioned the data backbone of telecom operation level (carrierscale), and its network is formed by connecting via high speed fibre transmission channel primarily of jumbo high-end router.
The basic problem that 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 the addressing and the route that come from place.According to OSI seven layer model, also need a link layer protocol therebetween, carry out location and the error correction of frame level.Because SONE/SDH is point-to-point transmission channel composition, so adopt PPP (Chinese and English full name) as the agreement of link layer.
When SDH signal is regarded as form by low speed signal is multiplexing time, these low speed tributary signals are just called passage.Unchannelized is then use whole STM-N signal, and all data that an optical fiber transmits belong to same road, have identical mark, and identical starting point and terminal obey single monitoring strategies.
Growing along with mechanics of communication, the edge of network also there occurs change, 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.Same equipment possesses the function such as multi-service, high-transmission, easily expansion and seems particularly important.Just having there is the Heterogeneity of POS, ether and other networks in this, needs the intercommunication realizing miscellaneous service.If realize the intercommunication of unchannelized POS and Ethernet, need to increase FPGA or other chips in the forwarding chip front end of unchannelized POS, this method increase cost.
Summary of the invention
The invention provides a kind of method and the device that realize the intercommunication of POS/ETH line card, the forwarding chip front end for solving unchannelized POS in prior art increases the problem of FPGA or other chips.
The embodiment of the present invention provides a kind of method realizing the intercommunication of POS/ETH line card, comprising:
After port accepts to message, the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
When inside E-Packets, obtain the type identification of message to be forwarded, judge described message to be forwarded whether POS form according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port;
During the message to be sent that outbound port receives, read port is transmitted, if determine that this outbound port is POS form according to exporting the outbound port type transmitting middle record, then described message to be sent is adapted as POS form message.
Also provide a kind of device realizing the intercommunication of POS/ETH line card according to said method the present invention, this device comprises:
Receiver module, after receiving message, the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
Inner forwarding module, during for E-Packeting, obtain the type identification of message to be forwarded, described message to be forwarded whether POS form is judged according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port;
Sending module, for receive message to be sent time, read port is transmitted, if the outbound port type transmitting middle record according to outlet determines that this outbound port is POS form, then described message to be sent is adapted as POS form message.
The method and apparatus that the embodiment of the present invention provides, is adapted as unified form by forwarding plane by message, achieves the forwarding of message; Then according to the type of port, the intercommunication that corresponding repacking achieves POS/ETH is entered to message again at outbound port.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart realizing the method for POS/ETH line card intercommunication of the embodiment of the present invention;
Fig. 2 is the flow chart that the embodiment of the present invention two realizes the method for POS/ETH line card intercommunication;
Fig. 3 is a kind of structure chart realizing the device of POS/ETH line card intercommunication of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method realizing the intercommunication of POS/ETH line card, comprising: after port accepts to message, and the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message; When inside E-Packets, obtain the type identification of message to be forwarded, judge described message to be forwarded whether POS form according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port; During the message to be sent that outbound port receives, read port is transmitted, if determine that this outbound port is POS form according to exporting the outbound port type transmitting middle record, then described message to be sent is adapted as POS form message.
As shown in Figure 1, the embodiment of the present invention provides a kind of method realizing the intercommunication of POS/ETH line card, and specific implementation step comprises:
Because the attribute of port is fixing, hardware is just immutable after carrying out and can carrying which kind of business, and the message therefore received is that the message of which kind of form can judge according to the port receiving message.The message of coming in from POS mouth is exactly POS form message, and the message of coming in from Ethernet interface is exactly ether form message.
Step 101, after port accepts to message, the port type according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
When inside E-Packets, the protocol massages in system differentiation POS form message conveniently and data message, also comprise
Step 102, whether the heading information determination message according to this message is POS format protocol message, if so, then by behind the position, agreement mark position of this message, proceeds to step 103 and performs forwarding operation; Otherwise directly proceed to step 103 and forwarding operation is performed to this message;
Step 103, obtains the type identification of message to be forwarded, judges described message to be forwarded whether POS form, if so, then proceed to step 104 according to described type identification, otherwise, proceed to step 106;
In embodiments of the present invention, judge whether POS form comprises described message to be forwarded according to described type identification:
Obtain the type identification of packet, the type identification got is mated with the heading rule of preservation, determines that message to be forwarded is POS form or ether form according to matching result.
Step 104, reads the agreement flag bit carried in message, if this flag bit set, then by message up sending central processor CPU, otherwise, proceed to step 105.
Step 105, is adapted as ether form message by described message to be forwarded, and through network board, the ether form message after repacking is delivered to outbound port;
Wherein, in embodiments of the present invention the message format of described message to be forwarded being revised as ether form can be realize in the following manner:
Two MAC Address of random acquisition, the MAC Address of the business datum carried in described message to be forwarded, random acquisition and EtherType are assembled into ether form message according to Ethernet message form, wherein, random two MAC Address obtained are as the target MAC (Media Access Control) address of ether form message and source MAC.
Step 106, during the message to be sent that outbound port receives, read port is transmitted, if determine that this outbound port is POS form according to exporting the outbound port type transmitting middle record, then described message to be sent is adapted as POS form message.
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 the ETH head of message to be sent, VLAN or ETYPE head, according to the protocol number of bearer service type package POS head in message.
As shown in Figure 2, system acceptance is to the message of POS form, and then carrying out forwarding can also be realized by following concrete steps:
Step 201, reads the agreement flag bit carried in message, if this flag bit set, then represents that this message is ppp protocol package, directly message is sent to CPU, if do not have set, show that this message is packet, proceed to step 202;
The header packet information that step 202, reading message carry, judges that this message is POS form or ETH form; If POS form, then proceed to step 203, if be the message of ether form, proceed to step 204;
Step 203, message format to be modified, PPP information message (as shown in table 1) is removed ppp head, increases a mac head and etpye head, be assembled into the message (as shown in table 2) of ether form.Enter direction process like this to terminate rear all business and all unify for ether form;
Mark 7E Address FF Control 03 Agreement Payload CRC Mark 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 carry out forward process to the message received;
Step 205, through network board, message is delivered to destination interface;
The bag that step 206, outbound port receive is ether form, read out port repeat table (outlet transmit middle can record the type of outbound port and the business of carrying), transmit according to outbound port and judge port type and bearer service type, if this outbound port is ether form, then message is not processed, if be POS form, delete the Ethernet header of message, VLAN and ETYPE head, encapsulation ppp head (because of the message that each device of reception or system forwards come by outbound port, so the message that outbound port receives comprises all kinds).
In addition, need at interpolation protocol number because ether form message to be adapted as POS form message, so also need the protocol number of the type of service encapsulation POS head according to carrying.
As shown in Figure 3, also provide a kind of device realizing the intercommunication of POS/ETH line card according to the said method embodiment of the present invention, this device comprises:
Receiver module 301, after receiving message, the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
Inner forwarding module 302, during for E-Packeting, obtain the type identification of message to be forwarded, described message to be forwarded whether POS form is judged according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port;
Wherein, the message format of described message to be forwarded is revised as ether form and comprises by this inner forwarding module 302:
Two MAC Address of random acquisition, the MAC Address of the business datum carried in described message to be forwarded, random acquisition and EtherType are assembled into ether form message according to Ethernet message form, wherein, random two MAC Address obtained are as the target MAC (Media Access Control) address of ether form message and source MAC.
In addition, according to described type identification, this inner forwarding module 302 judges whether POS form comprises described message to be forwarded:
Obtain the type identification of packet, the type identification got is mated with the heading rule of preservation, determines that message to be forwarded is POS form or ether form according to matching result.
Sending module 303, for receive message to be sent time, read port is transmitted, if the outbound port type transmitting middle record according to outlet determines that this outbound port is POS form, then described message to be sent is adapted as POS form message.
Wherein, described message to be sent is adapted as POS form message and comprises by this sending module 303:
Delete the ETH head of message to be sent, VLAN or ETYPE head, according to the protocol number of bearer service type package POS head in message.
When inside E-Packets, the protocol massages in system differentiation POS form message conveniently and data message:
Whether described receiver module 301 is also POS format protocol message for the heading information determination message according to this message, if so, then by the position, agreement mark position of this message; Then
Described inner forwarding module 302 also for reading the agreement flag bit carried in message, if this flag bit set, then by message up sending central processor CPU, otherwise, the message format of described message to be forwarded is revised as ether form.
The method and apparatus that the embodiment of the present invention provides, is adapted as unified form by forwarding plane by message, achieves the forwarding of message; Then according to the type of port, the intercommunication that corresponding repacking achieves POS/ETH is entered to message again at outbound port.The method that theres is provided of the application embodiment of the present invention, can data retransmission by the restriction of interface, be no matter receive message from POS mouth or ETH mouth to send by POS mouth or ETH mouth outbound port by innerly to forward, after assembling.And the method that the invention process provides is simple.
Method of the present invention is not limited to the embodiment described in embodiment, and those skilled in the art's technical scheme according to the present invention draws and other execution mode belongs to technological innovation scope of the present invention equally.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. realize a method for POS/ETH line card intercommunication, it is characterized in that, comprising:
After port accepts to message, the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
When inside E-Packets, obtain the type identification of message to be forwarded, judge described message to be forwarded whether POS form according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port;
During the message to be sent that outbound port receives, read port is transmitted, if determine that this outbound port is POS form according to exporting the outbound port type transmitting middle record, then described message to be sent is adapted as POS form message.
2. the method for claim 1, is characterized in that, after determining to receive type of message, comprises further according to the port receiving message:
Whether the heading information determination message according to this message is POS format protocol message, if so, then by the position, agreement mark position of this message; Then
After judging that described message to be forwarded is POS form according to described type identification, comprise further:
Read the agreement flag bit carried in message, if this flag bit set, then by message up sending central processor CPU, otherwise, the message format of described message to be forwarded is revised as ether form.
3. the method for claim 1, it is characterized in that, the message format of described message to be forwarded is revised as ether form comprise: random two MAC Address obtained, the MAC Address of the business datum carried in described message to be forwarded, random acquisition and EtherType are assembled into ether form message according to Ethernet message form, wherein, random two MAC Address obtained are as the target MAC (Media Access Control) address of ether form message and source MAC.
4. the method for claim 1, is characterized in that, described message to be sent is adapted as POS form message and comprises: delete the ETH head of message to be sent, VLAN or ETYPE head, according to the protocol number of bearer service type package POS head in message.
5. the method for claim 1, is characterized in that, judges whether POS form comprises described message to be forwarded according to described type identification:
Obtain the type identification of packet, the type identification got is mated with the heading rule of preservation, determines that message to be forwarded is POS form or ether form according to matching result.
6. realize a device for POS/ETH line card intercommunication, it is characterized in that, this device comprises:
Receiver module, after receiving message, the port according to receiving message is determined to receive type of message, and adds in message by type identification corresponding for type of message;
Inner forwarding module, during for E-Packeting, obtain the type identification of message to be forwarded, described message to be forwarded whether POS form is judged according to described type identification, if, then described message to be forwarded is adapted as ether form message, and through network board, the ether form message after repacking is delivered to outbound port;
Sending module, for receive message to be sent time, read port is transmitted, if the outbound port type transmitting middle record according to outlet determines that this outbound port is POS form, then described message to be sent is adapted as POS form message.
7. device as claimed in claim 6, is characterized in that, comprising:
Whether described receiver module is also POS format protocol message for the heading information determination message according to this message, if so, then by the position, agreement mark position of this message; Then
Described inner forwarding module also for reading the agreement flag bit carried in message, if this flag bit set, then by message up sending central processor CPU, otherwise, the message format of described message to be forwarded is revised as ether form.
8. device as claimed in claim 6, it is characterized in that, the message format of described message to be forwarded is revised as ether form and comprises by described inner forwarding module:
Two MAC Address of random acquisition, the MAC Address of the business datum carried in described message to be forwarded, random acquisition and EtherType are assembled into ether form message according to Ethernet message form, wherein, random two MAC Address obtained are as the target MAC (Media Access Control) address of ether form message and source MAC.
9. device as claimed in claim 6, it is characterized in that, described message to be sent is adapted as POS form message and comprises by described sending module:
Delete the ETH head of message to be sent, VLAN or ETYPE head, according to the protocol number of bearer service type package POS head in message.
10. device as claimed in claim 6, it is characterized in that, according to described type identification, inner forwarding module judges whether POS form comprises described message to be forwarded:
Obtain the type identification of packet, the type identification got is mated with the heading rule of preservation, determines that message to be forwarded is POS form or ether form according to matching result.
CN201110122410.XA 2011-05-12 2011-05-12 A kind of method and device realizing the intercommunication of POS/ETH line card Active CN102291294B (en)

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 CN102291294A (en) 2011-12-21
CN102291294B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915600B (en) * 2012-09-20 2014-10-08 无锡华御信息技术有限公司 Fore-POS (point of sale) system and method convenient for function extension
CN104283817B (en) 2013-07-03 2017-10-27 新华三技术有限公司 Line card and the method and message forwarding equipment of logic line card intercommunication are exchanged for realizing
CN103825824A (en) * 2014-03-04 2014-05-28 华为技术有限公司 Message processing method and message processing device
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102291294A (en) 2011-12-21

Similar Documents

Publication Publication Date Title
CN102291294B (en) A kind of method and device realizing the intercommunication of POS/ETH line card
CN111201748B (en) Method and device for sending and receiving clock synchronization message
US8787402B2 (en) Systems and methods to control flow and to define and interleave multiple channels
EP1872497B1 (en) Ethernet encapsulation over optical transport network
US20070242676A1 (en) Interface between a synchronous network and high-speed ethernet
EP2562969B1 (en) Method, apparatus and system for transmitting sdh/sonet section overhead bytes
CN114944910A (en) Method and device for clock synchronization
US7643504B2 (en) Credit based flow control in an asymmetric channel environment
CN100499579C (en) Method of universal route package for IP partitioned message
CN100518140C (en) SPI4II interface remote transmission realizing method and apparatus
CN109951458B (en) RapidIO/FC protocol conversion system and method applied to simulation ICP environment
US20070086479A1 (en) Techniques to buffer traffic in a communications system
US11902172B2 (en) Device and method for transferring identification and/or data flow control information between devices
EP1829293A2 (en) Communications system with segmenting and framing of segments
CN115250389A (en) Optical network terminal
US20070153831A1 (en) Information transparent adaptation function for packet based network connections
US20020159438A1 (en) Ethernet based TDM switch
US20040114640A1 (en) System, method and device for aggregating SONET links
CN111786718A (en) Satellite optical network management and control plane signaling transmission method based on AoS insertion service
SharathBabuRao et al. The elements of the Ethernet proliferation of data rates through the bridge layer & MAC protocol stack
CN115499359B (en) Improved method for wasting link resources based on standard HSR protocol
CN102801601A (en) Method and equipment for realizing EoS (Ethernet over SDH) service with PTN (Packet Transport Network) compatible with MSTP (Multi-Service Transport Platform) network
US20240187350A1 (en) Device and method for transferring identification and/or data flow control information between devices
KR100773904B1 (en) LAN switch
CN112511452A (en) Method and system for automatically adjusting rate of L2VPN

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