Disclosed is a method for preventing ip address cheating in dynamic address allocation. Firstly, check the source MAC address and the source ip address involved in an arp packet sent from a subscriber terminal, i.e., detect whether there is a matching item in the legal subscriber address table; if so, process it normally, otherwise discard the arp packet. In this way, an illegal subscriber cannot access to network through ip address cheating, but a legal subscriber can operate normally and continuously. For a subscriber terminal with a static ip address, a static item table is set in the legal subscriber address by manual configuration. When a new subscriber terminal asks for being allocated an ip address, check whether the ip address to be allocated has been set as a static item; if so, inform the subscriber terminal of applying for another ip address. In this way, it is guaranteed that static ip address having been allocated to a subscriber terminal will not be re-allocated, and it is avoided that the subscriber terminal with legal static ip address cannot access to network normally due to the re-allocation of ip address.

Patent
   RE42078
Priority
Jun 23 2003
Filed
Jun 15 2009
Issued
Jan 25 2011
Expiry
Jun 23 2023
Assg.orig
Entity
Large
0
9
all paid
1. A method for preventing ip address cheating in dynamic address allocation, comprising:
detecting, by using an exchange a switch, in a legal subscriber address table whether there is a matching item corresponding to the source Medium Access Control (MAC) address and the source internet protocol (ip) address involved in an address resolution protocol (arp) packet which is sent from a subscriber terminal; if so, adding the source ip address and the source MAC address involved in the arp packet to the arp table so as to make it possible for the subscriber terminal to access to network; otherwise, discarding the arp packet.
0. 8. A switch for preventing ip address cheating in dynamic address allocation, comprising:
a first means, configured to detect in a legal subscriber address table whether there is a matching item corresponding to a source Medium Access Control (MAC) address and a source internet protocol (ip) address involved in an address resolution protocol (arp) packet sent from a subscriber terminal;
a second means, configured to add the source ip address and the source MAC address involved in the arp packet to an arp table so as to make it possible for the subscriber terminal to access to a network, if there is a matching item corresponding to the source MAC address and the source ip address involved in the arp packet sent from the subscriber terminal;
a third means, configured to discard the arp packet, if there is no matching item corresponding to the source MAC address and the source ip address involved in the arp packet sent from the subscriber terminal.
0. 9. A system for preventing ip address cheating in dynamic address allocation, comprising:
a switch comprising a first means, a second means and a third means,
wherein the first means, configured to detect in a legal subscriber address table whether there is a matching item corresponding to a source Medium Access Control (MAC) address and a source internet protocol (ip) address involved in an address resolution protocol (arp) packet sent from a subscriber terminal;
wherein the second means, configured to add the source ip address and the source MAC address involved in the arp packet to an arp table so as to make it possible for the subscriber terminal to access to a network, if there is a matching item corresponding to the source MAC address and the source ip address involved in the arp packet sent from the subscriber terminal;
wherein the third means, configured to discard the arp packet, if there is no matching item corresponding to the source MAC address and the source ip address involved in the arp packet sent from the subscriber terminal.
2. The method of claim 1, further comprising adding a message information of a new subscriber terminal to said legal subscriber address table.
3. The method of claim 2, wherein said step of adding a message information of a new subscriber terminal to the legal subscriber address table comprises:
(21) sending a DHCPDISCOVER packet from a subscriber terminal to the DHCP server via the DHCP relay;
(22) sending a DHCPOFFER response packet from the DHCP server to the subscriber terminal via the DHCP relay;
(23) sending a DHCPREQUEST packet from the subscriber terminal to the DHCP server via the DHCP relay;
(24) returning a DHCPACK response packet from the DHCP server to the DHCP relay;
(25) searching, by using the exchange switch, the legal subscriber address table to detect whether the ip address allocated to the subscriber has been set as a static item; and
(26) sending a DHCPDECLINE packet from the exchange switch to the DHCP server to inform it of adding a mark for the allocated ip address; meanwhile sending a DHCPNAK packet to the subscriber terminal to inform it of applying for another ip address; then going to Step (21) to apply for another ip address; or
(27) re-transmitting forwarding, by using the exchange switch, and adding the ip address and the MAC address allocated to the subscriber terminal to the legal subscriber address table.
4. The method of claim 3, wherein the static item is a message information of a subscriber terminal with a static ip address.
5. The method of claim 4, wherein the static item is added or deleted according to real application situation of the corresponding subscriber terminal with the static ip address.
6. The method of claim 5, wherein the static item is added or deleted by means of a command line or manual configuration from the network administrator.
7. The method of claim 3, further comprising:
deleting a static item corresponding to a static ip address from the legal subscriber address table;
sending a DHCPREQUEST request packet from the exchange switch to the DHCP server to inform it of deleting the mark for the allocated ip address; and
sending a DHCPRELEASE packet from the exchange switch to the DHCP server to release the ip address so that the ip address can be dynamically allocated to other subscribers.

