CN106330648B - Routing information generation method and device - Google Patents

Routing information generation method and device Download PDF

Info

Publication number
CN106330648B
CN106330648B CN201510331132.7A CN201510331132A CN106330648B CN 106330648 B CN106330648 B CN 106330648B CN 201510331132 A CN201510331132 A CN 201510331132A CN 106330648 B CN106330648 B CN 106330648B
Authority
CN
China
Prior art keywords
interface
address
user equipment
virtual
cpe
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.)
Active
Application number
CN201510331132.7A
Other languages
Chinese (zh)
Other versions
CN106330648A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510331132.7A priority Critical patent/CN106330648B/en
Priority to PCT/CN2016/076421 priority patent/WO2016202023A1/en
Publication of CN106330648A publication Critical patent/CN106330648A/en
Application granted granted Critical
Publication of CN106330648B publication Critical patent/CN106330648B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Abstract

The invention provides a method and a device for generating routing information, wherein the method comprises the following steps: receiving a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address; allocating an IP address to the user equipment according to the first request message; binding user equipment with a pre-established virtual three-layer interface according to the allocated IP address; and generating routing information for the user equipment to send data according to the bound virtual three-layer interface. The invention solves the problem that the IP network segments of the VLAN interfaces have conflict and the three-layer exchange routing can not be realized in the related technology, thereby achieving the effect of avoiding the IP network segment conflict of the VLAN interfaces.

Description

