For the user provides miscellaneous service service method and system
Technical field
The present invention relates to field of network communication, relating in particular to a kind ofly provides miscellaneous service service method and system for the user.
Background technology
Along with the continuous development such as broadband access technologys such as xDSL (Digital Subscriber Line), Ethernets, the application of broadband access network is more and more universal.In present stage, the business that provides on a large scale based on broadband access network only is that Internet inserts.Along with the development of broadband access technology, various types of new business will appear in broadband access network, such as, based on conversational service, the high-quality video traffic called out.Therefore, broadband access network should be able to identify these various types of new business, and the service of different brackets is provided respectively.
On the other hand, along with increasing of the network equipment, the network terminal, MAC Address (media protocol control protocol) resource is also more and more nervous.Therefore, press for a kind of technology, MAC Address is expanded.Solve MAC Address problem in short supply.
User's access networking schematic diagram as shown in Figure 1 in existing broadband access network.
In the prior art, a kind of method of in broadband access network user's multi-service being discerned is: according to VLAN (VLAN) or PVC (PVC) multi-service of the user in the broadband access network is discerned.
The shortcoming of this method is: if not supported vlans and professional mapping of the network equipment between Host (main frame) and the NAS (network access server), perhaps PVC and professional mapping.Then this method can't be discerned business at the link layer of broadband access network, also just can't carry out controls such as QOS (service quality), safety to the packet of miscellaneous service.
In the prior art, only support the mode of static configuration, also do not have the solution of dynamic assignment MAC Address for the distribution of MAC Address.
Summary of the invention
The purpose of this invention is to provide a kind of for the user provides miscellaneous service service method and system, thereby can distinguish user's different business according to different MAC Address, and provide corresponding service strategy respectively.
The objective of the invention is to be achieved through the following technical solutions:
A kind of for the user provides the miscellaneous service service method, comprising:
A, employing static state or dynamic method dispose MAC Address on the port of network access server and subscriber's main station; Network access server is bound the business of described MAC Address that disposes and subscriber's main station according to the service discovering message of the subscriber's main station that receives on the port of network access server;
B, according to the MAC Address of described binding, the miscellaneous service service is provided for described user.
Static or the dynamic method of described employing, the configuration MAC Address specifically comprises on the port of network access server and subscriber's main station:
Adopt static method, MAC Address of configuration on the port of network access server adopts static or dynamic method, the more than MAC Address of configuration on the port of subscriber's main station;
Perhaps,
Adopt static method, the more than MAC Address of configuration on the port of network access server adopts static or dynamic method, the more than MAC Address of configuration on the port of subscriber's main station;
Perhaps,
Adopt static method, the more than MAC Address of configuration on the port of network access server adopts static or dynamic method, MAC Address of configuration on the port of subscriber's main station.
Static or the dynamic method of described employing, the configuration MAC Address specifically comprises on the port of network access server and subscriber's main station:
A11, subscriber's main station adopt static or dynamic method to obtain a virtual mac address, and other subscriber's main station broadcasting or multicast carry the collision detection request message of this virtual mac address in network;
A12, when described subscriber's main station does not receive the collision detected response message that other subscriber's main station returns, then this subscriber's main station sends the MAC Address application message that carries described virtual mac address to network access server;
A13, network access server are given or a more than MAC Address of this virtual mac address correspondence of port arrangement of subscriber's main station according to the virtual mac address in the MAC Address application message that receives.
Described steps A 12 also comprises:
Other subscriber's main station that receives the collision detection request message checks whether the virtual mac address in the message is used, if, return the collision detected response message to described subscriber's main station, this subscriber's main station produces a virtual mac address again, resends the collision detection request message; Otherwise, do not return the collision detected response message to described subscriber's main station.
Described network access server is according to the service discovering message of the subscriber's main station that receives, and the business of described MAC Address that disposes on the port of network access server and subscriber's main station bound specifically comprise:
A21, subscriber's main station send the service discovering message to network access server respectively in the discovery stage of miscellaneous service;
A22, network access server are distinguished the type of miscellaneous service according to the described service discovering message that receives and the port information of subscriber's main station, and the business of described MAC Address that disposes on the port of network access server and subscriber's main station is bound.
Described step B specifically comprises:
According to MAC Address of binding on the network access server and the described MAC Address that on the port of subscriber's main station, disposes, carry out business datum mutual of various corresponding services between network access server and the subscriber's main station, and take corresponding service strategy respectively.
A kind of system that provides miscellaneous service service for the user comprises:
Subscriber's main station: be used to take static state or dynamic method on the ethernet port of subscriber's main station, to dispose MAC Address, according to the different business on the main frame, send corresponding business to network access server and find message, carry out business datum mutual of miscellaneous service according to the MAC Address of network access server binding and the MAC Address that on the port of described subscriber's main station, disposes and network access server;
Network access server: be used for according to the service discovering message of the subscriber's main station that receives and the MAC Address that on the port of network access server, disposes, bind different MAC Address respectively for the different business of subscriber's main station, MAC Address according to binding, provide different business service to subscriber's main station, and adopt different service strategies respectively.
Described subscriber's main station comprises:
Subscriber's main station MAC Address configuration module: be used to take static state or dynamic mode, give ethernet port configuration one or more than MAC Address of subscriber's main station, and the mac address information of configuration is passed to the customer service processing module;
Customer service processing module: be used for according to the different business on the subscriber's main station, send corresponding business to network access server and find message, carry out business datum mutual of miscellaneous service according to the MAC Address of network access server binding and the MAC Address that on the port of subscriber's main station, disposes and network access server.
Described MAC Address configuration module comprises:
MAC Address dynamic requests module: be used to produce virtual mac address,, send the MAC Address application message that carries this virtual mac address to network access server according to the result of this virtual mac address collision detection.
Described network access server comprises:
MAC address of server configuration module: be used to take static mode, give ethernet port configuration one or more than MAC Address of network access server, and the mac address information of configuration is passed to the MAC Address binding module;
MAC Address binding module: be used for according to the service discovering message of the subscriber's main station that receives and the mac address information that on network access server, disposes, give the different MAC Address of different business binding of subscriber's main station, and the mac address information of binding is passed to the server service processing module;
Server service processing module: be used for the mutual of business datum that the mac address information that passes over according to the MAC Address binding module and subscriber's main station carry out different business, and take corresponding service strategy respectively at different business.
Described network access server specifically comprises:
MAC Address dynamic assignment module: be used for virtual mac address according to the MAC Address application message of the subscriber's main station that receives, give one or a more than MAC Address of this virtual mac address correspondence of port arrangement of subscriber's main station, and return the MAC Address response message to subscriber's main station.
As seen from the above technical solution provided by the invention, the present invention has following advantage by the different MAC Address on the ethernet port of user's different business and NAS being bound, comparing with prior art:
1, the present invention proposes the method for supporting a plurality of MAC Address on the Ethernet physical port, adopt the professional mode of different MAC Address mappings, thereby make NAS can distinguish user's different business, and corresponding service strategy is provided respectively according to different MAC Address.
2, the present invention proposes the scheme of dynamic MAC address, can solve MAC Address problem in short supply.
Description of drawings
Fig. 1 is the access networking schematic diagram of user in existing broadband access network;
Fig. 2 is the schematic diagram of the method for the invention;
Fig. 3 is the process chart of the method for the invention;
Fig. 4 gives the process chart of the single or multiple MAC Address of configuration on the physical port of Host for the mode that adopts dynamic-configuration;
Fig. 5 is the structure chart of system of the present invention.
Embodiment
The invention provides a kind ofly provides miscellaneous service service method and system for the user.Core of the present invention is: configuration one or a more than MAC Address on the ethernet port of subscriber's main station and NAS, NAS binds the miscellaneous service of described MAC Address that disposes and subscriber's main station respectively on its port.
Describe the present invention in detail below in conjunction with accompanying drawing, the schematic diagram of the method for the invention as shown in Figure 2, the process chart of the method for the invention comprises the steps: as shown in Figure 3
Step 3-1, employing static state or the dynamic method of salary distribution, the single or multiple MAC Address of configuration in NAS and Host.
The function that NAS among the present invention mainly provides user's Ethernet to insert.As provide BRAS (BAS Broadband Access Server), three-tier switch function.Host among the present invention is the client device that adopts Ethernet interface.Include but not limited to PC (personal computer), STB (top box of digital machine), I P telephone terminal, mobile phone, portable machine PC etc.Be bearer network between Host and the NAS.The present invention does not have specific (special) requirements to bearer network, and bearer network can be communicated with in physical layer as long as guarantee Host and NAS.Bearer network includes but not limited to SDH (synchronous digital hierarchy) network, ATM (asynchronous transfer mode) network, FR (frame relay) network, Ethernet, MPLS (multiprotocol label switching) bearer network etc.
The present invention is the single or multiple MAC Address of configuration in NAS and Host at first, in actual applications, can whether support many MAC Address according to the interface of Host, NAS, realize three kinds of allocation plans:
Scheme 1:Host is single MAC Address, and NAS is many MAC Address;
Scheme 2:Host is many MAC Address, and NAS is many MAC Address;
Scheme 3:Host is many MAC Address, and NAS is single MAC Address.
The present invention adopts the mode of static configuration on NAS, give the single or multiple MAC Address of configuration on the physical port of NAS.
The present invention adopts the mode of static state or dynamic-configuration on Host, give the single or multiple MAC Address of configuration on the physical port of Host.Adopt handling process that the scheme of dynamic-configuration gives the single or multiple MAC Address of configuration on the physical port of Host as shown in Figure 4, this scheme need the Ethernet message " type " is provided with types such as collision detection request, collision detected response, MAC Address application and MAC Address response in the field.This scheme comprises the steps:
1, the MAC Address of Ethernet is 48 bits at present, and the resource of MAC Address is relatively more precious, and the present invention is for the present scheme of compatibility, under the situation that does not increase present MAC Address, in present MAC Address, mark one section MAC Address space, use for the dynamic MAC address user.
Host at first adopts the scheme of static configuration, promptly sets by the normal structure static allocation or by network interface card producer is static; Perhaps adopt the scheme that dynamically produces, promptly dynamically generated by random algorithm, obtain a virtual mac address, the length of this virtual mac address adopts 128 bits, Host of unique identification in the MAC Address assigning process.Then, other Hos broadcasting or the multicast collision detection request message that carry this virtual mac address of Host in local area network (LAN).
2, after other Host receives the collision detection request message that carries virtual mac address, just carry out collision detection, promptly detect and whether also have other Host also using this virtual mac address, if detected, then respond a collision detected response message to the Host that sends message, this Host just produces a virtual mac address again, again to other Host broadcasting or multicast collision detection request message; Do not have if detect, then do not respond the collision detected response message.
3, when the Host that sends message does not receive the collision detected response message, then explanation does not have other Host to use this virtual mac address, so, this Host sends the MAC Address application message that carries this virtual mac address to NAS, request distributes the real mac address of this virtual mac address correspondence, and this real mac address can be for one or more.
4, after NAS receives the MAC Address application message that carries virtual mac address, just the real mac address of this virtual mac address correspondence is distributed to the Host that sends message, returned a MAC Address response message to this Host simultaneously.
A Host can repeat above-mentioned process, applies for a plurality of MAC Address.
Step 3-2, the MAC Address of miscellaneous service on the Host and configuration is bound.
After having distributed one or more MAC Address for Host and NAS, just need the MAC Address of miscellaneous service on the Host and configuration is bound.
Host is at first in discovery stage of its various different business, the discovery stage professional as DHCP (DHCP) and PPPOE (peer-peer protocol on the Ethernet) is professional, NAS broadcasting or multicast service in network are found message, one of them receives the NAS of service discovering message, according to port position or the domain information of Host, distinguish out the type of service of Host, according to this type of service, distribute a corresponding MAC Address that on NAS, be configured and professional.Adopt this specific MAC Address to return response message to Host, NAS just uses this particular mac address and Host to carry out the mutual of business datum in follow-up business datum process of transmitting.Host can take identical or different MAC Address that NAS is responded at different business according to the MAC Address that disposes on its port, so, just realized business and the MAC Address of Host are bound.
Adopt said method, the MAC Address that disposes on each business on the Host and the NAS port can be bound respectively.
Step 3-3, according to different MAC Address, NAS provides the miscellaneous service service to Host.
After having realized the miscellaneous service on the Host and MAC Address bound, NAS just can distinguish the miscellaneous service on the Host according to MAC Address, perhaps adopt mode by Portal (inlet), MAC Address is mapped to different business, then, take different service strategies at different business.Comprise the QOS strategy, security strategy etc.
The structure chart of system of the present invention comprises as shown in Figure 5 as lower module:
Subscriber's main station: be used to take static state or dynamic method on its ethernet port, to dispose MAC Address, according to the different business on the main frame, send corresponding business to network access server and find message, according to the MAC Address of network access server binding and the MAC Address that on its port, disposes, carry out business datum mutual of miscellaneous service with network access server, subscriber's main station comprises subscriber's main station MAC Address configuration module and customer service processing module, and the MAC Address configuration module comprises MAC Address dynamic requests module.
Network access server: be used for according to the service discovering message of the subscriber's main station that receives and the MAC Address that on its port, disposes, bind different MAC Address respectively for the different business of subscriber's main station, MAC Address according to binding, provide different business service to subscriber's main station, and adopt different service strategies respectively.Network access server comprises MAC Address binding module, server service processing module, MAC Address dynamic assignment module and MAC address of server configuration module.
Wherein, the subscriber's main station MAC Address configuration module of subscriber's main station: be used to take static state or dynamic mode, give ethernet port configuration one or more than MAC Address of subscriber's main station, and the mac address information of configuration is passed to the customer service processing module.This module comprises: MAC Address dynamic requests module.
Wherein, the customer service processing module of subscriber's main station: be used for according to the different business on the subscriber's main station, send corresponding business to network access server and find message, carry out business datum mutual of miscellaneous service according to the MAC Address of network access server binding and the MAC Address that on the port of subscriber's main station, disposes and network access server.
Wherein, the MAC Address dynamic requests module of MAC Address configuration module: be used to produce virtual mac address,, send the MAC Address application message that carries this virtual mac address to network access server according to the result of this virtual mac address collision detection.
Wherein, the MAC address of server configuration module of network access server: be used to take static mode, give ethernet port configuration one or more than MAC Address of network access server, and the mac address information of configuration is passed to the MAC Address binding module;
Wherein, the MAC Address binding module of network access server: be used for according to the service discovering message of the subscriber's main station that receives and the mac address information that on its port, disposes, give the different MAC Address of different business binding of subscriber's main station, and the mac address information of binding is passed to the server service processing module.
Wherein, the server service processing module of network access server: be used for the mac address information that passes over according to the MAC Address binding module, carry out business datum mutual of different business with subscriber's main station, and take corresponding service strategy respectively at different business.
Wherein, the MAC Address dynamic assignment module of network access server: be used for virtual mac address according to the MAC Address application message of the subscriber's main station that receives, give one or a more than MAC Address of this virtual mac address correspondence of port arrangement of subscriber's main station, and return the MAC Address response message to subscriber's main station.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.