CN105472054A - Message transmission method and access equipment - Google Patents

Message transmission method and access equipment Download PDF

Info

Publication number
CN105472054A
CN105472054A CN201410452469.9A CN201410452469A CN105472054A CN 105472054 A CN105472054 A CN 105472054A CN 201410452469 A CN201410452469 A CN 201410452469A CN 105472054 A CN105472054 A CN 105472054A
Authority
CN
China
Prior art keywords
address
access device
terminal equipment
dhcp message
position information
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
CN201410452469.9A
Other languages
Chinese (zh)
Other versions
CN105472054B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410452469.9A priority Critical patent/CN105472054B/en
Priority to PCT/CN2015/081671 priority patent/WO2016034006A1/en
Publication of CN105472054A publication Critical patent/CN105472054A/en
Application granted granted Critical
Publication of CN105472054B publication Critical patent/CN105472054B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a message transmission method and access equipment. The access equipment receives an access request from terminal equipment; and if an internet protocol (IP) address used by the terminal equipment is a static IP address, the access equipment acquires the IP address, a media access control (MAC) address and access location information of the terminal equipment, generates a dynamic host configuration protocol (DHCP) message by simulation according to the IP address, the MAC address and the access location information, and sends the DHCP message to gateway equipment. By means of the message transmission method and the access equipment, the gateway equipment can conveniently acquire access location information of a user with a statically configured IP address in a method of acquiring the DHCP message, so as to achieve precise policy control such as authentication of the user with the statically configured IP address.

Description

