Background technology
Frame relay is the wan protocol of current main flow, can support data, fax and Voice Applications, develop very swift and violent, and the coverage of frame-relay network suitable extensively, early stage Digital Data Net (the Digital Data Network DDN) great majority of building have all been used frame relay protocol.
In current local area network (LAN) field, Ethernet has then occupied dominant position, because networking and planning are very simple, and various data communications equipment and telecommunication apparatus all have Ethernet interface, bandwidth is very high and very flexible, can provide 10M/100M/1000M, and the ethernet standard of 10G ratified by IEEE in 2002 also, and price is very cheap.
Central server of present a plurality of remote node visits is to use relatively more typical networking model, for example, company or mechanism are provided with a central server in general headquarters, branch company or the branch far from general headquarters need visit central server, they are linked into wide area network by low speed line usually, and central server inserts with high-speed line, so that provide service for a plurality of remote nodes simultaneously.The commonplace application of this networking model is frame relay and ATM business interconnection, but the ATM resource in this application relatively lacks in some areas and costs an arm and a leg, and user's application demand can't be met; For those simple application, atm network is managed more complicated in addition.
Summary of the invention
Technical problem to be solved by this invention is, a kind of frame relay and Ethernet interconnected method are provided, and is connected the remote node on the wide area network that uses frame relay protocol with solution and the interconnection problems of the central server that inserts with Fast Ethernet.
The present invention solve the technical problem the technical scheme that is adopted, a kind of frame relay and Ethernet interconnected method are provided, the remote network equipment that is connected with Ethernet through frame relay is distributed MAC Address, with of the identify label of this MAC Address as remote network equipment, and set up the mapping table of this MAC Address and frame-relay network sign, carry out protocol conversion and data forwarding between frame relay one Ethernet according to this mapping table.
Described frame-relay network is designated interface number and DLCI.Described mapping table comprises the mapping of Frame Relay Interface, DLCI and MAC Address.Having under the situation of a plurality of Ethernet interfaces, described mapping table also comprises the Ethernet slogan.The processing of the packet that remote network equipment equipment in Ethernet is sent may further comprise the steps: a recognition interface number and DLCI; B searches corresponding MAC Address according to mapping table; C is an ethernet frame with data encapsulation; D sends data from Ethernet interface.The processing of the packet that remote network equipment equipment in Ethernet is sent may further comprise the steps: a recognition interface number and DLCI; B searches corresponding MAC Address and Ethernet interface according to mapping table; C is an ethernet frame with data encapsulation; D sends data from Ethernet interface.When being encapsulated as ethernet frame, the target MAC (Media Access Control) address of ethernet frame is the purpose network equipment, i.e. the MAC Address of equipment in the Ethernet, and source MAC is the MAC Address of the remote network equipment in the mapping table.Processing to the packet of remote network equipment transmission may further comprise the steps to equipment in the Ethernet: a identifying purpose MAC Address; B searches corresponding interface number and DLCI according to mapping table; C carries out protocol conversion, encapsulation of data according to interface number and DLCI; D sends data from the Frame Relay Interface of correspondence.
The invention has the beneficial effects as follows, adopt frame relay and the interconnected technology of Ethernet, finish the conversion of actual agreements, for IP layer and upper layer application, its transmission channel is transparent.Therefore this technology is supported the Routing Protocol of being correlated with fully.Though use three layers of routing function of router can reach the purpose of carrying out frame relay and ethernet interconnect equally, the present invention more has following advantage:
The present invention is two layers on function, and it does not need to be concerned about the concrete application of remote node and central network point server, and router must be transmitted with three layers of routing function;
For central server, each remote node is exactly a main frame on the Ethernet, so the network planning is very flexible, and central server can ownly distribute MAC Address to remote node;
The present invention can realize in the access device of transmission network, therefore can provide than router more the interface of horn of plenty to remote node;
In addition, for the equipment of central server, it does not need to increase any hardware facility and software module, as long as Ethernet interface and Ethernet protocol stack are arranged.
The present invention is further illustrated below in conjunction with specification drawings and specific embodiments.
Embodiment
As shown in figures 1 and 3, the remote network equipment distribution MAC Address of the present invention to being connected with Ethernet through frame relay with the identify label of this MAC Address as remote network equipment, and set up the mapping table of this MAC Address and Frame Relay Interface number and DLCI.
This paper is considered as local network with Ethernet, and comparatively speaking, described remote network equipment promptly is the network equipment that is connected with Ethernet with frame relay.Protocol conversion described herein is meant that the packet that will meet a kind of agreement is converted to the packet that meets another kind of agreement, comprise that data unpack and encapsulate, the packet that for example will meet Ethernet protocol is converted to the packet that meets frame relay protocol, or reverse conversion.
Processing to the remote network equipment packet that equipment sends in Ethernet may further comprise the steps:
A recognition interface number and DLCI;
B searches corresponding MAC Address and Ethernet interface according to mapping table;
C is an ethernet frame with data encapsulation;
D sends data from Ethernet interface.
The present invention is encapsulation of data according to the following steps:
A separates data in the frame relay data bag;
B is encapsulated as ethernet frame, and the target MAC (Media Access Control) address of described ethernet frame is the MAC Address of the purpose network equipment, and source MAC is the MAC Address of the remote network equipment in the mapping table.
As shown in Figure 2, the present invention handles the data that the network equipment sends to remote network equipment in the Ethernet:
Processing to the packet of remote network equipment transmission may further comprise the steps to equipment in the Ethernet:
A identifying purpose MAC Address;
B searches corresponding interface number and DLCI according to mapping table;
C carries out protocol conversion, encapsulation of data according to interface number and DLCI;
D sends data from the Frame Relay Interface of correspondence.
As an embodiment, as shown in Figure 3, realize the inventive method with protocol converter.Remote network equipment 1 (the IP address is 1.1.1.1) is linked into frame-relay network by the Frame Relay Access Device of telecom operators, and a frame relay pvc 16 that distributes to its, and this PVC corresponds on the Frame Relay Interface 1 of protocol converter; Remote network equipment 2 (the IP address is 1.1.1.2) directly is linked on the protocol converter by the Frame Relay Access Device of telecom operators, and a frame relay pvc 17 that distributes to its, and this PVC corresponds on the Frame Relay Interface 2 of protocol converter; Central server can be a router, also can be a computer, and the IP address of its Ethernet interface f0 is that the Ethernet interface f0 of 1.1.1.10 and protocol converter is connected on the Ethernet, as equipment in the Ethernet.
The MAC Address of central server Ethernet interface is 0811.3e13.0010, it is the manager, distribute a MAC Address 0811.3e13.0001 therefore for remote network equipment 1, distribute a MAC Address 0811.3e13.0002 for remote network equipment 2, and be added in the ARP table of oneself:
Purpose IP address | ????ARP |
????1.1.1.1 | ?0811.3e13.0001 |
????1.1.1.2 | ?0811.3e13.0002 |
On protocol converter, just there is a following address mapping table like this:
Frame Relay Interface | Frame relay pvc | Ethernet interface | MAC Address |
????1 | ????16 | ????f0 | ?0811.3e13.0001 |
????2 | ????17 | ????f0 | ?0811.3e13.0002 |
Certainly protocol converter also must be known the MAC Address 0811.3e13.0010 of central server.
When remote network equipment 1 will be sent out data to central server, its data were packaged into the Frame Relay Interface 1 that frame relay frame is delivered to protocol converter.Protocol converter is according to address mapping table, find corresponding ether outlet f0 and MAC Address 0811.3e13.0010, (purpose MAC is 0811.3e13.0010 to structure Ethernet stem, source MAC is 0811.3e13.0001), carry out the protocol data conversion then, complete ethernet frame is sent to central server from the f0 mouth.
When central server will be given 1 data of remote network equipment, it is according to the IP address search ARP table of remote network equipment 1, data encapsulation is become ethernet frame (purpose MAC is 0811.3e13.0001, and source MAC is 0811.3e13.0010) and sends to protocol converter.Protocol converter is according to address mapping table, find corresponding Frame Relay Interface 1 and PVC16, structure frame relay stem (DLCI is 16) is carried out the protocol data conversion then, complete frame is sent for 1 mouthful from Frame Relay Interface, transmit to remote network equipment 1 by frame-relay network.
Communicating by letter of remote network equipment 2 and central server is similar.When needs increase a new remote node, only need central server to distribute MAC Address for this remote node, and the corresponding map addresses list item of configuration get final product on protocol converter.
When the Ethernet interface of protocol converter breaks down, inform corresponding Frame Relay Interface by the pvc state management, then by frame relay lmi notice of settlement remote node; When Ethernet interface recovers, equally by pvc state management and LMI notice of settlement remote node.