Routing information generation method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for generating routing information.
Background
In a routing switching system (hereinafter referred to as a system), a three-layer interface is usually statically planned, and a user interface is fixedly subordinate to one three-layer interface. Particularly, for a three-layer switch, a three-layer interface is divided by a Virtual Local Area Network (VLAN) to implement routing between VLANs, where different VLANs belong to different Internet Protocol (IP) subnets. In some service scenarios, the IP addresses of users are dynamically allocated, and different users may be allocated to the same IP subnet, but the VLAN planning of user ports may be different. In this case, it is difficult for the conventional routing technology based on the static three-layer interface to meet the service requirement.
For example, in a broadcast and television service scenario, a broadcast and television subscriber uses a Cable Modem (CM) and a user Equipment terminal (CPE) in a Cable network to meet the requirements of services such as telephony, internet access, and video. The 1 CM may be connected to a plurality of CPE devices (the CPE may include a set-top box, a Personal Computer (PC), or other user terminal). The broadcasting and television users subscribe to 1 service package, and specific IP addresses are correspondingly allocated to the CM and CPE equipment. An IP Bundle represents an IP address assignment strategy for a particular service package, where 1 particular IP address segment is assigned to each device type of CM and CPE.
Traditional broadcast television networks mainly adopt Cable Modem termination system (CMTS for short) routers for networking, and the CMTS routers provide Cable interface downstream CM, so as to realize routing functions of Cable interfaces and upstream network interfaces. The IP Bundle service can meet the requirements in the networking scene.
With the development of broadcasting and television services and the requirement of network convergence, broadcasting and television proposes a networking solution of C-DOCSIS. A Passive Optical Network (PON for short) Optical fiber line terminal (OLT for short) and a CMC are used for networking, the OLT realizes a convergence routing function, and the CMC realizes a Cable access function. Referring to fig. 1, fig. 1 is a schematic diagram of PON OLT and CMC networking in the related art.
The OLT of the convergence layer typically employs an ethernet switching architecture, with three layers of routing being between different VLAN interfaces, each VLAN interface having a different gateway address and subnet mask. In the access network, the VLAN is used to identify the service type and distinguish users, and users subscribing to the same Cable service package may be divided into different VLANs.
Aiming at the problem that the IP network segments of VLAN interfaces in the related technology have conflict and can not realize three-layer exchange routing, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a method and a device for generating routing information, which at least solve the problem that three-layer exchange routing cannot be realized because of conflict of IP network segments of VLAN interfaces in the related technology.
According to an aspect of the present invention, there is provided a routing information generating method, including: receiving a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address; allocating an IP address to the user equipment according to the first request message; binding the user equipment with a pre-established virtual three-layer interface according to the allocated IP address; and generating routing information for the user equipment to send data according to the bound virtual three-layer interface.
Optionally, before binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address, the method further includes: and creating the virtual three-layer interface, wherein the virtual three-layer interface is configured with a father interface and a son interface, one father interface corresponds to more than two son interfaces, and the father interface is associated with a Virtual Local Area Network (VLAN).
Optionally, when the user equipment is a cable modem CM, allocating an IP address to the user equipment according to the first request message includes: acquiring a father interface of the virtual three-layer interface associated with the VLAN identification according to the VLAN identification carried in the first request message; forwarding the first request message to a server configured under a parent interface of the virtual three-layer interface; and allocating an IP address for the user equipment by utilizing the server.
Optionally, the binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address includes: respectively matching the allocated IP address with more than two sub-interfaces corresponding to the parent interface of the virtual three-layer interface; and binding the user equipment and the matched sub-interface.
Optionally, after the user equipment and the pre-created virtual three-layer interface are bound according to the allocated IP address, the method further includes: receiving a second request message which is sent by a user equipment terminal (CPE) and used for requesting to distribute a network protocol IP address; acquiring a cable modem CM to which the CPE belongs according to the second request message; binding the CPE and the sub-interface pre-bound by the CM according to the sub-interface pre-bound by the CM; allocating an IP address for the CPE by utilizing a server configured under a sub-interface bound with the CPE; and generating routing information used for sending data by the user equipment terminal according to the IP address distributed to the CPE.
According to another aspect of the present invention, there is provided a routing information generating apparatus including: the first receiving module is used for receiving a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address; a first allocation module, configured to allocate an IP address to the user equipment according to the first request message; the first binding module is used for binding the user equipment and a pre-established virtual three-layer interface according to the allocated IP address; and the first generating module is used for generating routing information used for the user equipment to send data according to the bound virtual three-layer interface.
Optionally, the apparatus further comprises: the virtual three-layer interface is configured with a parent interface and a child interface, wherein one parent interface corresponds to more than two child interfaces, and the parent interface is associated with a Virtual Local Area Network (VLAN).
Optionally, when the user equipment is a cable modem CM, the first allocation module includes: an obtaining unit, configured to obtain, according to a wireless local area network VLAN identifier carried in the first request message, a parent interface of the virtual three-layer interface associated with the VLAN identifier; a forwarding unit, configured to forward the first request message to a server configured under a parent interface of the virtual three-layer interface; and the allocation unit is used for allocating the IP address for the user equipment by utilizing the server.
Optionally, the first binding module includes: a matching unit, configured to match the allocated IP address with two or more child interfaces corresponding to a parent interface of the virtual three-layer interface respectively; and the binding unit is used for binding the user equipment and the matched sub-interface.
Optionally, the apparatus further comprises: the second receiving module is used for receiving a second request message which is sent by the user equipment terminal CPE and used for requesting to allocate the network protocol IP address; an obtaining module, configured to obtain, according to the second request message, a cable modem CM to which the CPE belongs; a second binding module, configured to bind the CPE and the sub-interface pre-bound by the CM according to the sub-interface pre-bound by the CM; the second distribution module is used for distributing an IP address for the CPE by utilizing a server configured under the subinterface bound with the CPE; and the second generating module is used for generating routing information used for sending data by the user equipment terminal according to the IP address distributed to the CPE.
According to the invention, a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address is received; allocating an IP address to the user equipment according to the first request message; binding the user equipment with a pre-established virtual three-layer interface according to the allocated IP address; and generating routing information for sending data by the user equipment according to the bound virtual three-layer interface, solving the problems that the IP network segments of the VLAN interfaces have conflict and the three-layer exchange routing can not be realized in the related technology, and further achieving the effect of avoiding the IP network segment conflict of the VLAN interfaces.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of PON OLT and CMC networking in the related art;
fig. 2 is a flowchart of a routing information generation method according to an embodiment of the present invention;
fig. 3 is a block diagram of the configuration of a routing information generation apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a preferred structure of a routing information generation apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of the structure of the first distribution module 34 in the routing information generation apparatus according to the embodiment of the present invention;
fig. 6 is a block diagram of the structure of the first binding module 36 in the routing information generation apparatus according to the embodiment of the present invention;
fig. 7 is a block diagram of a preferred configuration of a routing information generation apparatus according to an embodiment of the present invention;
FIG. 8 is a flow diagram of dynamic binding of IP addresses and virtual three-layer interfaces, according to an embodiment of the invention;
FIG. 9 is a schematic diagram of the structure of an OLT and a CMC in accordance with an embodiment of the present invention;
FIG. 10 is a CM address application flow diagram according to an embodiment of the invention;
fig. 11 is a flow chart of CPE address application according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In this embodiment, a method for generating routing information is provided, and fig. 2 is a flowchart of a method for generating routing information according to an embodiment of the present invention, where as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving a first request message which is sent by user equipment and used for requesting to distribute a network protocol IP address;
step S204, an IP address is distributed to the user equipment according to the first request message;
step S206, binding the user equipment and the pre-established virtual three-layer interface according to the allocated IP address;
and step S208, generating routing information for the user equipment to send data according to the bound virtual three-layer interface.
Through the steps, when the routing information needs to be generated, the three-layer interface is bound for the user equipment according to the IP address allocated to the user equipment, and dynamic binding is realized, so that the problem of IP network segment conflict can be effectively avoided, the problems that the IP network segments of VLAN interfaces conflict and three-layer exchange routing cannot be realized in the related technology are solved, and the effect of avoiding the IP network segment conflict of VLAN interfaces is further achieved.
In an optional embodiment, before binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address, the method further includes: and creating a virtual three-layer interface, wherein the virtual three-layer interface is configured with a father interface and a son interface, one father interface corresponds to more than two son interfaces, and the father interface is associated with the virtual local area network VLAN.
In an alternative embodiment, when the user equipment is a cable modem CM, the allocating an IP address to the user equipment according to the first request message comprises: acquiring a father interface of a virtual three-layer interface associated with a VLAN identification according to the VLAN identification carried in the first request message; forwarding the first request message to a server configured under a parent interface of the virtual three-layer interface; an IP address is assigned to the user device by the server.
In an alternative embodiment, binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address comprises: respectively matching the allocated IP address with more than two sub-interfaces corresponding to the parent interface of the virtual three-layer interface; and binding the user equipment and the matched sub-interface. Therefore, the binding of the user equipment and the virtual three-layer interface is realized by binding the user equipment and the sub-interface configured in the virtual three-layer interface.
In an optional embodiment, after the user equipment and the pre-created virtual three-layer interface are bound according to the allocated IP address, routing information of data sent by the CPE under the CM may also be generated, including: receiving a second request message which is sent by a user equipment terminal (CPE) and used for requesting to distribute a network protocol IP address; acquiring a cable modem CM to which the CPE belongs according to the second request message; binding the CPE and the sub-interface pre-bound by the CM according to the sub-interface pre-bound by the CM; allocating an IP address for the CPE by utilizing a server configured under a sub-interface bound with the CPE; and generating routing information for sending data by the user equipment terminal according to the IP address allocated to the CPE. The dynamic binding of the CM and the virtual three-layer interface and the dynamic binding of the CPE and the virtual three-layer interface can be realized through the embodiment. Thereby avoiding IP network segment collision.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a routing information generating device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a routing information generating apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes a first receiving module 32, a first distributing module 34, a first binding module 36, and a first generating module 38, which will be described below.
A first receiving module 32, configured to receive a first request message sent by a user equipment for requesting to allocate a network protocol IP address; a first allocating module 34, connected to the first receiving module 32, for allocating an IP address to the ue according to the first request message; a first binding module 36, connected to the first allocating module 34, for binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address; and a first generating module 38, connected to the first binding module 36, for generating routing information for the user equipment to send data according to the bound virtual three-layer interface.
Fig. 4 is a block diagram of a preferred structure of a first routing information generating apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes a creating module 42 in addition to all the modules shown in fig. 3, and the apparatus is explained below.
A creating module 42, connected to the first receiving module 32, for creating the virtual three-layer interface, where the virtual three-layer interface is configured with a parent interface and a child interface, one parent interface corresponds to more than two child interfaces, and the parent interface is associated with a virtual local area network VLAN.
Fig. 5 is a block diagram of a first distribution module 34 in the routing information generating apparatus according to the embodiment of the present invention, and as shown in fig. 5, when the user equipment is a cable modem CM, the first distribution module 34 includes: an acquisition unit 52, a forwarding unit 54 and an allocation unit 56, which are explained below with respect to the first allocation module 34.
An obtaining unit 52, configured to obtain, according to the VLAN identifier carried in the first request message, a parent interface of a virtual three-layer interface associated with the VLAN identifier; a forwarding unit 54, connected to the obtaining unit 52, configured to forward the first request message to a server configured under a parent interface of the virtual three-tier interface; and an allocating unit 56, connected to the forwarding unit 54, for allocating an IP address to the user equipment by using the server.
Fig. 6 is a block diagram of a structure of the first binding module 36 in the routing information generating apparatus according to the embodiment of the present invention, and as shown in fig. 6, the first binding module 36 includes a matching unit 62 and a binding unit 64, and the first binding module 36 is explained below.
A matching unit 62, configured to match the allocated IP address with two or more child interfaces corresponding to a parent interface of the virtual three-layer interface respectively; and a binding unit 64 connected to the flat matching unit 62 for binding the user equipment and the matched sub-interface.
Fig. 7 is a block diagram of a preferred structure of a routing information generating apparatus according to an embodiment of the present invention, and as shown in fig. 7, the apparatus includes, in addition to the modules shown in fig. 6, a second receiving module 72, an obtaining module 74, a second binding module 76, a second allocating module 78, and a second generating module 710, which will be described below.
A second receiving module 72, connected to the first binding module 36, for receiving a second request message sent by the user equipment terminal CPE for requesting allocation of a network protocol IP address; an acquiring module 74, connected to the second receiving module 72, for acquiring the cable modem CM to which the CPE belongs according to the second request message; a second binding module 76, connected to the acquiring module 74, for binding the CPE and the CM pre-bound subinterface according to the CM pre-bound subinterface; a second allocating module 78, connected to the second binding module 76, for allocating an IP address to the CPE by using a server configured under the subinterface bound to the CPE; and a second generating module 710, connected to the second allocating module 78, for generating routing information for the user equipment terminal to send data according to the IP address allocated to the CPE.
It can be known from the above embodiments that, in order to solve the problem of IP subnet conflicts of different VLANs in the related art, in the embodiments of the present invention, a host route is used instead of a subnet route, and a routing channel to a user host is directly established according to a user IP address obtained by DHCP, where VLAN is a part of a user identifier, and a VLAN three-layer interface does not need to be created, thereby avoiding the problem of IP subnet conflicts of three-layer interfaces.
In the protocol control plane, a specific three-layer interface is still required to participate in the protocol operation. Therefore, a virtual three-layer interface, which may be referred to as an IP Bundle interface, is introduced in the embodiment of the present invention, and a plurality of IP subnets are allocated below the three-layer interface, but are not associated with an actual physical interface. After the user equipment is allocated to the IP address through the DHCP process, the user equipment associates with the virtual three-layer interface according to the sub-network segment to which the IP address belongs, which is called dynamic binding.
Fig. 8 is a flowchart of dynamic binding of an IP address and a virtual three-layer interface according to an embodiment of the present invention, as shown in fig. 8, the flowchart includes the following steps:
step S802, a plurality of IP Bundle interfaces are pre-established in the system, each three-layer interface is distributed with a plurality of IP addresses, and the system runs a DHCP Relay protocol.
Step S804, after the user equipment is powered on, first, a DHCP process is initiated to obtain an IP address. The system DHCP Relay records user information, wherein the user information may include at least one of a user port number, a VLAN, and a MAC address.
Step S806, after the DHCP server allocates the IP address, the system DHCP Relay matches the allocated IP address with the IP address of the virtual three-layer interface, and binds the corresponding three-layer interface with the user information when belonging to the same network segment.
Step S808, the system generates the host routing table and the interface table entry information according to the IP Bundle interface binding relationship and sets the hardware entry.
The host routing table entry may include the following information: (IP address, next hop out interface index).
The out-of-interface table entry may include the following information: (egress interface index, inner and outer layer VLAN, source MAC address).
Wherein, the inner and outer layer VLAN is VLAN mark of user, the source MAC address is gateway MAC address of IP Bundle interface.
After the routing information is generated, the data stream from the network side equipment to the user equipment can realize normal routing forwarding.
The invention is illustrated by the following implementation method of radio and television IP package service:
the radio and television IP package service system is completed by the cooperation of a plurality of software and hardware modules on the OLT and the CMC, as shown in fig. 9, fig. 9 is a schematic structural diagram of the OLT and the CMC according to an embodiment of the present invention.
The OLT includes: the system comprises an IP Bundle interface management module, an IP Bundle mapping module, a DHCP Relay module, an IP Bundle binding module and a route management module.
The CMC comprises: DHCP Option82 (DHCP Option82) module.
The IP Bundle interface management module is used for managing the add-delete configuration of the IP Bundle virtual interface; the IPBundle mapping module is used for managing the mapping relation between the user VLAN and the IP Bundle father interface; the IP Bundle binding module is used for managing the binding relationship between the user identification and the IP Bundle subinterface.
The main operation is as follows:
1. pre-configuration
An IP Bundle interface management module on the OLT configures an IP Bundle father interface and an IP Bundle subinterface in advance, a plurality of subinterfaces can be arranged under 1 father interface, and 1 main address and a plurality of slave addresses are configured under each subinterface.
And the DHCP Relay module on the OLT configures a Server address and a gateway address of the DHCP Relay under the IP Bundle parent interface and the IP Bundle child interface.
And an IP Bundle mapping module on the OLT configures an IP Bundle father interface and a VLAN (virtual local area network) association, wherein the VLAN is an outer layer VLAN of the user message.
CM Address application flow
Fig. 10 is a flowchart of a CM address application according to an embodiment of the present invention, and as shown in fig. 10, the flowchart includes the following steps:
step S1002, the CM initiates a DHCP process application address and sends a DHCP discovery message DHCP DISCOER message to the CMC.
Step S1004, the DHCP Option82 module on the CMC adds the Remote ID field of Option82 to the DHCP DISCOER message, and fills in the MAC address of the CM.
Step S1006, the CMC sends the processed DHCP DISCOVER message to the OLT.
Step S1008, after the OLT receives the DHCP DISCOVER message of the CM, the IP Bundle mapping module obtains the IP Bundle father interface according to the outer layer VLAN of the message.
Step S1010, the OLT fills the gateway address Giaddr in the received DHCP DISCOVER message.
Step S1012, the DHCP Relay module in the OLT forwards the processed DHCP DISCOVER message to all DHCP servers under the IPBundle parent interface.
In step S1014, the OLT receives the DHCP OFFER message responded by the DHCP Server.
Step S1016, after the OLT receives the DHCP OFFER message responded by the first DNCP Server, the DHCP Relay module matches the allocated IP address with the gateway address under the IP Bundle sub-interface, and when belonging to the same network segment, informs the IP Bundle binding module to establish the binding relationship between the CM MAC and the IP Bundle sub-interface.
Step S1018, the IP Bundle binding module records the binding relationship, notifies the routing management module to generate host routing information, and establishes a hardware forwarding table.
In step S1020, the OLT sends DHCP Offer to the CMC.
In step S1022, the CMC transmits the DHCP Offer to the CM.
CPE Address application flow
Fig. 11 is a flow chart of CPE address application according to an embodiment of the present invention, as shown in fig. 11, the flow chart includes the following steps:
step S1102, the CPE initiates a DHCP process application address and sends a DHCP DISCOVER message to the CMC.
Step S1104, the DHCP Option82 module on the CMC adds the Remote ID field of Option82 to the DHCP DISCOVER message, and fills in the MAC address of the CM.
Step S1106, the CMC sends the processed DHCP DISCOVER message to the OLT.
In step S1108, after the OLT receives the DHCP DISCOVER message from the CPE, the DHCP Relay module acquires the CM to which the CPE belongs according to the Option82 information.
Step S1110, the OLT allocates an IP Bundle sub-interface to the CPE according to the IP Bundle sub-interface to which the CM has been bound, and notifies the IP Bundle binding module to establish a binding relationship between the MAC of the CPE and the IP Bundle sub-interface.
Step S1112, the OLT fills the gateway address Giaddr in the received DHCP DISCOVER message.
Step S1114, the DHCP Relay module forwards the processed DHCP DISCOVER message to the DHCP Server under the IP Bundle sub-interface to obtain an address.
In step S1116, the OLT receives the DHCP OFFER message responded by the DNCP Server.
In step S1118, the route management module in the OLT creates a hardware host route entry.
In step S1120, the OLT sends a DHCP OFFER message to the CMC.
Step S1122, the CMC sends the DHCP OFFER message to the CPE.
The invention is illustrated below in a specific embodiment:
if two Cable users A and B subscribe to the same IP package, VLAN identifications of the users are different. Then the same IP Bundle parent interface is configured for both user VLANs:
VLAN identification A: IP Bundle father interface 1;
VLAN identification B: IP Bundle parent interface 1.
The CM equipment of the users A and B acquires the IP address of the same network segment through DHCP, then matches with the IP address network segment configured by the IP Bundle subinterface, binds the matched IP Bundle subinterface and generates the host route.
CM bound three-layer interface information for user a:
(VLAN id a, MAC address a, port id a): IP Bundle subinterface 1;
CM-bound three-layer interface information of user B:
(VLAN id B, MAC address B, port id B): IP Bundle subinterface 1.
The CPE equipment of the users A and B acquires the IP addresses through the DHCP, and acquires the IP Bundle subinterface bound by the CM as the IP Bundle subinterface bound by the CPE through the affiliation relationship between the CPE and the CM. And after the IP address distributed by the DHCP Server is obtained, generating a host route.
Three layers of interface information bound by CPE of user A:
(VLAN identification a, MAC address C, port identification a): IP Bundle subinterface 1
Three layers of interface information bound by CPE of user B:
(VLAN id B, MAC address D, port id B): IP Bundle subinterface 1
Therefore, in the embodiment of the invention, the user VLAN identification is dynamically bound with the IP Bundle virtual three-layer interface, and the problem of IP subnet conflict generated by statically dividing the three-layer VLAN interface is solved.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in a plurality of processors.
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving a first request message sent by user equipment for requesting to allocate a network protocol IP address;
s2, allocating IP address for user equipment according to the first request message;
s3, binding the user equipment and the pre-established virtual three-layer interface according to the allocated IP address;
and S4, generating the routing information for the user equipment to send data according to the bound virtual three-layer interface.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for generating routing information, comprising:
receiving a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address;
allocating an IP address to the user equipment according to the first request message;
binding the user equipment with a pre-established virtual three-layer interface according to the allocated IP address;
generating routing information for the user equipment to send data according to the bound virtual three-layer interface;
before binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address, the method further includes: and creating the virtual three-layer interface, wherein the virtual three-layer interface is configured with a father interface and a son interface, one father interface corresponds to more than two son interfaces, and the father interface is associated with a Virtual Local Area Network (VLAN).
2. The method of claim 1, wherein when the UE is a Cable Modem (CM), the assigning an IP address to the UE according to the first request message comprises:
acquiring a father interface of the virtual three-layer interface associated with the VLAN identification according to the VLAN identification carried in the first request message;
forwarding the first request message to a server configured under a parent interface of the virtual three-layer interface;
and allocating an IP address for the user equipment by utilizing the server.
3. The method of claim 2, wherein binding the user equipment and a pre-created virtual three-layer interface according to the allocated IP address comprises:
respectively matching the allocated IP address with more than two sub-interfaces corresponding to the parent interface of the virtual three-layer interface;
and binding the user equipment and the matched sub-interface.
4. The method of claim 3, further comprising, after binding the user equipment and the pre-created virtual three-layer interface according to the allocated IP address:
receiving a second request message which is sent by a user equipment terminal (CPE) and used for requesting to distribute a network protocol IP address;
acquiring a cable modem CM to which the CPE belongs according to the second request message;
binding the CPE and the sub-interface pre-bound by the CM according to the sub-interface pre-bound by the CM;
allocating an IP address for the CPE by utilizing a server configured under a sub-interface bound with the CPE;
and generating routing information used for sending data by the user equipment terminal according to the IP address distributed to the CPE.
5. A routing information generation apparatus, comprising:
the first receiving module is used for receiving a first request message which is sent by user equipment and used for requesting to allocate a network protocol IP address;
a first allocation module, configured to allocate an IP address to the user equipment according to the first request message;
the first binding module is used for binding the user equipment and a pre-established virtual three-layer interface according to the allocated IP address;
the first generation module is used for generating routing information used for the user equipment to send data according to the bound virtual three-layer interface;
wherein the apparatus further comprises:
the virtual three-layer interface is configured with a parent interface and a child interface, wherein one parent interface corresponds to more than two child interfaces, and the parent interface is associated with a Virtual Local Area Network (VLAN).
6. The apparatus of claim 5, wherein when the user equipment is a Cable Modem (CM), the first distribution module comprises:
an obtaining unit, configured to obtain, according to a wireless local area network VLAN identifier carried in the first request message, a parent interface of the virtual three-layer interface associated with the VLAN identifier;
a forwarding unit, configured to forward the first request message to a server configured under a parent interface of the virtual three-layer interface;
and the allocation unit is used for allocating the IP address for the user equipment by utilizing the server.
7. The apparatus of claim 6, wherein the first binding module comprises:
a matching unit, configured to match the allocated IP address with two or more child interfaces corresponding to a parent interface of the virtual three-layer interface respectively;
and the binding unit is used for binding the user equipment and the matched sub-interface.
8. The apparatus of claim 7, further comprising:
the second receiving module is used for receiving a second request message which is sent by the user equipment terminal CPE and used for requesting to allocate the network protocol IP address;
an obtaining module, configured to obtain, according to the second request message, a cable modem CM to which the CPE belongs;
a second binding module, configured to bind the CPE and the sub-interface pre-bound by the CM according to the sub-interface pre-bound by the CM;
the second distribution module is used for distributing an IP address for the CPE by utilizing a server configured under the subinterface bound with the CPE;
and the second generating module is used for generating routing information used for sending data by the user equipment terminal according to the IP address distributed to the CPE.
CN201510331132.7A 2015-06-15 2015-06-15 Routing information generation method and device Active CN106330648B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510331132.7A CN106330648B (en) 2015-06-15 2015-06-15 Routing information generation method and device
PCT/CN2016/076421 WO2016202023A1 (en) 2015-06-15 2016-03-15 Routing information generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510331132.7A CN106330648B (en) 2015-06-15 2015-06-15 Routing information generation method and device