A kind of file transmitting method and access device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of file transmitting method and access device.
Background technology
On the internet, in order to ensure network security, usually need to carry out access authentication during user access network, in order to realize user oriented accurate policy control, network authentication apparatus needs the concrete accessing position information knowing user.
Because all data on network are all transmitted by message form, gateway device can (English: dynamichostconfigurationprotocol be called for short: DHCP) message obtains the accessing position information of user by catching DHCP.But, this can only be user by Dynamic Host Configuration Protocol server dynamic assignment for IP address, and be the user (user hereinafter referred to as static configuration IP address) of static configuration for IP address, gateway device cannot get their concrete accessing position information easily, can only, by configuring manually, realize complicated.
Summary of the invention
The invention provides a kind of method and the access device that send message, gateway device can be made by DHCP message, the accessing position information of the user of static configuration IP address can be got easily.
First aspect present invention provides a kind of file transmitting method, comprising:
The access request of access device receiving terminal apparatus;
If the internet protocol address that described terminal equipment uses is static ip address, then described access device obtains the IP address of described terminal equipment, MAC address and accessing position information;
Described access device generates dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation;
Described DHCP message is sent to gateway device by described access device.
In conjunction with first aspect, in the first implementation of first aspect, described access device generates DHCP message according to described IP address, MAC Address and accessing position information simulation and comprises:
Described IP address, MAC Address and accessing position information, according to DHCP standard message form, join in each field of DHCP message by described access device, generate DHCP message.
In conjunction with the first implementation of first aspect, in the second implementation of first aspect, the described each field described IP address, MAC Address and accessing position information being written to described DHCP message comprises:
Described IP address is write in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field; Described accessing position information is write in the option option82 of described DHCP message.
In conjunction with first aspect or the first implementation of first aspect or the second implementation of first aspect, in the third implementation in first aspect, after the access request of described access device receiving terminal apparatus, described method also comprises:
Described access device obtains IP address and the MAC Address of described terminal equipment according to described access request; Judge the corresponding relation whether storing described IP address and MAC Address in the dynamic address binding table on described access device, if do not store the corresponding relation of described IP address and MAC Address in described dynamic address binding table, then determine that the IP address that described terminal equipment uses is static ip address.
In conjunction with the third implementation of first aspect, in the 4th kind of implementation of first aspect, if the IP address that described terminal equipment uses is static ip address, described method also comprises: the corresponding relation storing described IP address and MAC Address in described dynamic address binding table.
Second aspect present invention provides a kind of access device, comprising:
Receiving element, for the access request of receiving terminal apparatus;
Acquiring unit, for when the internet protocol address that described terminal equipment uses is for static ip address, obtains the IP address of described terminal equipment, MAC address and accessing position information;
Generation unit, for generating dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation;
Transmitting element, for sending to gateway device by described DHCP message.
In conjunction with second aspect, in the first implementation of second aspect, described generation unit comprises:
Writing unit, for according to DHCP standard message form, is written to described IP address, MAC Address and accessing position information in each field of described DHCP message.
In conjunction with the first implementation of second aspect, in the second implementation of second aspect, said write unit specifically for:
Write in described IP address in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field; Described accessing position information is write in the option option82 of described DHCP message.
In conjunction with second aspect or the first implementation of second aspect or the second implementation of second aspect, in the third implementation of second aspect, described equipment also comprises:
Resolution unit, for obtaining IP address and the MAC Address of described terminal equipment according to described access request;
Determining unit, for judging the corresponding relation whether storing described IP address and MAC Address in the dynamic address binding table on described access device, if do not store the corresponding relation of described IP address and MAC Address in described dynamic address binding table, then determine that the IP address that described terminal equipment uses is static ip address.
In conjunction with the third implementation of second aspect, in the 4th kind of implementation of second aspect, described access device also comprises:
Memory cell, for when not storing the corresponding relation of described IP address and MAC Address in described dynamic address binding table, stores the corresponding relation of described IP address and described MAC Address in described dynamic address binding table.
In the present invention, the access request of access device receiving terminal apparatus, if the internet protocol address that terminal equipment uses is static ip address, then access device obtains the IP address of terminal equipment, MAC address and accessing position information, generate dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation, described DHCP message is sent to gateway device.Like this, gateway device by obtaining the mode of DHCP message, can get the accessing position information of the user of static configuration IP address easily, thus realization is to accurate policy control such as the certifications of the user of static configuration IP address.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of file transmitting method in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of file transmitting method in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another kind of file transmitting method in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another kind of file transmitting method in the embodiment of the present invention;
Fig. 5 is the structural representation of access device in the embodiment of the present invention;
Fig. 6 is the structural representation of access device in another embodiment of the present invention;
Fig. 7 is the structural representation of access device in another embodiment of the present invention;
Fig. 8 is the structural representation of access device in another embodiment of the present invention;
Fig. 9 is the structural representation of access device in another embodiment of the present invention;
The embody rule scene schematic diagram that Figure 10 is access device described in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of method and the relevant device that send message, for gateway device by DHCP message, get the accessing position information of the user of static configuration IP address easily.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, a kind of file transmitting method that the embodiment of the present invention provides comprises:
101, the access request of access device receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
If the internet protocol address that 102 described terminal equipments use is static ip address, then described access device obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.103, described access device generates dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation.
Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using described static ip address.
104, described DHCP message is sent to gateway device by described access device;
Described DHCP message can be sent to gateway device with the form of broadcast or clean culture by access device.
In the embodiment of the present invention, access device generates DHCP message according to the IP address of the user of static configuration IP address, MAC Address and accessing position information simulation, send to gateway device, gateway device is after receiving described DHCP message, can get the accessing position information of the user of static configuration IP address easily, thus realization is to accurate policy control such as the certifications of the user of static configuration IP address.
Above in embodiment, access device generates DHCP message according to the IP address of the user of static configuration IP address, MAC Address and accessing position information simulation, send to gateway device, in actual applications, when access device simulation generates DHCP message, the message format of standard be followed, below the process of access device physical simulation generation DHCP message is described, please refer to Fig. 2, in the embodiment of the present invention, another kind of file transmitting method comprises:
201, the access request of access device receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
If the internet protocol address of 202 whole described end equipment use is static ip address, then described access device obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.
203, described access device generates new DHCP message.
Access device generates new DHCP message by DHCP configuration protocol and order.
204, described access device writes described IP address in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field.
Described access device by DHCP configuration protocol and order the IP address of described terminal equipment and MAC Address are written to new DHCP message respectively ClientIPaddress field and ClientIPaddress field in.It should be noted that, the field format of just a kind of DHCP message form described herein, described IP address and MAC Address also can deposit the respective field of the DHCP message of extended formatting, are not construed as limiting herein.
205, described access device writes described accessing position information in the option option82 of described DHCP message.
Option field in DHCP message contains option82, and described option82 is for depositing the accessing position information of terminal equipment.Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using described static ip address.
206, described DHCP message is sent to gateway device by described access device.
Described DHCP message is sent to gateway device with the form of broadcast by access device.
In the embodiment of the present invention, describe the method that access device physical simulation generates DHCP message, access device simulation generates DHCP message, use standard DHCP message form, change is not made to form, just can by the accessing position information of the user of static configuration IP address write DHCP message, gateway device does not need to make any change and configuration, just can by obtaining the mode of DHCP message, resolve described DHCP message, get the accessing position information of the user of static configuration IP address easily.For the DHCP message of different-format, concrete generation method is identical, does not repeat herein.
Above in embodiment, describe be when terminal equipment use IP address be static ip address time after operating process, in actual applications, first access device can judge whether the IP address that terminal equipment uses is static ip address, access device is first judged whether the IP address that terminal equipment uses is that static ip address is specifically described below, please refer to Fig. 3, in the embodiment of the present invention, another kind of file transmitting method comprises:
301, the access request of access device receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
302, described access device resolves the access request that described terminal equipment sends.
Access device will obtain the address resolution or data that terminal equipment sends, and resolves with regard to needing the access request to terminal equipment sends.
303, whether store the corresponding relation of described IP address and MAC Address in the dynamic address binding table that described access device judges on described access device, if not, then the IP address that described terminal equipment uses is static ip address, performs 304; If so, other steps are then performed.
Access device is provided with dynamic address binding table, for the corresponding relation of the IP address and MAC Address of depositing terminal equipment, if terminal equipment uses dynamic IP addressing, after being connected to access device, access device can carry out a dynamic DHCP resolving to described terminal equipment, and is stored in dynamic address binding table in the IP address of described terminal equipment and MAC Address.So IP address and the MAC Address by whether storing described terminal equipment in the dynamic address binding table that judges access device, can determine whether the IP address that described terminal equipment uses is static ip address.
304, described access device stores the corresponding relation of described IP address and MAC Address in described dynamic address binding table.
Access device stores IP address and the MAC Address of the terminal equipment using static ip address in dynamic address binding table, that conveniently described access device obtains the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address relation binding table.
305, described access device obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.
306, described access device generates dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation.
Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using described static ip address.
307, described DHCP message is sent to gateway device by described access device.
DHCP message is sent to gateway device with the form of broadcast by access device.
In the embodiment of the present invention, by the IP address and MAC Address judging whether to store in dynamic address binding table described terminal equipment, access device determines whether the IP address that described terminal equipment uses is static ip address, if, then the IP address of described terminal equipment and MAC Address are stored in described dynamic address binding table, like this, facilitate described access device to obtain the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address binding table, the efficiency that access device E-Packets can be improved.
Above in embodiment, describe access device and judge whether the IP address that terminal equipment uses is static ip address, how access device is judged whether the IP address that terminal equipment uses is that static address and the concrete process generating DHCP message are described below, please refer to Fig. 4, in the embodiment of the present invention, another kind of file transmitting method comprises:
401, the access request of access device receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
402, described access device resolves the access request that described terminal equipment sends.
Access device will obtain the address resolution or data that terminal equipment sends, and resolves with regard to needing the access request to terminal equipment sends.
403, whether store the corresponding relation of described IP address and MAC Address in the dynamic address binding table that described access device judges on described access device, if not, then the IP address that described terminal equipment uses is static ip address, performs 304; If so, other steps are then performed.
Access device is provided with dynamic address binding table, for the corresponding relation of the IP address and MAC Address of depositing terminal equipment, if terminal equipment uses dynamic IP addressing, after being connected to access device, access device can carry out a dynamic DHCP resolving to described terminal equipment, and is stored in dynamic address binding table in the IP address of described terminal equipment and MAC Address.So IP address and the MAC Address by whether storing described terminal equipment in the dynamic address binding table that judges access device, can determine whether the IP address that described terminal equipment uses is static ip address.
404, described access device stores the corresponding relation of described IP address and MAC Address in described dynamic address binding table.
Access device stores IP address and the MAC Address of the terminal equipment using static ip address in dynamic address binding table, that conveniently described access device obtains the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address relation binding table.
405, described access device obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.
406, described access device generates new DHCP message.
Access device generates new DHCP message by DHCP configuration protocol and order.
407, described access device writes described IP address in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field.
Described access device by DHCP configuration protocol and order the IP address of described terminal equipment and MAC Address are written to new DHCP message respectively ClientIPaddress field and ClientIPaddress field in.It should be noted that, the field format of just a kind of DHCP message form described herein, described IP address and MAC Address also can deposit the respective field of the DHCP message of extended formatting, are not construed as limiting herein.
408, described access device writes described accessing position information in the option option82 of described DHCP message.
Option field in DHCP message contains option82, and described option82 is for depositing the accessing position information of terminal equipment.Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to customer service the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using static ip address.
409, DHCP message described in described access device broadcast transmission.
Described DHCP message is sent to gateway device with the form of broadcast by access device.
In the embodiment of the present invention, by the IP address and MAC Address judging whether to store in dynamic address binding table described terminal equipment, access device determines whether the IP address that described terminal equipment uses is static ip address, if, then the IP address of described terminal equipment and MAC Address are stored in described dynamic address binding table, like this, facilitate described access device to obtain the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address binding table, the forward efficiency of access device can be improved.Access device simulation generates DHCP message, use standard DHCP message form, change is not made to form, just can by the accessing position information of the user of static configuration IP address write DHCP message, upper layer network equipment (as gateway device) does not need to make any change and configuration, just by obtaining the mode of DHCP message, described DHCP message can be resolved, gets the accessing position information of the user of static configuration IP address easily.For the DHCP message of different-format, concrete generation method is identical, does not repeat herein.
In actual applications, access request comprises the ARP request of terminal equipment initiation or the data message of terminal equipment transmission; Accessing position information comprises the ID of access device, terminal equipment is linked into access device port numbers or SSID; DHCP message comprises DHCP_discover message, DHCP_request message and DHCP_inform message.Be applicable to above-mentioned all embodiments, therefore not to repeat here.
Please refer to Fig. 5, the access device in the embodiment of the present invention comprises:
Receiving element 501, for the access request of receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
Acquiring unit 502, for when the internet protocol address that described terminal equipment uses is for static ip address, obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.
Generation unit 503, for generating dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation.
Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, be by resolve DHCP message obtain the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving DHCP message, can obtain the accessing position information of the terminal equipment using static ip address.
Transmitting element 504, for sending to gateway device by described DHCP message.
DHCP message is sent to gateway device with the form of broadcast by access device.
In the embodiment of the present invention, generation unit 503 generates DHCP message according to the IP address of the user of static configuration IP address, MAC Address and accessing position information simulation, send to gateway device, gateway device is after receiving described DHCP message, can get the accessing position information of the user of static configuration IP address easily, thus realization is to accurate policy control such as the certifications of the user of static configuration IP address.
Above in embodiment, generation unit 503 generates DHCP message according to the IP address of the user of static configuration IP address, MAC Address and accessing position information simulation, sends to gateway device, in actual applications, access device simulation generates DHCP message, and the message format following standard generates.Please refer to Fig. 6, based on the access device described in Fig. 5, in the access device of another embodiment of the present invention:
Described generation unit 503 specifically comprises:
Writing unit 5031, for writing described IP address in the ClientIPaddress field of described DHCP message; Write described MAC Address in ClientMACaddress field, in the option option82 of described DHCP message, write described accessing position information.
Described access device by DHCP configuration protocol and order the IP address of described terminal equipment and MAC Address are written to new DHCP message respectively ClientIPaddress field and ClientIPaddress field in.It should be noted that, the field format of just a kind of DHCP message form described herein, described IP address and MAC Address also can deposit the respective field of the DHCP message of extended formatting, are not construed as limiting herein.Option field in DHCP message contains option82, and described option82 is for depositing the accessing position information of terminal equipment.Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using described static ip address.
In the embodiment of the present invention, access device simulation generates DHCP message, use standard DHCP message form, change is not made to form, just can by the accessing position information of the user of static configuration IP address write DHCP message, upper layer network equipment (as gateway device) does not need to make any change and configuration, just can by obtaining the mode of DHCP message, resolve described DHCP message, get the accessing position information of the user of static configuration IP address easily.For the DHCP message of different-format, concrete generating apparatus is identical, does not repeat herein.
Above in embodiment, description be the IP address used when terminal equipment be the operating process of static ip address, in actual applications, first access device can judge whether the IP address that terminal equipment uses is static ip address.Please refer to Fig. 7, the access device of another embodiment of the present invention comprises:
Receiving element 501, for the access request of receiving terminal apparatus.
During terminal equipment accesses network, need to send access request to access device.
Resolution unit 505, for resolving the access request of described terminal equipment.
Access device will obtain the address resolution or data that terminal equipment sends, and resolves with regard to needing the access request to terminal equipment sends.
Determining unit 506, for judging the corresponding relation whether storing described IP address and MAC Address in the dynamic address binding table on described access device, if do not store the corresponding relation of described IP address and MAC Address in described dynamic address binding table, then determine that the IP address that described terminal equipment uses is static ip address.
Access device is provided with dynamic address binding table, for the corresponding relation of the IP address and MAC Address of depositing terminal equipment, if terminal equipment uses dynamic IP addressing, after being connected to access device, access device can carry out a dynamic DHCP resolving to described terminal equipment, and is stored in dynamic address binding table in the IP address of described terminal equipment and MAC Address.So IP address and the MAC Address by whether storing described terminal equipment in the dynamic address binding table that judges access device, can determine whether the IP address that described terminal equipment uses is static ip address.
Memory cell 507, for when not storing the corresponding relation of described IP address and MAC Address in described dynamic address binding table, stores the corresponding relation of described IP address and described MAC Address in described dynamic address binding table.
Access device stores IP address and the MAC Address of the terminal equipment using static ip address in dynamic address binding table, that conveniently described access device obtains the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address relation binding table.
Acquiring unit 502, for when the internet protocol address that described terminal equipment uses is for static ip address, obtains the IP address of described terminal equipment, MAC address and accessing position information.
Because gateway device will carry out certification to terminal user, need to utilize the accessing position information of described terminal equipment on access device, so access device must obtain the accessing position information of described terminal equipment.
Generation unit 503, for generating dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation.
Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to customer service the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using static ip address.
Transmitting element 504, for sending to gateway device by described DHCP message.
DHCP message is sent to gateway device with the form of broadcast by access device.
In the embodiment of the present invention, describe access device and determine whether the IP address that described terminal equipment uses is static ip address by the IP address and MAC Address judging whether to store in dynamic address binding table described terminal equipment, if, then the IP address of described terminal equipment and MAC Address are stored in described dynamic address binding table, like this, facilitate described access device to obtain the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address binding table, the efficiency that access device E-Packets can be improved.
Above in embodiment, describe access device and judge whether the IP address that terminal equipment uses is static ip address.Please refer to Fig. 8, on the basis shown in Fig. 7, in the access device of another embodiment of the present invention:
Described generation unit 503 specifically comprises:
Writing unit 5031, for writing described IP address in the ClientIPaddress field of described DHCP message; Write described MAC Address in ClientMACaddress field, in the option option82 of described DHCP message, write described accessing position information.
Described access device by DHCP configuration protocol and order the IP address of described terminal equipment and MAC Address are written to new DHCP message respectively ClientIPaddress field and ClientIPaddress field in.It should be noted that, the field format of just a kind of DHCP message form described herein, described IP address and MAC Address also can deposit the respective field of the DHCP message of extended formatting, are not construed as limiting herein.Option field in DHCP message contains option82, and described option82 is for depositing the accessing position information of terminal equipment.Due to upper layer network equipment (as gateway device) obtain the accessing position information of terminal equipment time, being by resolving DHCP message, obtaining the accessing position information of the terminal equipment sending described DHCP message.When user uses static ip address time, DHCP message would not be produced, so can only the accessing position information of configurating terminal device on gateway device manually.In order to overcome the problems referred to above, in the present embodiment, access device generates DHCP message according to using the IP address of the terminal equipment of static ip address, MAC Address and accessing position information simulation, this just makes gateway device by resolving described DHCP message, can obtain the accessing position information of the terminal equipment using described static ip address.
The embodiment of the present invention additionally provides a kind of access device 900, and for realizing the method shown in above-mentioned Fig. 1-Fig. 4, as shown in Figure 9, described device 900 comprises:
Processor (English: processor) 910, communication interface (English: communicationsinterface) 920, and memory (English: memory) 930, bus 940.
Processor 910, communication interface 920, memory 930 carries out mutual communication by bus 940.
Communication interface 920, for communicating with ext nal network element.In one embodiment, described communication interface 920 for other network device communications of returning in access device, Virtual Cluster more.Communication interface 920 can by optical transceiver, electric transceiver, and wireless transceiver or its combination in any realize.Such as, optical transceiver can be that Small Form-Factor Pluggable is (English: smallform-factorpluggabletransceiver, abbreviation: SFP) transceiver is (English: transceiver), strengthen Small Form-Factor Pluggable (English: enhancedsmallform-factorpluggable, abbreviation: SFP+) transceiver or 10 gigabit Small Form-Factor Pluggables (English: 10Gigabitsmallform-factorpluggable, abbreviation: XFP) transceiver.Electricity transceiver can be that Ethernet is (English: Ethernet) network interface controller (English: networkinterfacecontroller, abbreviation: NIC).Wireless transceiver can be radio network interface controller (English: wirelessnetworkinterfacecontroller, abbreviation: WNIC).Communication interface 920 can comprise multiple physical interface, and such as communication interface 920 comprises multiple Ethernet interface.
Processor 910, for executive program 932.
Particularly, program 932 can comprise program code, and described program code comprises computer-managed instruction.
Processor 910 may be central processing unit (English: centralprocessingunit, abbreviation: CPU), or application-specific integrated circuit (ASIC) (English: application-specificintegratedcircuit, abbreviation: ASIC).
Memory 930, for depositing program 932.Memory 930 can comprise volatile memory, and (English: volatilememory), such as (English: random-accessmemory, abridges: RAM) random access memory; It is (English: non-volatilememory) that memory 930 also can comprise nonvolatile memory, such as read-only memory is (English: read-onlymemory, abbreviation: ROM), flash memory is (English: flashmemory), hard disk is (English: harddiskdrive, abbreviation: HDD) or solid state hard disc (English: solid-statedrive, abbreviation: SSD); Memory 930 can also comprise the combination of the memory of mentioned kind.
Processor 910, for calling the program 932 in described memory, performs the step in Fig. 3 and Fig. 5 performed by first network equipment according to program 932.
In the embodiment of the present invention, describe access device and determine whether the IP address that described terminal equipment uses is static ip address by the IP address and MAC Address judging whether to store in dynamic address binding table described terminal equipment, if, then the IP address of described terminal equipment and MAC Address are stored in described dynamic address binding table, like this, facilitate described access device to obtain the IP address of described terminal equipment and MAC Address, and when described terminal equipment back-call network, access device can by directly getting IP address and the MAC Address of described terminal equipment in dynamic address binding table, the efficiency that access device E-Packets can be improved.Access device simulation generates DHCP message, use standard DHCP message form, change is not made to form, just can by the accessing position information of the user of static configuration IP address write DHCP message, upper layer network equipment (as gateway device) does not need to make any change and configuration, just by obtaining the mode of DHCP message, described DHCP message can be resolved, gets the accessing position information of the user of static configuration IP address easily.For the DHCP message of different-format, concrete generation method is identical, does not repeat herein.
In actual applications, access request comprises the ARP request of terminal equipment initiation or the data message of terminal equipment transmission; Accessing position information comprises the ID of access device, terminal equipment is linked into access device port numbers or SSID; DHCP message comprises DHCP_discover message, DHCP_request message and DHCP_inform message.Be applicable to above-mentioned all embodiments, therefore not to repeat here.
Be switch by access device below, gateway device is that wideband network gateway is (English: broadbandnetworkgateway, be called for short: BNG), terminal equipment is terminal computer, described computer uses static ip address, the IP address of described computer is 1.1.1.1, MAC Address is ZZZZZZ, the described computer port numbers be linked on switch is No. 34 is example, specifically describe when described computer access network, according to implementation procedure of the present invention, please refer to Figure 10, in the embodiment of the present invention, the embodiment of embody rule scene comprises:
Described computer sends access request to described switch.
Described switch receives the access request of computer; Resolve described access request, the IP address obtaining described computer is 1.1.1.1, and MAC Address is ZZZZZZ; The IP-MAC binding table arranged in search switch, determines the IP address and the MAC Address that do not store described computer in described IP-MAC binding table; The IP address 1.1.1.1 of described computer and MAC Address ZZZZZZ is stored in IP-MAC binding table; Get IP address 1.1.1.1, MAC Address ZZZZZZ and No. 34, the incoming end slogan of described computer on described switch of described computer; A new DHCP_discover message is generated by DHCP configuration order; The IP address 1.1.1.1 of described computer is write in the ClientIPaddress field of described DHCPdiscover message, write the MAC Address ZZZZZZ of described computer in ClientMACaddress field, in the option option82 of described DHCPdiscover message, write accessing position information 34; With DHCPdiscover message described in broadcast transmission, receive described DHCPdiscover message to enable gateway device.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a file transmitting method, is characterized in that, comprising:
The access request that access device receiving terminal apparatus sends;
If the internet protocol address that described terminal equipment uses is static ip address, then described access device obtains the IP address of described terminal equipment, MAC address and accessing position information;
Described access device generates dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation;
Described DHCP message is sent to gateway device by described access device.
2. method according to claim 1, is characterized in that, described access device generates DHCP message according to described IP address, MAC Address and accessing position information simulation and comprises:
Described IP address, MAC Address and accessing position information, according to DHCP standard message form, are written in each field of described DHCP message by described access device, generate DHCP message.
3. method according to claim 2, it is characterized in that, the described each field described IP address, MAC Address and accessing position information being written to described DHCP message comprises:
Described IP address is write in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field; Described accessing position information is write in the option option82 of described DHCP message.
4. according to method described in any one in claim 1-3, it is characterized in that, after the access request of described access device receiving terminal apparatus, described method also comprises:
Described access device obtains IP address and the MAC Address of described terminal equipment according to described access request; Judge the corresponding relation whether storing described IP address and MAC Address in the dynamic address binding table on described access device, if do not store the corresponding relation of described IP address and MAC Address in described dynamic address binding table, then determine that the IP address that described terminal equipment uses is static ip address.
5. method according to claim 4, is characterized in that, if the IP address that described terminal equipment uses is static ip address, described method also comprises: the corresponding relation storing described IP address and MAC Address in described dynamic address binding table.
6. an access device, is characterized in that, comprising:
Receiving element, for the access request that receiving terminal apparatus sends;
Acquiring unit, for when the internet protocol address that described terminal equipment uses is for static ip address, obtains the IP address of described terminal equipment, MAC address and accessing position information;
Generation unit, for generating dynamic host configuration protocol DHCP message according to described IP address, MAC Address and accessing position information simulation;
Transmitting element, for sending to gateway device by described DHCP message.
7. access device according to claim 6, it is characterized in that, described generation unit comprises:
Writing unit, for according to DHCP standard message form, is written to described IP address, MAC Address and accessing position information in each field of described DHCP message.
8. access device according to claim 7, is characterized in that, said write unit specifically for:
Write in described IP address in the ClientIPaddress field of described DHCP message; Described MAC Address is write in ClientMACaddress field; Described accessing position information is write in the option option82 of described DHCP message.
9. according to access device described in any one in claim 6-8, it is characterized in that, described equipment also comprises:
Resolution unit, for obtaining IP address and the MAC Address of described terminal equipment according to described access request;
Determining unit, for judging the corresponding relation whether storing described IP address and MAC Address in the dynamic address binding table on described access device, if do not store the corresponding relation of described IP address and MAC Address in described dynamic address binding table, then determine that the IP address that described terminal equipment uses is static ip address.
10. access device according to claim 9, it is characterized in that, described access device also comprises:
Memory cell, for when not storing the corresponding relation of described IP address and MAC Address in described dynamic address binding table, stores the corresponding relation of described IP address and described MAC Address in described dynamic address binding table.
CN201410452469.9A 2014-09-05 2014-09-05 A kind of file transmitting method and access device Active CN105472054B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410452469.9A CN105472054B (en) 2014-09-05 2014-09-05 A kind of file transmitting method and access device
PCT/CN2015/081671 WO2016034006A1 (en) 2014-09-05 2015-06-17 Packet sending method and access device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410452469.9A CN105472054B (en) 2014-09-05 2014-09-05 A kind of file transmitting method and access device

