CN101242370A - Method for realizing Ethernet and frame-relay Internet and protocol conversion device - Google Patents

Method for realizing Ethernet and frame-relay Internet and protocol conversion device Download PDF

Info

Publication number
CN101242370A
CN101242370A CNA2008100846876A CN200810084687A CN101242370A CN 101242370 A CN101242370 A CN 101242370A CN A2008100846876 A CNA2008100846876 A CN A2008100846876A CN 200810084687 A CN200810084687 A CN 200810084687A CN 101242370 A CN101242370 A CN 101242370A
Authority
CN
China
Prior art keywords
interface
ethernet
mapping
encapsulation header
link encapsulation
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
Application number
CNA2008100846876A
Other languages
Chinese (zh)
Other versions
CN101242370B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008100846876A priority Critical patent/CN101242370B/en
Publication of CN101242370A publication Critical patent/CN101242370A/en
Application granted granted Critical
Publication of CN101242370B publication Critical patent/CN101242370B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a method for interconnection between Ethernet and frame relay and a protocol conversion apparatus. The method is suitable for a protocol conversion apparatus which connects with CE by Ethernet interfaces and connects with PE by frame relay FR interfaces, so that the CE accesses Internet by PE. The protocol conversion apparatus performs the following steps: establishing one-to-one mappings between Ethernet interfaces connecting with CE and FR interfaces connecting with PE; constructing Ethernet link encapsulation head and FR link encapsulation head for each mapping, and correlating the encapsulation heads with corresponding mappings; recognizing the mapping of a received data message by its input interface, carrying out direct conversion of link layer encapsulation by corresponding FR link encapsulation head or Ethernet link encapsulation head, and forwarding from outlet interface of the mapping. The invention is not limited by networking mode, saves management and maintenance cost, network resource and bandwidth, as well as has high forwarding performance.

Description