This application claims priority to Chinese Patent Application No. 02125007.3, filed on Jun. 22, 2002, which is hereby incorporated by reference in its entirety.

The invention relates to an access method of communication network, specifically to a dynamic address allocation method used in a wideband network.

With the rapid growth of network capacity and vast increase of network complexity, network configuration is getting more complicated. Thus the DHCP (Dynamic Host Configuration Protocol) based on the BOOTP (Bootstrap Protocol) has come into being. With a large expansion, it has been widely used. The DHCP can dynamically assign a duration-limited IP address to an access subscriber terminal. When the duration is ended or the subscriber terminal definitely shows that it would discard the IP address, the IP address can be used by other subscriber terminals. In this way, the efficiency of resource utilization is raised. The dynamic allocation can be used when assigning an IP address to a temporary access subscriber terminal or a group of subscriber terminals that share a group of limited IP addresses and need not permanent IP address. While a new access subscriber terminal needs a permanent access to a network, but the network IP address is very limited, in order to recover the IP address when the subscriber need not permanently access to the network again in the future, the dynamic allocation can also be used.

FIG. 1 shows an actual network application environment of the present invention. The network comprises a 3-level exchange with DHCP relay functionality, a main DHCP server and a backup DHCP server in one segment of the network connecting to the exchange, and DHCP clients, i.e., subscriber terminals, in another segment of the network.

In DHCP, the dynamic IP address allocation is performed through the exchange of DHCP packets between the DHCP server and subscriber terminals. The DHCP packet is a broadcast packet, which cannot cross into another segment of the network, so a DHCP server can only serve subscriber terminals in its own segment. Owing to resource limitation, it is impossible to configure a DHCP server for each network segment, and a DHCP server is usually set at a stand-alone segment for security reason. Therefore, it is necessary for a DHCP server to serve subscriber terminals in other network segments. The relay function of DHCP makes DHCP broadcast packets re-transmitted between segments of a network. By this means, a DHCP server can serve subscriber terminals in different segments.

In a network running DHCP, some subscriber terminals get IP addresses without through DHCP server but through illegally occupying them assigned to other clients. At present, the problem of IP address cheating is dealt with as follow: during bootstrap, the computer system of a subscriber terminal sends out a charge-free ARP (Address Resolution Protocol) packet to check whether its IP address has been occupied; if so, the computer system will send out an address contention report. While this method cannot solve the problem of IP address cheating root and branch, an IP address cheater may still get access to network.

It is an object of the invention to provide a method for preventing IP address cheating in dynamic address allocation. With this method, an illegal user cannot obtain access to a network by IP address cheating, so this method can completely prevent IP address cheating during dynamically allocating an IP address, and can thoroughly ensure the normal usage for legal users.

The method according to the present invention comprises steps as follow. The exchange checks the source MAC (Medium Access Control) address (hardware address of network adapter) and the source IP address in the ARP packet sent from the subscriber terminal, namely, determine whether there is a matching item in the legal subscriber address table. If there is a matching item in it, the process is dealt with normally, i.e., add the source IP address and the source MAC address in the ARP packet sent from the subscriber terminal as an item to the ARP table, so as to make it possible for the subscriber terminal to access to the network. Otherwise, the packet is discarded.

The method further includes adding a message of a new subscriber terminal to the legal subscriber address table, which includes the following steps:

(21) the subscriber terminal sending a DHCPDISCOVER packet to the DHCP server via the DHCP relay;

(22) the DHCP server sending a DHCPOFFER response packet to the subscriber terminal via the DHCP relay;