Publications (2)

Publication Number Publication Date
CN105472054A true CN105472054A (en) 2016-04-06
CN105472054B CN105472054B (en) 2019-05-24

Family

ID=55439101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410452469.9A Active CN105472054B (en) 2014-09-05 2014-09-05 A kind of file transmitting method and access device

Country Status (2)

Country Link
CN (1) CN105472054B (en)
WO (1) WO2016034006A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411882A (en) * 2016-09-28 2017-02-15 杭州华三通信技术有限公司 Method and device for accessing network by client
CN107483480A (en) * 2017-09-11 2017-12-15 杭州迪普科技股份有限公司 A kind of processing method and processing device of address
CN114362989A (en) * 2021-09-30 2022-04-15 成都长虹网络科技有限责任公司 Method for terminal to access IPTV service, gateway, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108200224A (en) * 2017-12-29 2018-06-22 山东华软金盾软件股份有限公司 Terminal IP and MAC Address acquisition method and system under Linux based on DHCP protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859407A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Method for securing special line user access network
CN101640689A (en) * 2009-08-27 2010-02-03 中兴通讯股份有限公司 Static user access method and device thereof
CN102014174A (en) * 2010-11-16 2011-04-13 中兴通讯股份有限公司 Network access method and network equipment
CN102255918A (en) * 2011-08-22 2011-11-23 神州数码网络(北京)有限公司 DHCP (Dynamic Host Configuration Protocol) Option 82 based user accessing authority control method
CN103747115A (en) * 2013-12-30 2014-04-23 武汉邮电科学研究院 Method of discovering IP (Internet Protocol) address of virtual machine based on virtual network interface card
CN104009999A (en) * 2014-06-10 2014-08-27 北京星网锐捷网络技术有限公司 Method and device for preventing ARP cheating and network access server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394360B (en) * 2008-11-10 2011-07-20 北京星网锐捷网络技术有限公司 Processing method, access device and communication system for address resolution protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859407A (en) * 2006-02-17 2006-11-08 华为技术有限公司 Method for securing special line user access network
CN101640689A (en) * 2009-08-27 2010-02-03 中兴通讯股份有限公司 Static user access method and device thereof
CN102014174A (en) * 2010-11-16 2011-04-13 中兴通讯股份有限公司 Network access method and network equipment
CN102255918A (en) * 2011-08-22 2011-11-23 神州数码网络(北京)有限公司 DHCP (Dynamic Host Configuration Protocol) Option 82 based user accessing authority control method
CN103747115A (en) * 2013-12-30 2014-04-23 武汉邮电科学研究院 Method of discovering IP (Internet Protocol) address of virtual machine based on virtual network interface card
CN104009999A (en) * 2014-06-10 2014-08-27 北京星网锐捷网络技术有限公司 Method and device for preventing ARP cheating and network access server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411882A (en) * 2016-09-28 2017-02-15 杭州华三通信技术有限公司 Method and device for accessing network by client
CN106411882B (en) * 2016-09-28 2021-01-15 新华三技术有限公司 Method and device for accessing client to network
CN107483480A (en) * 2017-09-11 2017-12-15 杭州迪普科技股份有限公司 A kind of processing method and processing device of address
CN114362989A (en) * 2021-09-30 2022-04-15 成都长虹网络科技有限责任公司 Method for terminal to access IPTV service, gateway, computer equipment and storage medium
CN114362989B (en) * 2021-09-30 2023-11-10 成都长虹网络科技有限责任公司 Method for terminal to access IPTV service, gateway, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105472054B (en) 2019-05-24
WO2016034006A1 (en) 2016-03-10