Realize Ethernet and interconnected method and the protocol conversion device of frame relay
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of Ethernet and interconnected method and protocol conversion device of frame relay realized.
Background technology
Virtual network operator equipment (PE) is often by a large amount of TDM (Time Division Multiplexing, time division multiplexing) link provides Internet access service for LAN subscriber, the link layer protocol of this TDM link is FR (Frame-Relay, frame relay) agreement, wherein, the FR agreement can provide many virtual circuits as a kind of X.25 wan protocol of simplification on the single one physical transmission link.
Simultaneously, LAN subscriber equipment (CE) then carries out Ethernet by ethernet link and inserts, and its link layer protocol is LAN protocol Ethernet.
As can be seen, realize the Ethernet service of LAN subscriber, must carry out the mutual conversion of FR agreement and Ethernet agreement, please refer to Fig. 1,,, realize message forwarding between CE and the PE such as Router (router) by protocol conversion device.The prior protocols switch technology mainly contains following two kinds:
First kind, Router connects the interface configuration IP address of CE and PE for it, and promptly Router is respectively its each access provides the pair of IP address to transmit to realize message.The drawback of this scheme is: no longer be directly next jumping between CE and the PE, need Router to carry out complicated processing, such as, if need to move Routing Protocol between CE and the PE, Router also must move Routing Protocol, and this has obviously increased management, the cost of maintenance and possible fault point; And, having than multirouting bar number at CE, low side Router just is difficult to be competent at, and must use high-end Router, therefore the increase that has brought operation cost; In addition, belong to three layers routing forwarding, need carry out packet parsing and obtain purpose IP, table look-up then and obtain next paths, so forwarding performance is not good.
Second kind, the interface that Router connects CE and PE adds the bridge group, and promptly Router goes up by the transparent bridge agreement of operation and replaces the scheme of interface configuration IP address to realize that message is transmitted.The drawback of this scheme is: Router transmits by the bridge that is based on MAC that transparent bridge agreement is carried out, and forwarding performance is also relatively poor; The Ethernet heading need transmit on the TDM link, has increased message load; And PE equipment also needs to support transparent bridge agreement, and connects the interface adding bridge group of Router, and this has just caused the limitation of operation equipment, such as, some high-end routers are not supported this transparent bridge agreement; Simultaneously, need to carry out a lot of corresponding configuration on the PE, such as, need the corresponding bridge template of configuration, and carry out the compatible simultaneously performance configuration of route and bridging functionality etc., so management cost is higher.
In addition, Chinese patent application CN1697418A also provides a kind of similar Ethernet and frame relay interconnect scheme, please refer to Fig. 2, its cardinal principle is as follows: for the remote network equipment that need communicate by letter with central server, by distributing MAC Address as gerentocratic central server and joining in its ARP table, as shown in table 1; Simultaneously, the configuration address mapping table is as shown in table 2 on protocol conversion device;
Purpose IP address ARP
1.1.1.1 0811.3e13.0001
1.1.1.2 0811.3e13.0002
Table 1
Frame Relay Interface Frame relay pvc Ethernet interface MAC Address
1 16 f0 0811.3e13.0001
2 17 f0 0811.3e13.0002
Table 2
Then when remote network equipment when central server sends message, this message is at first delivered to the protocol converter interface with the RF protocol encapsulation, the MAC that corresponding Ethernet interface of being found according to address mapping table by protocol converter and central server distribute issues central server after being encapsulated as ethernet frame again; When central server when remote network equipment sends message, then the IP according to remote network equipment searches corresponding MAC Address in ARP table (table 1), send ethernet frame to protocol converter, after searching corresponding PVC (DLCI) and outgoing interface by protocol converter according to address mapping table (table 2), structure RF message is issued remote network equipment.The drawback of this mode is: the problem of (1) this mode maximum is that it has bigger restriction to networking mode: can only realize that a plurality of remote network equipments visit 1 central server simultaneously, can't realize that one or more remote equipments visit many central servers simultaneously; The cost of (2) management, maintenance is higher: central server need distribute a virtual mac address to the remote network equipment of each visit, and need simultaneously on self and protocol converter, to dispose accordingly, like this, when N remote network equipment need be visited a central server simultaneously, just need dispose N bar list item, configuration N bar Static ARP list item on central server at protocol converter; (3) situation of the inapplicable access device visit Internet that provides by operator: owing to require central server and protocol converter can be configured as required at any time, so the application of communicating by letter between the branch that this mode only is suitable for same company for example and the general headquarters.
In sum, do not provide comparatively perfect realization Ethernet and the interconnected scheme of frame relay in the prior art.
Summary of the invention
Embodiments of the invention aim to provide can realize the technical scheme that Ethernet and frame relay are interconnected simply, effectively.
For achieving the above object, embodiments of the invention provide a kind of Ethernet and interconnected method of frame relay of realizing, be applicable to by Ethernet Ethernet interface to be connected that the protocol conversion device that is connected with PE by the frame relay fr interface is being that CE provides Internet to insert by PE with CE; This protocol conversion device is carried out following steps:
S1, set up its Ethernet interface that connects CE and the mapping relations of the fr interface that is connected PE one to one;
S2, be each map construction ethernet link encapsulation header and FR link encapsulation header, and make it related with corresponding mapping;
S3, discern mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit from the outgoing interface of described mapping according to the incoming interface of the data message that receives.
Embodiments of the invention also provide a kind of Ethernet and interconnected protocol conversion device of frame relay realized, it is connected with CE by Ethernet Ethernet interface, are connected with PE by the frame relay fr interface, being that CE provides Internet access by PE; This protocol conversion device comprises:
The Ethernet interface unit is made up of the Ethernet interface that connects CE;
The fr interface unit is made up of the fr interface that connects PE;
The unit is set up in mapping, is connected with the fr interface unit with this Ethernet interface unit respectively, is used for setting up one to one the mapping relations of this Ethernet interface and fr interface;
The unit is preserved in mapping, sets up the unit with this mapping and is connected, and is used to preserve the mapping relations of this Ethernet interface and fr interface;
Ethernet link encapsulation header structural unit is preserved the unit with this mapping and is connected, and is used to each map construction ethernet link encapsulation header and records this mapping to preserve in the unit;
FR link encapsulation header structural unit is preserved the unit with this mapping and is connected, and is used to each map construction FR link encapsulation header and records this mapping to preserve in the unit;
The link layer packaging switch unit, preserving the unit with this mapping is connected, be used for discerning mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit from the outgoing interface of described mapping according to the incoming interface of the data message that receives.
As shown from the above technical solution, embodiments of the invention encapsulate by direct handoff links layer, have following beneficial effect:
1, need not communicating pair in addition pre-configuredly, therefore be not subjected to the restriction of networking mode;
2, the switching of agreement is transparent fully for communicating pair, has therefore saved and has administered and maintained cost;
3, protocol conversion device need not the address into interface configuration IP, can save Internet resources, and not limited by equipment performance and model;
4, need not to increase message load, save bandwidth;
5, need not to carry out message content and resolve the forwarding performance height.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the present invention, feature and advantage will be more obvious by following.
Description of drawings
Fig. 1 realizes the principle schematic that message is transmitted between CE and the PE in the prior art;
The Ethernet that Fig. 2 provides for reference document and the principle schematic of frame relay interconnect scheme;
The example schematic that message is transmitted between CE that Fig. 3 describes for the present invention and the PE;
Fig. 4 is the flow chart of the interconnected method embodiment of realization Ethernet provided by the present invention and frame relay;
Fig. 5 is the block diagram of interconnected protocol conversion device one embodiment of realization Ethernet provided by the present invention and frame relay;
Fig. 6 is the block diagram of interconnected another embodiment of protocol conversion device of realization Ethernet provided by the present invention and frame relay;
Fig. 7 A, 7B are the embodiment block diagram of the concrete unit in Fig. 5 or the protocol conversion device shown in Figure 6.
Embodiment
To describe specific embodiments of the invention in detail below.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the present invention.
At first, mandatory declaration be, realization Ethernet that the embodiment of the invention provided and the interconnected technical scheme of frame relay, its improvements are to transmit or bridge is transmitted by IP, but directly handoff links layer encapsulation.And the interconnected involved other guide of Ethernet and frame relay, such as how passing through LMI (Local Management Interface, local management interface) DLCI of protocol massages acquisition, how message after the switching sends to CE according to purpose MAC, perhaps how according to DLCI (Data LinkConnection Identifier, data link connection identifier) send to PE, then the scheme according to prior art is realized getting final product, and embodiments of the invention are not described in detail at this point.
Secondly, need to prove that the present invention is applied to provide Ethernet and the interconnected occasion of frame relay.As an example, see also Fig. 3, the link layer protocol on the TDM link is FR, the link layer protocol on the ethernet link is Ethernet, realizes the interconnected of Ethernet and frame relay by the Route that enables the EtoFR function.Wherein, EtoFR is exactly the function that realizes Ethernet protocol and two layers of conversion of frame relay protocol, and the IP address of Ethernet interface Eth0 is 1.1.1.2,24 of masks; The IP address of serial ports Ser1 is 1.1.1.1,24 of masks; Do not need configuration of IP address on Ethernet interface Eth1 and the serial ports Ser0; PE distributes DLCI100 to Router.For convenience of explanation, the content of the following embodiment that provides of the present invention all will be described in conjunction with the described example of Fig. 3.
The invention provides a kind of Ethernet and interconnected method of frame relay of realizing, this method is applicable to by Ethernet Ethernet interface and is connected with CE, and the protocol conversion device that is connected with PE by the frame relay fr interface is being that CE provides Internet to insert by PE.Wherein, constitute the Ethernet link between Ethernet interface and the CE, constituted the FR link between fr interface and the PE.
See also Fig. 4, shown the flow chart of this method one embodiment, carry out following steps by protocol conversion device:
S1, set up its Ethernet interface that connects CE and the mapping relations of the fr interface that is connected PE one to one;
Generally speaking, be that protocol conversion device is set up mapping relations by command configuration Ethernet interface and fr interface, content with above-mentioned example is an example, and this command context can comprise: the IP address (1.1.1.2) of DLCI (100), the CE of Ethernet interface/sub-interface ID (Eth1) of connection CE, the fr interface ID (Ser0) that connects PE, fr interface and the IP address (1.1.1.1) of PE.
Preferable, be to set up and preserve mapping relations by the form of setting up mapping table, then above-mentioned mapping relations will be after mapping table be set up, and is by write down foundation under an one list item, as shown in table 3.
The interface that connects CE The interface that connects PE DLCI The IP of CE The IP of PE The ethernet link encapsulation header FR link encapsulation header
Eth1 Ser0 100 1.1.1.2 1.1.1.1
Table 3
It should be noted that simultaneously, the virtual circuit that the FR agreement is provided identifies with DLCI, this DLCI is only at local interface and direct-connected with it effective to end interface, do not have overall validity, promptly in frame-relay network, identical DLCI does not represent it is same virtual circuit on the different physical interfaces.
Because the FR agreement can provide many virtual circuits on the single one physical transmission line, therefore when the mapping relations of configuration Ethernet interface and fr interface, require the Ethernet interface of an ethernet link of access and the DLCI on the fr interface will guarantee one-one relationship, but not guarantee man-to-man relation with fr interface, promptly an Ethernet interface that inserts an ethernet link can only be set up mapping relations with a DLCI, and vice versa.
Further, may be not only one owing to insert the number of the ethernet link of the Ethernet interface that connects CE, then realized, i.e. the corresponding DLCI of Ethernet sub-interface by the mode that on the Ethernet interface, disposes sub-interface respectively.
It may be noted that an Ethernet interface that a plurality of sub-interfaces are provided when setting up mapping relations, the DLCI that its Ethernet sub-interface can corresponding different fr interfaces, certainly, different DLCI that also can corresponding same fr interface.
Concrete, above-mentioned implementation comprises:
For the Ethernet interface that only provides CE to insert, set up the mapping relations of itself and corresponding fr interface DLCI;
For the Ethernet interface that provides a plurality of CE to insert, in described Ethernet interface, set up the sub-interface of respective number, and set up the mapping relations of described Ethernet sub-interface and corresponding fr interface DLCI respectively.
Certainly, the foundation of above-mentioned mapping relations can be finished by administrator hand, also can finish automatically by the interface testing mechanism.
Structure through above-mentioned mapping relations when knowing an incoming interface, just can retrieve corresponding outgoing interface immediately.
S2, be each map construction ethernet link encapsulation header and FR link encapsulation header, and make it related with corresponding mapping;
Wherein, comprise for each map construction ethernet link encapsulation header and FR link encapsulation header:
With Ethernet interface (Eth1) MAC Address that is connected with CE is source MAC, is that purpose MAC constructs the ethernet link encapsulation header with Ethernet interface (Eth0) MAC Address of CE.
Concrete, this purpose MAC can by and CE between the ARP message interaction obtain, as follows:
Send the ARP request message to this CE, wherein, this ARP request message be source IP with the IP address (1.1.1.1) of corresponding PE, is purpose IP with the IP address (1.1.1.2) of this CE, is source MAC with Ethernet interface (Eth1) MAC Address of connection CE;
Receive the arp reply message that this CE returns, obtain Ethernet interface (Eth0) MAC Address of this CE.
Simultaneously, construct FR link encapsulation header with the DLCI of fr interface, promptly the DLCI in the link layer address of FR link encapsulation header (also claiming the Q922 address) is made as the DLCI of this fr interface.
After structure is finished ethernet link encapsulation header and FR link encapsulation header, also need it related with corresponding mapping, such as, can it be associated with corresponding mapping according to the source MAC of this ethernet link encapsulation header, according to DLCI this ethernet link encapsulation header is associated with corresponding mapping.
Under the situation that has adopted mapping table, can realize related by the mode of this ethernet link encapsulation header of record and FR link encapsulation header under the corresponding list item of this mapping table.
The incoming interface of the data message that S3, basis receive is discerned the mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging, and transmit from the outgoing interface of this mapping, interconnected to realize Ethernet and FR's.
Concrete, may further comprise the steps:
Receive the data message that CE sends to PE, receive the Ethernet interface/sub-interface of data message, in mapping table, search corresponding FR link encapsulation header, replace former Ethernet encapsulation with this FR link encapsulation header, and send to PE by identification;
Receive the data message that PE sends to CE, receive the DLCI of data message, in mapping table, search corresponding ethernet link encapsulation header, replace former FR encapsulation with this ethernet link encapsulation header, and send to CE by identification;
It is pointed out that concrete transmitting-receiving process can be with reference to following content: the data message that certain interface from mapping table receives up, find outgoing interface by list item corresponding in the mapping table; According to the Linktype of outgoing interface, the encapsulation back of changing of message being carried out link layer sends from outgoing interface.Therefore the improvements of the embodiment of the invention are to change encapsulation, to how to table look-up, how to carry out Linktype identification etc. and partly repeat no more.
By the foregoing description as can be seen, realization Ethernet provided by the present invention and the interconnected method of frame relay need not extra public network IP, and not newly-increased message load is three layers of information that need not analytic message simultaneously, has very high forwarding performance.
In addition, have the complete transparency in order to make the communication two ends, protocol conversion device is also carried out following steps in the embodiment of the invention:
With the mutual Inarp message of PE, wherein, the Inarp message that sends to PE is source IP with the IP address of corresponding CE;
With the mutual ARP message of CE, wherein, the ARP message that sends to CE is source IP with the IP address of corresponding PE.
Concrete, comprise the operation of following two aspects with the mutual ARP message of CE:
1, initiatively sends the ARP request message, make up the ethernet link encapsulation header, specifically please refer to description step S2 with the MAC Address that obtains CE to CE;
2, the ARP request message of response CE transmission, then this moment, protocol conversion device will be responded the arp reply message, and wherein source IP is the IP of PE, and source MAC is the MAC of interface Eth1.
In this process, protocol conversion device can in time be understood the variation of the MAC of interface Eth0 according to the ARP request/back message using of interface Eth0, and the ethernet link encapsulation header in the list item is upgraded.
More importantly be, the transmission of above-mentioned ARP message and response all are that the IP with PE carries out, and therefore from the angle of CE, it thinks that direct-connected opposite end is exactly PE.
Simultaneously, the step with the mutual Inarp message of PE comprises:
Receive the Inarp message that PE sends, the IP address that obtains PE;
The Inarp message that response PE sends is source IP with the IP address of corresponding CE.
As can be seen, the response of above-mentioned Inarp message is that the IP with CE carries out, and therefore from the angle of PE, it thinks that direct-connected opposite end is exactly CE.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, described program can be stored in the computer read/write memory medium, this program comprises the steps: when carrying out
S1, set up its Ethernet interface that connects CE and the mapping relations of the fr interface that is connected PE one to one;
S2, be each map construction ethernet link encapsulation header and FR link encapsulation header, and make it related with corresponding mapping;
S3, discern mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit from the outgoing interface of described mapping according to the incoming interface of the data message that receives.
Described storage medium comprises: ROM/RAM (Read Only Memory/Random-AccessMemory, read-only memory/random-access memory), magnetic disc or CD etc.
Accordingly, the embodiment of the invention also provides and has realized Ethernet and the interconnected protocol conversion device 100 of frame relay, please in conjunction with Fig. 5.
This protocol conversion device 100 can be router, and it is connected with CE by the Ethernet interface, is connected with PE by fr interface, is used for inserting for CE provides Internet by PE.
Concrete, this protocol conversion device 100 can comprise:
Ethernet interface unit 101 is made up of the Ethernet interface that connects CE;
Fr interface unit 102 is made up of the fr interface that connects PE;
Unit 103 is set up in mapping, is connected with fr interface unit 102 with Ethernet interface unit 101 respectively, is used for setting up one to one the mapping relations of Ethernet interface and fr interface;
Unit 104 is preserved in mapping, sets up unit 103 with mapping and is connected, and is used to preserve the mapping relations of Ethernet interface and fr interface; Wherein, unit 104 is preserved in this mapping can be mapping table, and a list item of this mapping table can record down: the IP address of DLCI, the CE of Ethernet interface/sub-interface of connection CE, the fr interface that connects PE, FR link, IP address, ethernet link encapsulation header and the FR link of PE encapsulate first-class information, in order to searching.
Ethernet link encapsulation header structural unit 105 is preserved unit 104 with mapping and is connected, and is used to each map construction ethernet link encapsulation header and records mapping to preserve in the unit 104; Wherein, this ethernet link encapsulation header is source MAC with the Ethernet interface mac address that is connected with CE, is purpose MAC with the Ethernet interface mac address of CE;
FR link encapsulation header structural unit 106 is preserved unit 104 with mapping and is connected, and is used to each map construction FR link encapsulation header and records mapping to preserve in the unit 104; Wherein, the DLCI in this FR link encapsulation header is the DLCI of fr interface.
Link layer packaging switch unit 107, preserving unit 104 with mapping is connected, be used for discerning its affiliated mapping according to the incoming interface of the data message that receives, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit, to realize the interconnected of ethernet link and TDM link from the outgoing interface of this mapping.
As can be seen, 100 of the protocol conversion devices that the embodiment of the invention provided carry out the switching of FR link encapsulation header or ethernet link encapsulation header, and it is irrelevant with specifically being provided with of CE or PE, therefore, communicating pair does not all need to do configuration in advance, and this has also just eliminated the restriction for networking mode.
In addition, because the protocol conversion device 100 that the embodiment of the invention provided need not configuration of IP address on interface, can save public network IP, and not as next jumping of message, low end router just can be competent at, and has cost-effective effect equally.
Simultaneously, use the protocol conversion device 100 that the embodiment of the invention provided, not needing increases any message load, has the effect of saving bandwidth.
And the use protocol conversion device 100 that the embodiment of the invention provided belongs to the direct switching of link layer, need not to carry out packet parsing and obtain the three layers of IP address, so its forwarding performance will be far superior to, and three layers of IP is transmitted and bridge is transmitted.
Further, please refer to this protocol conversion device 100 of Fig. 6 can also comprise:
Inarp message interaction unit 108 is used for the mutual Inarp message with PE, and wherein, the Inarp message that sends to PE is source IP with the IP address of corresponding CE;
ARP message interaction unit 109 is used for the mutual ARP message with CE, and wherein, the ARP message that sends to CE is source IP with the IP address of corresponding PE.
Therefore therefore, CE can think that with PE the other side is the opposite end that directly links to each other, thereby makes the switching of link transparent fully for CE and PE, and has saved and administer and maintain cost.
As the further refinement of the foregoing description, provide the specific embodiment of each unit in the protocol conversion device 100.
Please, shown and shone upon the concrete structure of setting up unit 103, having comprised in conjunction with Fig. 7 A:
Sub-interface is set up module 1031, is used to the Ethernet interface that provides a plurality of CE to insert to set up the sub-interface of respective number;
Mapping block 1032 is set up module 1031 with sub-interface and is connected, and is used for for the Ethernet interface and the described Ethernet sub-interface that only provide CE to insert, sets up the mapping relations of itself and corresponding fr interface DLCI respectively.
By above-mentioned module, can guarantee that the mapping relations of interface are unlikely to obscure.
Please, shown the concrete structure of link layer packaging switch unit 107, having comprised in conjunction with Fig. 7 B:
FR link encapsulation header handover module 1071, be used to receive the data message that CE sends to PE, receive the Ethernet interface/sub-interface of described data message by identification, obtain the FR link encapsulation header of corresponding mapping and replace former Ethernet encapsulation, and send to PE by corresponding outgoing interface (fr interface);
Ethernet link encapsulation header handover module 1072, be used to receive the data message that PE sends to CE, receive the DLCI of described data message by identification, obtain the ethernet link encapsulation header of corresponding mapping and replace former FR encapsulation, and send to CE by corresponding outgoing interface (Ethernet interface/sub-interface).
Though described the present invention with reference to several exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the present invention can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (12)