Publications (2)

Publication Number Publication Date
CN106330648A CN106330648A (en) 2017-01-11
CN106330648B true CN106330648B (en) 2020-06-30

Family

ID=57544953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510331132.7A Active CN106330648B (en) 2015-06-15 2015-06-15 Routing information generation method and device

Country Status (2)

Country Link
CN (1) CN106330648B (en)
WO (1) WO2016202023A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111064818B (en) * 2019-12-11 2022-03-25 新华三大数据技术有限公司 Configuration method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571382A (en) * 2003-07-11 2005-01-26 华为技术有限公司 Method for implementing dedicated network access
CN101110745A (en) * 2007-08-14 2008-01-23 华为技术有限公司 Method, device and system for engaging second layer network and third layer network
CN101938398A (en) * 2009-06-29 2011-01-05 深圳市联软科技有限公司 Generation method, system and server of equipment positioning relationship table
CN102437966A (en) * 2012-01-18 2012-05-02 神州数码网络(北京)有限公司 Layer-3 switching system and method based on layer-2 DHCP (Dynamic Host Configuration Protocol) SNOOPING
CN102546428A (en) * 2012-02-03 2012-07-04 神州数码网络(北京)有限公司 System and method for internet protocol version 6 (IPv6) message switching based on dynamic host configuration protocol for IPv6 (DHCPv6) interception
CN103701940A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Address resolution protocol configuration method and device for network management system
CN104065554A (en) * 2014-06-30 2014-09-24 华为技术有限公司 Networking method and networking apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847620B1 (en) * 1999-05-13 2005-01-25 Intermec Ip Corp. Mobile virtual LAN
CN102158421B (en) * 2011-05-25 2013-11-06 杭州华三通信技术有限公司 Method and unit for creating layer three interface
CN102710485B (en) * 2012-05-07 2015-01-07 深信服网络科技(深圳)有限公司 Transparent proxy method and proxy server
CN103441932B (en) * 2013-08-30 2016-08-17 福建星网锐捷网络有限公司 A kind of Host routes list item generates method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571382A (en) * 2003-07-11 2005-01-26 华为技术有限公司 Method for implementing dedicated network access
CN101110745A (en) * 2007-08-14 2008-01-23 华为技术有限公司 Method, device and system for engaging second layer network and third layer network
CN101938398A (en) * 2009-06-29 2011-01-05 深圳市联软科技有限公司 Generation method, system and server of equipment positioning relationship table
CN102437966A (en) * 2012-01-18 2012-05-02 神州数码网络(北京)有限公司 Layer-3 switching system and method based on layer-2 DHCP (Dynamic Host Configuration Protocol) SNOOPING
CN102546428A (en) * 2012-02-03 2012-07-04 神州数码网络(北京)有限公司 System and method for internet protocol version 6 (IPv6) message switching based on dynamic host configuration protocol for IPv6 (DHCPv6) interception
CN103701940A (en) * 2012-09-27 2014-04-02 中兴通讯股份有限公司 Address resolution protocol configuration method and device for network management system
CN104065554A (en) * 2014-06-30 2014-09-24 华为技术有限公司 Networking method and networking apparatus