Similar Documents

Publication Publication Date Title
US10659430B2 (en) Systems and methods for dynamic network address modification related applications
JP6766393B2 (en) Communication controllers, methods and programs for DHCP
EP2439903B1 (en) Method for providing information, home gateway and home network system
CN110995886B (en) Network address management method, device, electronic equipment and medium
CN104333610A (en) IPv6 address allocation method and device
CN109120746B (en) Network address translation method and device and address translation equipment
US10432579B2 (en) Internet protocol address allocation method and router
CN105472054A (en) Message transmission method and access equipment
CN103109517A (en) Double-stack terminal accessing service method, terminal and system
CN103384282A (en) Method for obtaining IPV6ND address and broadband remote access server (BARS)
EP2675117A1 (en) Routing method and device for host in multi-homing site
WO2014101891A1 (en) Method and device for configuring ip address
EP3883203A1 (en) Ipv6 address configuration method and router device
US20200274948A1 (en) Service flow configuration method and apparatus
CN103039059B (en) IP address allocation method, system and device
CN105049546A (en) Client terminal IP address allocation method through DHCP server and device thereof
CN109788528B (en) Access point and method and system for opening internet access service thereof
CN106878479B (en) Address allocation method and device
CN106375489B (en) Method and device for processing Media Access Control (MAC) address
CN105208140A (en) Method used for sending data, apparatus and system thereof
CN105072669B (en) The connection control method and device of website
CN103532852A (en) Routing scheduling method, routing scheduling device and network equipment
CN105704109A (en) Network access authentication method and equipment
CN107547684B (en) IPv6 address allocation method and device
CN105704104A (en) Authentication method and access equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant