A kind of device and base station equipment of WiMAX network transfer transmitting IP packet
Technical field
The invention belongs to the communications field, relate in particular to the device and the base station equipment of WiMAX network transfer transmitting IP packet.
Background technology
According to IEEE 802.16-2004 standard, at micro-wave access global inter communication (WorldwideInteroperability for Microwave Access, WiMAX) in the network, subscriber station (SubscriberStation, SS) to base station (Base Station, BS) registration phase can be set up three connections, be respectively basic management and connect (Basic Management Connection, BMC), main management connects (PrimaryManagement Connection, PMC) be connected with auxiliary management (Second ManagementConnection, SMC).Wherein Basic Management Connection is by the media access control layer of BS and SS (Medium Access Control, MAC) be used for exchanging short, the demanding administrative messag of real-time, Primary Management Connection is used for exchanging long, real-time requires low administrative messag, Second Management Connection then is used to transmit non real-time, measured Internet protocol (Internet Protocol, IP) message, as DHCP (Dynamic HostConfiguration Protocol, DHCP), Simple Network Management Protocol (Simple Network ManagementProtocol, SNMP) or TFTP (Trivial File Transfer Protocol, TFTP) etc.
At present mainstream applications, the IP message by the SMC channel transfer mainly contains following several:
1.SNMP message: be used for SS and SS equipment such as integrated access equipment (IntegratedAccess Device, operation and maintenance IAD) of band down;
2.TFTP message: the configuration file that is used for SS loads;
3.DHCP message: the address assignment that is used for SS;
4. absolute (Time of Day constantly, ToD) message: the system time that is used for SS is synchronous, mainly be meant RFC (Request For Comments, request comment) 868 or SNTP (SimpleNetwork Time Protocol, SNTP)/and NTP (Network Time Protocol) (Network Time Protocol, NTP);
5.Ping/ tracing program messages such as (Trace route): be used for network operation and fault location;
6. other messages are as address resolution protocol (Address Resolution Protocol, ARP) message, SS is as the sender and the recipient of above-mentioned IP message, logically be equivalent to main process equipment, when striding subnet transmission IP message, might send and receive the ARP message.
For the above-mentioned IP message, various processing method is arranged on BS at present.A kind of scheme is to realize three layers of forwarding on BS, and BS is as router, and a SS is equivalent to a main frame.Remove the DHCP message, BS is indifferent to the type of IP message, only transmits according to the purpose IP address in the message.For the DHCP message, on BS, need to realize DHCP Server (service)/Relay (forwarding) function.In this scheme, BS need support routing function, need to be concerned about SS that BS inserts and SS down the equipment of band whether at the same network segment, as not at a network segment, also need to support dynamic routing protocol or configuring static route, require BS to have very high handling property, and systems soft ware also must be supported every function of ICP/IP protocol, the realization complexity.The equipment of safeguarding through the SMC passage when SS or SS place not when the network segment, needs BS direct interface route as IAD etc., such SS takies one three layer interface, causes three layer interfaces too many, and route table items is too many, waste system resource, the system handles cost of raising BS.Simultaneously, because the DHCP Server/Relay that needs the routing management function and must support makes the user safeguard complexity, improved maintenance cost.
Another kind of scheme is a termination IP message on BS, BS provides two separate networks, one is that BS provides a three-layer network interface to be linked in higher level's network, with the intercommunication of support with SNMP Server, DHCPServer etc., another is that BS provides an Intranet, carries out intercommunication by SMC passage and SS.For interior online IP message two kinds of processing methods are arranged, the one, BS directly terminates the IP message, is not forwarded to outer net.When TFTP Server/ToD Server message for example is provided on BS, the TFTP Server/ToD Server message on the SMC that directly terminates.The 2nd, BS provides Proxy (agency)/Relay (forwarding) function between Intranet and outer net.DHCP Relay or SNMP Proxy function for example are provided on the BS, Intranet is sent to the message of outer net, or the outer net message that is sent to Intranet is transmitted to the application layer process module of BS earlier, as DHCPProxy, SNMP Proxy or ARP Proxy etc., by these application layer process modules message is judged and handle after be forwarded to Intranet or outer net again.
In such scheme, go up each message for SMC, on BS, need to support Proxy or Server function, realize complexity, influence systematic function.Simultaneously, after the Proxy processing, cause the message processing delay to strengthen, message is lost easily.
As shown in Figure 1, in above-mentioned prior art, for the user data message between BS and the SS, can directly transmit at user's face (User Plane), up IP message for SS, need to be forwarded to chain of command (Control Plane) by the SMC passage by 802.16 physical layers (PHY), the media access control layer (802.16MAC) of user's face, (LanSwitch LSW) is forwarded to higher level's network equipment to pass through the LAN switch of user's face by chain of command then.On user's face, because technology such as hardware-accelerated are arranged, message processing and message transferring speed are very fast, and on chain of command, generally be subjected to central processing unit (CentralProcessing Unit, CPU) influences such as performance, technique of compiling, parallel processing task, IP message forwarding efficient is lower, and the complexity height.
Summary of the invention
The object of the present invention is to provide a kind of device of the IP of forwarding message, be intended to solve the realization complexity that prior art exists, the problem that forward efficiency is low when BS transmits the IP message.
Another object of the present invention is to provide a kind of base station equipment of the IP of forwarding message.
The present invention realizes like this, a kind of device of WiMAX network transfer transmitting IP packet, it is characterized in that, described device is built in the base station, be connected communication with subscriber station with higher level's network equipment by empty port, receive the IP message on the auxiliary management connection SMC passage,, the IP message is forwarded to the empty port of described MAC Address correspondence according to the MAC Address of IP message.
Described device comprises:
The address administration module is used to set up and safeguard MAC Address and assists the mapping relations information that is connected between the SMC channel number of managing;
Packet forwarding module, be used to receive the IP message on the auxiliary management connection SMC passage, target MAC (Media Access Control) address inquire address administration module according to the IP message, the auxiliary management of obtaining described target MAC (Media Access Control) address correspondence connects the SMC channel number, and described IP message is forwarded to the empty port that described auxiliary management connects SMC channel number correspondence; And
The access control module is used for catching the IP message according to message access control rule from packet forwarding module, with the IP message be sent to the application management module, with the IP packet loss or duplicate.
Described address administration module comprises:
Empty port and MAC address learning module are used for the source MAC according to the IP message that receives from empty port, set up the mapping relations information that auxiliary management connects SMC channel number and MAC Address;
MAC Address and IP address learning module are used for source IP address and source MAC according to the IP message, set up the mapping relations information of IP address and MAC Address; And
The address update module is used for according to the registration of subscriber station or removes log-on message, upgrades the mapping relations information that described auxiliary management connects SMC channel number and MAC Address and IP address and MAC Address.
Described device is built in the chain of command of base station, perhaps in the LAN switch of user's face.
Described empty port comprises that the auxiliary management of connection subscriber station connects the empty port of SMC passage, and connects the empty port of out-band channel of maintenance network port or the empty port of in-band channel of connection service network port.
A kind of base station equipment of WiMAX network transfer transmitting IP packet, be connected with subscriber station and higher level's network equipment, the IP message that auxiliary management connects on the SMC passage is transmitted processing, comprise the application management module that is positioned at chain of command, and the LAN switch that is positioned at user's face, described base station equipment further comprises:
Auxiliary management connects SMC layer two switch, be connected communication with subscriber station with higher level's network equipment by empty port, receive the IP message on the auxiliary management connection SMC passage,, the IP message is forwarded to the empty port of described MAC Address correspondence according to the MAC Address of IP message.
Described auxiliary management connects SMC layer two switch and comprises:
The address administration module is used to set up and safeguard MAC Address and assists the mapping relations information that is connected between the SMC channel number of managing;
Packet forwarding module, be used to receive the IP message on the auxiliary management connection SMC passage, target MAC (Media Access Control) address inquire address administration module according to the IP message, the auxiliary management of obtaining described target MAC (Media Access Control) address correspondence connects the SMC channel number, and described IP message is forwarded to the empty port that described auxiliary management connects SMC channel number correspondence; And
The access control module is used for catching the IP message according to message access control rule from packet forwarding module, with the IP message be sent to the application management module, with the IP packet loss or duplicate.
Described address administration module comprises:
Empty port and MAC address learning module are used for the source MAC according to the IP message that receives from empty port, set up the mapping relations information that auxiliary management connects SMC channel number and MAC Address;
MAC Address and IP address learning module are used for source IP address and source MAC according to the IP message, set up the mapping relations information of IP address and MAC Address; And
The address update module is used for according to the registration of subscriber station or removes log-on message, upgrades the mapping relations information that described auxiliary management connects SMC channel number and MAC Address and IP address and MAC Address.
Described auxiliary management connects SMC layer two switch and is built in the chain of command of base station, perhaps in the LAN switch of user's face.
Described empty port comprises and is connected the empty port of auxiliary management connection SMC passage of subscriber station, and connects the empty port of out-band channel of maintenance network port or the in-band channel void port of connection service network port.
The present invention takes to carry out the mode of two layers of forwarding in BS, the IP message is handled, and has reduced the IP message and has transmitted the implementation complexity of handling, and has improved the message forward efficiency, and has reduced maintenance cost.
Description of drawings
Fig. 1 handles schematic diagram to the IP message forwarding in the prior art;
Fig. 2 is among the present invention among first embodiment, is built-in with the structure chart of the BS of SMC layer two switch;
Fig. 3 is the structure chart of SMC layer two switch among the present invention;
Fig. 4 is among the present invention among second embodiment, is built-in with the structure chart of the BS of SMC layer two switch.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention passes through built-in virtual SMC layer two switch (SMC L2 Switch) in the chain of command of BS or user's face, utilizes these SMC layer two switches that the IP message is carried out two layers of forwarding, reduces the processing complexity of IP message, improves forward efficiency.
In the present invention, do not having under the situation of specific demand, for example do not having built-in TFTP Server or DHCP Server etc. among the BS, BS only finishes the two layer forwarding of IP message to higher level's network equipment.At this moment, BS only pays close attention to the MAC Address of message for the IP address of the type of being indifferent to message and message, learns according to MAC Address, and the target MAC (Media Access Control) address that relies in the message is transmitted.
In the first embodiment of the present invention, SMC layer two switch are built in the chain of command, as shown in Figure 2.SMC layer two switch externally provide three kinds of empty ports, the empty port (L2 Virtual Port) of the corresponding SMC passage of SMC passage, and promptly what SS a BS can insert, and the empty port of what SMC passages is just arranged on SMC layer two switch.Because the registration of SS and to go registration be dynamic, so the dynamically additions and deletions of the empty port of SMC passage.
Maintenance mode in the BS tenaculum, CPU passes through in-band channel, promptly pass through LSW and service network port in the BS, during as Fast Ethernet and Gigabit Ethernet and the intercommunication of higher level's network equipment, the empty port of an in-band channel that provides by SMC layer two switch between CPU and the LSW connects communication.
Maintenance mode outside the BS tenaculum, CPU be during by maintenance network port and the intercommunication of higher level's network equipment, the empty port connection of one out-band channel that provides by SMC layer two switch between CPU and the outer maintenance network port of band.
SMC layer two switch are according to the message access control rule of ICP/IP protocol stack (TCP/IP Protocol Stack) or each application management module (Application Modules) configuration, perhaps the message access control rule of customization is caught the up IP message of the 802.16MAC layer of uploading through the SMC of correspondence Virtual Channel port, be transmitted to LSW, perhaps the downstream IP message that LSW is sent sends to the 802.16MAC layer through the SMC of correspondence Virtual Channel port, and then is transmitted to SS.
Fig. 3 shows the structure of SMC layer two switch 100 provided by the invention, access control module 101 is according to the upper layer application administration module, as ICP/IP protocol stack (TCP/IP Protocol Stack) and application module (Application Modules) or user configured message access control rules such as DHCPServer/Relay, SNMP Proxy, the IP message is carried out access control, handle so that packet forwarding module 103 carries out corresponding access control according to message access control rule to the IP message.For the IP message that receives from the empty port of SMC passage, access control module 101 is searched address mapping table or access control lists (the Access Control List that address administration module 102 is preserved, ACL), the IP message is forwarded in empty port of corresponding target or the application management module, perhaps abandons or duplicate some IP message according to message access control rule.
Message access control rule can be at the type of message, also can be at the value of certain section in the message continuous 4~128 bytes, and can also be at concrete SS.By the configuration of message access control rule, can specify the message that receives from the SMC passage to send to (as maintenance channel outside in-band channel or the band) on which data feedback channel, whether will send to the ICP/IP protocol stack, whether will issue other application management module or can specify which packet loss of receiving from network side or preferentially transmit.By the IP message is carried out access control, on BS, can select to support functions such as DHCP Server/Relay, SNMP Proxy, for example go up all IP messages for SMC, when BS only catches wherein SNMP message, and when supporting SNMP Proxy, SNMP Proxy can catch the acl rule of SNMP message to the customization of SMC layer two switch.
Mapping relations information between MAC Address and the SMC channel number is set up and safeguarded to address administration module 102.Empty port and MAC address learning module 1021 are according to the message that receives on each empty port, and the source MAC of recorded message, and the mapping corresponding relation of source MAC and SMC channel number generate message and transmit, and the example structure of this table is as follows:
| Sequence number |
The SMC channel number |
Source MAC |
| 1 |
20 |
xx-xx-xx-xx-xx-xx-xx-x1 |
| 2 |
20 |
xx-xx-xx-xx-xx-xx-xx-x2 |
| 3 |
25 |
xx-xx-xx-xx-xx-xx-xx-x3 |
| …… |
…… |
…… |
When packet forwarding module 103 is transmitted the interchannel IP message of SMC, perhaps during the IP message between SMC passage and upload control data tape internal channel/upload control data tape outer tunnel, search this table according to target MAC (Media Access Control) address, if search unsuccessfully, then abandon this message.
Under special circumstances, support different SS to form VLAN (the Virtual Local Area Network of a double layer intercommunication if desired, VLAN) time, the SS SMC of intercommunication can be divided in the VLAN, make that different SS can intercommunication in VLAN.Correspondingly, can expand " empty port+MAC Address " learning table, " the empty port+MAC Address of the VLAN+ " mode that makes into is transmitted message.
For the message that does not have target MAC (Media Access Control) address, as the ARP message, address administration module 102 also needs to support " MAC Address+IP address " learning functionality.Owing to there is not target MAC (Media Access Control) address, according to above-mentioned message rule, this ARP message will be dropped, cause the ARP message can't be in BS transparent transmission.In order to address this problem, after packet forwarding module 103 captures the ARP request message, MAC Address and IP address learning module 1022 are according to source IP address in the ARP request message and source MAC, and the mapping corresponding relation of source IP address and source MAC and SMC channel number, generate " IP address+MAC Address " mapping table.The message that does not have target MAC (Media Access Control) address for ARP message etc., packet forwarding module 103 is all earlier searched target MAC (Media Access Control) address according to purpose IP address from the mapping table of " IP address+MAC Address ", from " empty port+MAC Address " mapping table, search empty port again, utilize the empty port that finds to send the ARP message then.For searching the message that does not have success through twice, can directly abandon.Avoid the ARP message on BS to all SS broadcasting, duplicate and influence systematic function thereby avoid BS to carry out a large amount of messages, and the broadcasting of the ARP message on having avoided eating dishes without rice or wine cause congested, saved bandwidth of air-interface.
As another one embodiment of the present invention, also can be for the learning functionality of " MAC Address+IP address " by supporting DHCP Relay function to realize on BS.DHCP Relay module is provided with acl rule on SMC layer two switch, catch DHCP request message and dhcp response message, according to MAC Address and the IP address of the SS in the message, sets up the mapping table of " IP address+MAC Address ".During each freshness map table, mapping table is dealt on SMC layer two switch, can reaches equal effect with ARP study.
Because the registration of SS or to go registration be dynamic, and the maintenance channel of equipment such as SS upper supporting belt IAD also may be transmitted by the SMC passage, these equipment may insert when SS is online or leave, and therefore all there are problem of aging in " empty port+MAC Address " mapping table and " IP address+MAC Address " mapping table.In order to prevent this problem, address update module 1023 SS go to register or not online deletion SMC layer two switch on empty port the time, find corresponding record and the corresponding MAC Address of deletion in " empty port+MAC Address " table according to empty port, MAC Address from the record of " empty port+MAC Address " list deletion simultaneously, search " IP address+MAC Address " table simultaneously, find the list item of this MAC Address and delete the IP address of this MAC Address correspondence.
In the second embodiment of the present invention, as shown in Figure 4, SMC layer two switch can be placed in the LSW of user's face.In this case, IP message on the SMC is handled without the chain of command message, on user's face also without the relevant treatment of 802.16MAC layer, directly issue LSW (shared) with the user data message, LSW supports access control and " empty port+MAC Address " learning functionality, only just issues chain of command for broadcasting packets such as ARP messages and handles.Under present embodiment, the internal structure of SMC layer two switch, port and first embodiment are similar, and detailed content repeats no more.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.