Also Published As

Publication number Publication date
WO2016202023A1 (en) 2016-12-22
CN106330648A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US10103982B2 (en) System and method for automatic routing of dynamic host configuration protocol (DHCP) traffic
CN105515772B (en) Information processing method, network node, verification method and server
US8995360B2 (en) Techniques for prefix subnetting
CN101075962B (en) Method and apparatus for realizing DHCP repeater in two-layer network exchanger
US10103978B2 (en) Service processing method, device, and system
US9112764B2 (en) Techniques for assigning internet protocol version six network blocks in unknown networks
CN107666419B (en) Virtual broadband access method, controller and system
CN108566451B (en) Message processing method, access controller and network node
CN102202104A (en) Managing distributed address pools within network devices
CN101001264B (en) Method, device, network edge equipment and addressing server for L1VPN address distribution
CN101572692A (en) Method, system and equipment for IP address assignment
CN102571375B (en) Multicast forwarding method and device as well as network device
WO2018171396A1 (en) Data transmission method, device and system
CN102752413A (en) Method for selecting DHCP (dynamic host configuration protocol) server and network equipment
KR101786620B1 (en) Method, apparatus and computer program for subnetting of software defined network
JP7026788B2 (en) Methods, related devices, and systems for obtaining target transmission routes
CN108259633B (en) Method, system and device for realizing management message three-layer communication
CN106330648B (en) Routing information generation method and device
CN103141072B (en) IP address acquiring method and network access equipment
CN109803028A (en) method and device for configuring service flow
JP2010268145A (en) Communication device, and address distribution method
EP4250649A1 (en) Packet forwarding method and apparatus, and network system
CN110324435B (en) Network request processing method and system
CN113163276A (en) Method, device and system for issuing routing information
CN114928590B (en) IPv6 address configuration method and routing equipment

Legal Events

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