(23) the subscriber terminal sending a DHCPREQUEST packet to the DHCP server via the DHCP relay;

(24) the DHCP relay receiving a DHCPACK response packet from the DHCP server;

(25) the exchange searching the existed legal subscriber address table to detect whether the IP address allocated to the subscriber terminal has been set as a static item; if so, going to Step (26), otherwise going to Step (27).

In Step (26), the exchange sends a DHCPDECLINE packet to the DHCP server to add a mark for the allocated IP address; meanwhile, the exchange sends a DHCPNAK packet to the subscriber terminal to inform it of applying for another IP address, then go to Step (21) to continue an IP address application.

In Step (27), the exchange performs re-transmission, and writes the IP address and the MAC address allocated to the subscriber into the legal subscriber address table.

In the above-mentioned steps, the static item is a message of a subscriber terminal with a static IP address. The static item is added or deleted according to the actual usage situation of the subscriber terminal with the static IP address, either by means of command line or manual configuration from the network administrator.

The deletion processing includes steps as follow. When the static item of an IP address has been deleted by means of command line or manual configuration from the network administrator, the exchange sends a DHCPREQUEST packet to the server to delete the mark of the allocated static IP address. Then, the exchange sends a DHCPRELEASE packet to the DHCP server to release the IP address so that it can be dynamically allocated to other users.

The method checks whether the ARP packet sent from a subscriber terminal has a legal address. If there is no matching item in the legal subscriber address table, the packet is discarded. Therefore, an illegal subscriber cannot access to network through IP address cheating, but a legal subscriber can operate normally and continuously. In this way, the problem of IP address cheating is completely solved.

For the subscriber terminal with static IP address, the static item is manually configured into the legal subscriber address table. When a new subscriber terminal asks for an IP address, it is detected whether the IP address to be allocated is in the static items. If so, the subscriber terminal is informed of applying for another IP address. In this way, it is guaranteed that static IP address having been allocated to a subscriber terminal will not be re-allocated, and it is avoided that the subscriber terminal with legal static IP address cannot access to network normally due to the re-allocation of IP address.

The present invention is illustrated by way of example and not limited in the following figures, in which:

FIG. 1 schematically shows the network application environment of the invention;

FIG. 2 shows a flowchart according to an embodiment of the invention; and

FIG. 3 shows a flowchart of creating a message of new subscriber terminal in the legal subscriber address table.

The invention is further described hereinafter, with reference to the drawings and embodiments.

As shown in FIG. 2, the processing steps in the method for preventing IP address cheating in dynamic address allocation comprises as follow.

At Step 1, a subscriber terminal sends the exchange an ARP packet, which involves MAC address and IP address of the subscriber terminal. The ARP packet can be divided into two kinds: request packet and reply packet.

At Step 2, the exchange checks the MAC address and the IP address in the ARP packet, i.e., determines whether there is a matching item in the legal subscriber address table. If there is a matching item, it shows that the subscriber terminal has obtained the IP address legally via the DHCP relay, and the processing is continued normally, i.e., add the source MAC address and source IP address in the ARP packet sent from the subscriber terminal to the ARP table so as to make it possible for the subscriber terminal to access to the network. If there is no matching item in the legal subscriber address table, it means the IP address is obtained illegally; then discard the ARP packet. Therefore, there is no item created with this IP address, and the illegal subscriber with this illegal IP address cannot access to the network.

As shown in FIG. 3, it comprises the following steps to add a message of new subscriber terminal to the legal subscriber address table.

At Step 21, a subscriber terminal sends a DHCPDISCOVER packet to the DHCP server via the DHCP relay, asking for service from the DHCP server.

At Step 22, the DHCP server sends a DHCPOFFER response packet to the subscriber terminal via the DHCP relay, showing that the DHCP server can offer service.

At Step 23, the subscriber terminal sends a DHCPREQUEST packet to the DHCP server via the DHCP relay, asking for an IP address.

At Step 24, the DHCP relay receives from the DHCP server a DHCPACK response packet which involves an IP address allocated to the subscriber, mask codes and other configuration information, such as gateway address etc.

At Step 25, the exchange searches the existed legal subscriber address table to detect whether the IP address has been set as a static item. If so, go to Step 26, otherwise go to Step 27.