1. realize Ethernet and the interconnected method of frame relay for one kind, be applicable to by Ethernet Ethernet interface to be connected that the protocol conversion device that is connected with PE by the frame relay fr interface is being that CE provides Internet to insert by PE with CE; It is characterized in that described protocol conversion device is carried out following steps:
S1, set up its Ethernet interface that connects CE and the mapping relations of the fr interface that is connected PE one to one;
S2, be each map construction ethernet link encapsulation header and FR link encapsulation header, and make it related with corresponding mapping;
S3, discern mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit from the outgoing interface of described mapping according to the incoming interface of the data message that receives.
2. realization Ethernet according to claim 1 and the interconnected method of frame relay is characterized in that described step S1 comprises:
For the Ethernet interface that only provides CE to insert, set up the mapping relations of itself and corresponding fr interface DLCI;
For the Ethernet interface that provides a plurality of CE to insert, in described Ethernet interface, set up the sub-interface of respective number, and set up the mapping relations of described Ethernet sub-interface and corresponding fr interface DLCI respectively.
3. realization Ethernet according to claim 1 and the interconnected method of frame relay is characterized in that described protocol conversion device is also carried out following steps:
With the mutual Inarp message of PE, wherein, the Inarp message that sends to PE is source IP with the IP address of corresponding CE;
With the mutual ARP message of CE, wherein, the ARP message that sends to CE is source IP with the IP address of corresponding PE.
4. according to claim 2 or 3 described realization Ethernets and the interconnected method of frame relay, it is characterized in that the step of setting up mapping relations among the described step S1 comprises:
Set up mapping table;
A corresponding mutually Ethernet interface/sub-interface and the fr interface information of record comprises: the IP address of described Ethernet interface/sub-interface ID, described fr interface ID, the DLCI of described fr interface, described CE and the IP address of described PE under a list item of described mapping table.
5. realization Ethernet according to claim 4 and the interconnected method of frame relay is characterized in that, ethernet link encapsulation header and the FR link encapsulation header step related with corresponding mapping comprised:
Described ethernet link encapsulation header of record and FR link encapsulation header under the corresponding list item of described mapping table.
6. according to claim 2 or 3 described realization Ethernets and the interconnected method of frame relay, it is characterized in that the step to each map construction ethernet link encapsulation header and FR link encapsulation header among the described step S2 comprises:
With the Ethernet interface mac address that is connected with CE is source MAC, is purpose MAC with the Ethernet interface mac address of described CE, structure ethernet link encapsulation header; Wherein, described purpose MAC by and CE between the ARP message interaction obtain;
DLCI structure FR link encapsulation header with fr interface.
7. according to claim 2 or 3 described realization Ethernets and the interconnected method of frame relay, it is characterized in that described step S3 comprises:
Receive the data message that CE sends to PE, receive the Ethernet interface/sub-interface of described data message, obtain the FR link encapsulation header of corresponding mapping and replace former Ethernet encapsulation, send to described PE by corresponding fr interface then by identification;
Receive the data message that PE sends to CE, receive the DLCI of described data message, obtain the ethernet link encapsulation header of corresponding mapping and replace former FR encapsulation, send to described CE by corresponding Ethernet interface/sub-interface then by identification.
8. realize Ethernet and the interconnected protocol conversion device of frame relay for one kind, it is connected with CE by Ethernet Ethernet interface, is connected with PE by the frame relay fr interface, is used for inserting for CE provides Internet by PE; It is characterized in that described protocol conversion device comprises:
The Ethernet interface unit is made up of the Ethernet interface that connects CE;
The fr interface unit is made up of the fr interface that connects PE;
The unit is set up in mapping, is connected with the fr interface unit with described Ethernet interface unit respectively, is used for setting up one to one the mapping relations of described Ethernet interface and fr interface;
The unit is preserved in mapping, sets up the unit with described mapping and is connected, and is used to preserve the mapping relations of described Ethernet interface and fr interface;
Ethernet link encapsulation header structural unit is preserved the unit with described mapping and is connected, and is used to each map construction ethernet link encapsulation header and records described mapping to preserve in the unit;
FR link encapsulation header structural unit is preserved the unit with described mapping and is connected, and is used to each map construction FR link encapsulation header and records described mapping to preserve in the unit;
The link layer packaging switch unit, preserving the unit with described mapping is connected, be used for discerning mapping under it, adopt corresponding FR link encapsulation header or ethernet link encapsulation header to carry out the direct switching of link layer packaging and transmit from the outgoing interface of described mapping according to the incoming interface of the data message that receives.
9. realization Ethernet according to claim 8 and the interconnected protocol conversion device of frame relay is characterized in that, described mapping is set up the unit and comprised:
Sub-interface is set up module, is used to the Ethernet interface that provides a plurality of CE to insert to set up the sub-interface of respective number;
Mapping block is set up module with described sub-interface and is connected, and is used for for the Ethernet interface and the described Ethernet sub-interface that only provide CE to insert, sets up the mapping relations of itself and corresponding fr interface DLCI respectively.
10. realization Ethernet according to claim 8 and the interconnected protocol conversion device of frame relay is characterized in that described protocol conversion device also comprises:
Inarp message interaction unit is used for the mutual Inarp message with PE, and wherein, the Inarp message that sends to PE is source IP with the IP address of corresponding CE;
ARP message interaction unit is used for the mutual ARP message with CE, and wherein, the ARP message that sends to CE is source IP with the IP address of corresponding PE.
11. according to Claim 8 or 9 described realization Ethernets and the interconnected protocol conversion device of frame relay, it is characterized in that, it is mapping table that the unit is preserved in described mapping, and a list item of described mapping table is a corresponding mutually Ethernet interface/sub-interface and the fr interface information of record down, comprising: the IP address of described Ethernet interface/sub-interface ID, described fr interface ID, the IP address of the DLCI of described fr interface, described CE, described PE, ethernet link encapsulation header and FR link encapsulation header.
12. according to Claim 8 or 9 described realization Ethernets and the interconnected protocol conversion device of frame relay, it is characterized in that described link layer packaging switch unit comprises:
FR link encapsulation header handover module, be used to receive the data message that CE sends to PE, receive the Ethernet interface/sub-interface of described data message by identification, obtain the FR link encapsulation header of corresponding mapping and replace former Ethernet encapsulation, and send to described PE by corresponding fr interface;
Ethernet link encapsulation header handover module, be used to receive the data message that PE sends to CE, receive the DLCI of described data message by identification, obtain the ethernet link encapsulation header of corresponding mapping and replace former FR encapsulation, and send to described CE by corresponding Ethernet interface/sub-interface.
CN2008100846876A 2008-03-18 2008-03-18 Method for realizing Ethernet and frame-relay Internet and protocol conversion device Expired - Fee Related CN101242370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100846876A CN101242370B (en) 2008-03-18 2008-03-18 Method for realizing Ethernet and frame-relay Internet and protocol conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100846876A CN101242370B (en) 2008-03-18 2008-03-18 Method for realizing Ethernet and frame-relay Internet and protocol conversion device

Publications (2)

Publication Number Publication Date
CN101242370A true CN101242370A (en) 2008-08-13
CN101242370B CN101242370B (en) 2010-10-27

Family

ID=39933585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100846876A Expired - Fee Related CN101242370B (en) 2008-03-18 2008-03-18 Method for realizing Ethernet and frame-relay Internet and protocol conversion device

Country Status (1)

Country Link
CN (1) CN101242370B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552727B (en) * 2009-05-12 2011-06-22 杭州华三通信技术有限公司 Method of transmitting and receiving message and a provider edge router
CN103051567A (en) * 2012-12-28 2013-04-17 武汉烽火网络有限责任公司 Method for realizing non-loss interconnection between exchanged chips of different factories
CN105450589A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Remote procedure call method and system
WO2018161924A1 (en) * 2017-03-08 2018-09-13 Huawei Technologies Co., Ltd. Abstracting wireless device to virtual ethernet interface
CN110493490A (en) * 2018-05-15 2019-11-22 索尼半导体解决方案公司 Photographic device and camera system
CN110764759A (en) * 2019-10-29 2020-02-07 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
US10652713B2 (en) 2017-02-22 2020-05-12 Futurewei Technologies, Inc. Method of application data switching between a device in a wireless PAN mesh network and a virtual ethernet interface
CN114697155A (en) * 2022-03-10 2022-07-01 北京精雕科技集团有限公司 Multi-device data interaction method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2484699Y (en) * 2001-06-27 2002-04-03 中国科学院沈阳计算技术研究所 Local-network operation group convertor adapting asynchronous transmission mode technology
CN100361473C (en) * 2004-05-14 2008-01-09 迈普(四川)通信技术有限公司 Interconnection method between frame relay and Ethernet
CN1992670B (en) * 2005-12-30 2010-08-11 华为技术有限公司 Method for relay of Ethernet carrying frame

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552727B (en) * 2009-05-12 2011-06-22 杭州华三通信技术有限公司 Method of transmitting and receiving message and a provider edge router
CN103051567A (en) * 2012-12-28 2013-04-17 武汉烽火网络有限责任公司 Method for realizing non-loss interconnection between exchanged chips of different factories
CN105450589A (en) * 2014-07-31 2016-03-30 阿里巴巴集团控股有限公司 Remote procedure call method and system
CN105450589B (en) * 2014-07-31 2018-12-14 阿里巴巴集团控股有限公司 Remote invocation method and system
US10652713B2 (en) 2017-02-22 2020-05-12 Futurewei Technologies, Inc. Method of application data switching between a device in a wireless PAN mesh network and a virtual ethernet interface
WO2018161924A1 (en) * 2017-03-08 2018-09-13 Huawei Technologies Co., Ltd. Abstracting wireless device to virtual ethernet interface
US10581673B2 (en) 2017-03-08 2020-03-03 Futurewei Technologies, Inc. Abstracting wireless device to virtual Ethernet interface
CN110493490A (en) * 2018-05-15 2019-11-22 索尼半导体解决方案公司 Photographic device and camera system
CN110764759A (en) * 2019-10-29 2020-02-07 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
CN110764759B (en) * 2019-10-29 2023-07-25 神华神东煤炭集团有限责任公司 Data conversion method, storage medium and system
CN114697155A (en) * 2022-03-10 2022-07-01 北京精雕科技集团有限公司 Multi-device data interaction method and device
CN114697155B (en) * 2022-03-10 2023-11-24 北京精雕科技集团有限公司 Multi-device data interaction method and device