At Step 26, the exchange sends a DHCPDECLINE packet to the DHCP server to tell it that the IP address has been allocated and inform it of adding a mark for the allocated IP address. Further, the exchange sends a DHCPNAK packet to the subscriber terminal to inform it of applying for another IP address. Then go to Step 21 to apply for an IP address again.

At Step 27, the exchange performs re-transmission, and writes the IP address and the MAC address allocated to the subscriber terminal into the legal subscriber address table.

The above-mentioned static item is described in more detail hereinafter.

Some subscriber terminals need static IP addresses, but a static IP address cannot be obtained through DHCP packet. Therefore, there is no corresponding item in the legal subscriber address table. In order to make a subscriber terminal can pass the IP address check and access to a network normally, a static item is set for a static IP address in the legal subscribe address table. The static item shows information about a subscriber terminal with static IP address. A static item is added or deleted according to the actual usage of a subscriber terminal with the static IP address, by means of either command line or manual configuration from the network administrator. As mentioned in the Steps 24, 25 and 26, when the DHCP relay receives a DHCPACK response packet from the DHCP server, the exchange searches the legal subscriber address table. If the IP address has been set as a static item, then the exchange sends a DHCPDECLINE packet to the DHCP server and mark that the IP address has been allocated. In this instance, the IP address will not be allocated to other subscriber terminals by the DHCP server. Meanwhile, the exchange sends a DHCPNACK packet to the subscriber terminal to inform it of applying for another IP address.

When a subscriber terminal with a static IP address does not need the static IP address, the static item is deleted manually. At the same time, the exchange sends a DHCPREQUEST request packet and a DHCPRELEASE packet to the DHCP server, and deletes the mark showing the IP address has been allocated. Therefore, the IP address can be re-allocated to other subscriber terminals by the DHCP server.

The forgoing embodiment is merely exemplary and is not to be construed as limiting the present invention. The description of the present invention is intended to be illustrative, and not to limit the scope of the claims. Many alternatives, modifications, and variations will be apparent to those skilled in the art.

Xiu, Yihong, Yao, Xi, Pan, Ning

Patent Priority Assignee Title
Patent Priority Assignee Title
6370147, Apr 23 1998 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Method for addressing of passive network hosts in a data-over-cable system
6931018, Mar 16 2001 Comcast Cable Holdings, LLC Local network router and method of routing IP data packets
6961336, Mar 06 2001 GOLDMAN SACHS SPECIALTY LENDING GROUP L P Contacting a computing device outside a local network
6993026, Aug 31 2000 Verizon Patent and Licensing Inc Methods, apparatus and data structures for preserving address and service level information in a virtual private network
7489659, Jan 29 2002 Koninklijke Philips Electronics N V Method and system for connecting mobile client devices to the internet
20020016858,
20020023174,
20020075844,
20030198219,
/
Executed onAssignorAssigneeConveyanceFrameReelDoc
Jun 15 2009Huawei Technologies Co., Ltd.(assignment on the face of the patent)
Date Maintenance Fee Events
Apr 04 2011REM: Maintenance Fee Reminder Mailed.
Jul 01 2011M1551: Payment of Maintenance Fee, 4th Year, Large Entity.
Jul 01 2011M1554: Surcharge for Late Payment, Large Entity.
Feb 11 2015M1552: Payment of Maintenance Fee, 8th Year, Large Entity.
Feb 14 2019M1553: Payment of Maintenance Fee, 12th Year, Large Entity.


Date Maintenance Schedule
Jan 25 20144 years fee payment window open
Jul 25 20146 months grace period start (w surcharge)
Jan 25 2015patent expiry (for year 4)
Jan 25 20172 years to revive unintentionally abandoned end. (for year 4)
Jan 25 20188 years fee payment window open
Jul 25 20186 months grace period start (w surcharge)
Jan 25 2019patent expiry (for year 8)
Jan 25 20212 years to revive unintentionally abandoned end. (for year 8)
Jan 25 202212 years fee payment window open
Jul 25 20226 months grace period start (w surcharge)
Jan 25 2023patent expiry (for year 12)
Jan 25 20252 years to revive unintentionally abandoned end. (for year 12)