Also Published As

Publication number Publication date
CN101242370B (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101242370B (en) Method for realizing Ethernet and frame-relay Internet and protocol conversion device
US11336973B2 (en) Optical line terminal OLT device virtualization method and related device
CN102025591B (en) Method and system for implementing virtual private network
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
CN103636167B (en) Station opening configuration method in base station, base station, and server
CN108574616A (en) A kind of method, equipment and the system of processing routing
CN108964940B (en) Message sending method and device and storage medium
RU2661768C2 (en) Arp processing method, switch device and control module
JP2019526983A (en) Separation of control plane function and transfer plane function of broadband remote access server
US9722923B2 (en) Method operating in a fixed access network and UEs
CN102148766B (en) Method for service interworking in PON (passive optical network) under three-layer function networking
CN102137001B (en) Routing information exchange method, equipment and system
CN100407704C (en) Method of dynamically learning address on MAC layer
CN104022936B (en) A kind of tunnel establishing method and device
CN101459536A (en) Port configuration method and switching device
CN106412142A (en) Resource device address obtaining method and device
CN104717081A (en) Gateway function realization method and device
CN102882781B (en) Method, route bridge and system for transmitting message
CN103490968A (en) Method and device for interconnecting across data centers in FCoE network
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN103685007A (en) Method for MAC address learning during packet forwarding of edge devices and edge device
CN101222370B (en) Method and device for failure location using failure location packet
US11523443B2 (en) Extraction, conversion, and transmission of user packet from encapsulated packet
CN102957755B (en) A kind of address resolution method, device and information transferring method
WO2014117474A1 (en) Routing method, system, and related device

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101027

Termination date: 20200318

CF01 Termination of patent right due to non-payment of annual fee