CN1481133A - Method for accessing server through wideband - Google Patents

Method for accessing server through wideband Download PDF

Info

Publication number
CN1481133A
CN1481133A CNA021368996A CN02136899A CN1481133A CN 1481133 A CN1481133 A CN 1481133A CN A021368996 A CNA021368996 A CN A021368996A CN 02136899 A CN02136899 A CN 02136899A CN 1481133 A CN1481133 A CN 1481133A
Authority
CN
China
Prior art keywords
bag
server
user
request
address
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.)
Pending
Application number
CNA021368996A
Other languages
Chinese (zh)
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.)
SHANGHAI SECOND RESEARCH INST ZHONGXING COMMUNICTAIONS Co Ltd OF SHENZHEN
Original Assignee
SHANGHAI SECOND RESEARCH INST ZHONGXING COMMUNICTAIONS Co Ltd OF SHENZHEN
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 SHANGHAI SECOND RESEARCH INST ZHONGXING COMMUNICTAIONS Co Ltd OF SHENZHEN filed Critical SHANGHAI SECOND RESEARCH INST ZHONGXING COMMUNICTAIONS Co Ltd OF SHENZHEN
Priority to CNA021368996A priority Critical patent/CN1481133A/en
Publication of CN1481133A publication Critical patent/CN1481133A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention includes following steps: (1) setting message format of dynamic host configuration protocol (DHCP); (2) client of DHCP broadcasts a discovered packet to server. With request packet sent from client being received, the server responds a provider packet; (3) client selects a provider packet, and sends a request packet to a selected server to ask sever to allocate address; (4) with request packet being received, the server validates validity of user's request, and responds a acknowledgement packet to the user; (5) the user receives the acknowledgement packet, allocating an address is successful. Comparing with prior art, the invention solves shortcoming in controllability to users, and guarantees that access equipment fully monitors user's requesting and releasing address procedure.

Description

A kind of method of BAS Broadband Access Server
Technical field
The invention belongs to the mechanics of communication class, relate in particular to the implementation method of dynamic host configuring protocol agent in the BAS Broadband Access Server.
Background technology
At present, along with the development of broadband network, the user sharply increases and disperses.Telecom operators more and more need to set up a user management center of concentrating relatively and come the user is managed concentratedly.Thus, wideband network access server arises at the historic moment.Wideband network access server is different from general router, and one of its topmost characteristics are exactly the complete controllability to the user.When adopting IP (internet network agreement) to insert, for making things convenient for domestic consumer's access broadband network information, the minimizing user side is loaded down with trivial details, the complicated parameter configuration, simplify the process of user access network, BAS Broadband Access Server all can adopt DHCP Relay (DHCP forwarding) mode, unified DHCP Server (Dynamic Host Configuration Protocol server) by operator is network parameters such as user's distributing IP address, thereby realizes user's centralized management.DHCP Relay realizes existing RFC standard, if but according to the implementation of this standard, in some cases the user ask to distribute the address and discharge processes such as address can be transparent invisible to BAS Broadband Access Server, make BAS Broadband Access Server lose controllability to these users.
Summary of the invention
The method that the purpose of this invention is to provide a kind of BAS Broadband Access Server solves an above-mentioned difficult problem, asks to distribute the address and discharges in the processes such as address transparent requirement to BAS Broadband Access Server to satisfy the user.
The object of the present invention is achieved like this: a kind of method of BAS Broadband Access Server comprises the following steps:
1, the message format of DHCP is set;
2, find bag by the dhcp client machine to one of server broadcast, server can respond one bag is provided after receiving the request package that client computer sends;
3, client computer is provided by the bag that provides of a server then, sends a request package to the server of selecting, and request server distributes the address;
4, server is received request package, and the checking user asks correctness, responds and gives the user affirmation bag;
5, the user receives and confirms bag, the address assignment success.
Owing to adopted above technical scheme, the present invention has guaranteed the user, especially the broadband access equipment of garden net one-level, solve IP and inserted user DHCP (DHCP) shortcoming that broadband access equipment existed user's controllability aspect when mode was distributed the address, guaranteed the fully monitoring of access device, and a kind of user is provided online testing mechanism processes such as station address request, releases.
Description of drawings
Fig. 1 is that a kind of DHCP among the present invention is transmitted the handling process schematic diagram;
Fig. 2 is the address allocation procedure schematic diagram that a kind of DHCP among the present invention is transmitted;
Fig. 3 is the address removal process schematic diagram that a kind of DHCP among the present invention is transmitted.
Embodiment
Below in conjunction with accompanying drawing enforcement of the present invention is described further:
The implementation method of dynamic host configuring protocol agent in the BAS Broadband Access Server of the present invention mainly contains following content and step:
1, the DHCP message format is set:
Each Field Definition is as follows in the table:
Op: type of message
Htype: hardware address type
Hlen: hardware address length
Hops: next jumping
Xid: transmission unique identifying number
Sees: time
Flags: transmission mark
Ciaddr: client address
Yiaddr: the address of distributing to client computer
Siaddr: server address
Giaddr: gateway address
Chaddr: Client Hardware address
Sname: client name
File: filename
Options: option parameter
2, working method:
DHCP is based on C/S (client/server) pattern, and the initial address assignment of client computer can be divided into two stages.
At first, the DHCP client computer is to DhcpDiscover of server broadcast (Dhcp discovery) bag, and server can respond an offer (providing) bag after receiving the request package that client computer sends.
Secondly, the Offer (providing) of a server is provided client computer, sends a request (request) bag to the server of selecting, and request server distributes the address.
Then, server is received the request bag, and the checking user asks correctness, responds and gives an ack of user (affirmation) bag.
At last, the user receives the ack bag, the address assignment success.
In actual motion, after BAS Broadband Access Server is received the Dhcp request package that client computer sends,, add in user's request package according to user profile (circuit information that the user connected etc.) structure agent option.And to fill in the giaddr field be the address that receives the IP port of user's request package, is transmitted to the Dhcp server of appointment then.
Otherwise, after broadband server is received the Dhcp respond packet that server sends, check datagram earlier, extract proxy parameter information, check whether be the response of a validated user request package, if not then abandon this message.If the siaddr field of then revising in the data message is giaddr address in the datagram, the giaddr field is set to 0, revising T1 (leasing update time) field is user online detection time of the interval of BAS Broadband Access Server configuration, agent option parameter in the deletion message, utilize the proxy parameter information that extracts previously at last, determine the IP port that the user connects, from then on port is transmitted datagram (clean culture or broadcasting).
In Fig. 1, it is as follows that the DHCP in the concrete course of work of the present invention is transmitted handling process:
1, receive DHCP bag, obtain IP port numbers and VCC INDX after, judge whether request package.
2, judge whether request package:
1) if, then do to add AGENT OPTIONS, revise datagram, the judgement that operation is whether successful;
Do to add AGENT OPTIONS, revise datagram, the judgement whether operation is successful:
If A., then transmit this DHCP bag, and finish;
B. if not, then transmit this DHCP bag, and finish;
2) if not, then remove out agent option in the bag, revise datagram, acquisition cuicuit information, the judgement whether operation is successful;
Remove out agent option in the bag, revise datagram, acquisition cuicuit information, the judgement whether operation is successful;
If A., then transmit this DHCP bag, and finish;
B. if not, then transmit this DHCP bag, and finish;
3, end operation.
In Fig. 2, Fig. 3, user's dhcp address of the present invention request, distribution, dispose procedure comprise three kinds of situations.
1, the user is request address first:
1) at this moment, the DHCP request package that the user sends (Discover finds bag) is the bag of purpose IP address broadcasting, and broadband access equipment receives and submit to DHCP Agent (dynamic host configuring protocol agent) to handle.Agent (agency) extraction equipment is received the information of the interface of bag, be recorded in the local data base, and structure DHCP Relay option parameter, this parameter is added in the DHCP request data package of receiving, the IP address of the interface that receives message is filled up in giaddr (gateway address) field of message, transmits the report for work DHCP Server (Dynamic Host Configuration Protocol server) of appointment of these DHCP data then.
2) DHCP Server receives request, responds respond packet (Offer supplies bag), and purpose IP address is for receiving giaddr in the request package.
3) respond packet is received by broadband access equipment, submits to DHCP Agent (dynamic host configuring protocol agent) to handle.Agent analysis agent parameter options, therefrom obtain the interface message of this datagram to request package that should respond packet, if not then the interface message of being inquired about the corresponding requests bag of local record, remove the agent option in the datagram, ServerID (server identification) field is the IP address in the interface message that obtains in the modification datagram, revising T1 (update time) field is the detection user line duration interval of BAS Broadband Access Server configuration, transmit the report for work interface of appointment in the interface message of these data at last, purpose IP address is broadcasting.
4) user sends Request (request) bag again, purpose IP address is broadcasting, broadband access equipment receives bag and submits to DHCP Agent to handle, the Server id field that Agent revises in the message is the IP address of the outside real DHCP Server of appointment, revising the T1 field is original value, and other operation is same as 1).
5) DHCP Server receives Request (request) bag, response Ack (affirmation) bag, destination address is with 2).
6) broadband access equipment is received the Ack bag, and Agent handles with 3).(be one here and comparatively simply handle to also have the processing mode of a more complicated, expansion narration in the back.)
So far the complete procedure of user's request address finishes.The user obtains parameters such as DHCP Server IP address allocated, but the DHCP Server address of user record is the IP address of the broadband access equipment interface that the user connected.Also write down user's information on the broadband access equipment.
2, time, request address are once more leased in user's extend request address:
1) starts behind user's address acquisition regularly, when the T1 time arrives, send the Request bag, extend request is leased the time, purpose IP address is the IP address (the IP address of the broadband access equipment interface that the actual user of being connected) of the DHCP Server of local record, equipment receives the Request bag, and Agent handles with 4); After receiving the Ack bag of DHCP Server, handle) with 3 to this Request bag.(also be one herein and comparatively simply handle, will narrate the processing mode of a complexity at the expansion of back.)
2) user (starts shooting, discharges application again behind the address) during request address once more again behind the normal shutdown, send the Request bag, destination address is the IP address (the IP address of the broadband access equipment interface that the actual user of being connected) of the DHCP Server of local record, equipment receives the Request bag, and Agent handles with 4); After receiving the Ack bag of DHCP Server, handle) with 3 to this Request bag.
3, the online detection of user:
Because the T1 field of rewriting in the dhcp response bag is user online detection time of the interval of BAS Broadband Access Server, if T1 do not receive the Request bag extend request that the user sends and lease the time in the time, then can think user's go offline (abnormal case such as abnormal shutdown or deadlock).
Four, expansion:
Because the T1 time is modified to a short period, make the user understand frequent transmission extend request and lease the time bag, if simple the forwarding wrapped DHCP Server, can take the network bandwidth, over-burden to cause DHCP Server.So in process user first in the process of request address, note the Ack bag (comprising the network parameters such as T1 time that server returns) that DHCP Server returns, ought receive the Request bag that the user T1 time then sends like this, Agent judges whether T1 that server returns, and time is up, is then to transmit this to wrap DHCP Server; Otherwise by Agent according to the phase of record should the user the Ack bag, construct an Ack and wraps and send to the user.Can avoid the network bandwidth occupied thus, alleviate the burden of DHCP Server.
Five, the user discharges the address:
The user sends Release (release) bag, destination address is the IP address (the IP address of the broadband access equipment interface that the actual user of being connected) of the DHCP Server of local record, equipment receives the Release bag, the Server id field that Agent revises in the message is the IP address of the outside real DHCP Server of appointment, and other operation is with 1).
In sum, BAS Broadband Access Server of the present invention has dual role in whole process, and concerning user side, it is a Dhcp server; Concerning real Dhcp server, it is again a relay (forwarding).According to this working method, no matter the DHCP request message that user side sends is the unicast message that broadcasting packet or destination address point to Dynamic Host Configuration Protocol server, and BAS Broadband Access Server can both receive, thereby can control user's address allocation procedure, guarantee monitoring fully user's access process.
In addition, station address is set, and to lease update time be that BAS Broadband Access Server detects user's line duration, so subscriber's main station will send request address to BAS Broadband Access Server in every T1 time interval and lease time lengthening message, can know the online situation of subscriber's main station by this message BAS Broadband Access Server.

Claims (4)

1. the method for a BAS Broadband Access Server comprises the following steps:
1) message format of DHCP is set;
2) find bag by the dhcp client machine to one of server broadcast, server can respond one bag is provided after receiving the request package that client computer sends;
3) client computer is provided by the bag that provides of a server then, sends a request package to the server of selecting, and request server distributes the address;
4) server is received request package, and the checking user asks correctness, responds and gives the user affirmation bag;
5) user receives and confirms bag, the address assignment success.
2. the method for a kind of BAS Broadband Access Server according to claim 1 is characterized in that, the 2nd) also comprise the following steps: in the step
1)) user is first during request address:
A. receive the request package of the DHCP that the user sends by broadband access equipment, and submit to dynamic host configuring protocol agent to handle;
B. after Dynamic Host Configuration Protocol server is received request, respond respond packet;
C. after broadband access equipment receives respond packet,, carry out the option of analysis agent parameter, obtain the interface message of response request bag by the agency to the dynamic host configuring protocol agent of submitting to;
D. send request package again by the user, after broadband access equipment is received bag, submit dynamic host configuring protocol agent to, carry out the processing of agents modify message;
E. Dynamic Host Configuration Protocol server is received request package, the response confirmation bag;
F. broadband access equipment is received and is confirmed bag.
2)) user's extend request address lease the time, once more during request address:
A. at first, start behind user's address acquisition regularly, send request package, extend request is leased the time;
B. then, after broadband access equipment is received bag, submit to dynamic host configuring protocol agent to do the processing of agents modify message;
C. after, Dynamic Host Configuration Protocol server is received request package, the response confirmation bag;
3)) user is once more during request address:
A. at first, send request package;
B. then, after broadband access equipment is received bag, submit dynamic host configuring protocol agent to, carry out the processing of agents modify message;
C. after, Dynamic Host Configuration Protocol server is received request package, the response confirmation bag.
3. the method for a kind of BAS Broadband Access Server according to claim 1 is characterized in that, the 3rd) also comprise the following steps: in the step
1)) first during request address, note the affirmation bag that Dynamic Host Configuration Protocol server returns, when receiving the request package that the user sends, the agency judges whether that server returns that time is up,
2)) if, then transmit this and wrap Dynamic Host Configuration Protocol server,
3)) if not,, construct one and confirm that bag sends to the user then by the affirmation bag of agency according to this user.
4. the method for a kind of BAS Broadband Access Server according to claim 1 is characterized in that, the 4th) also comprise the following steps: in the step
1)) at first, the user sends and discharges bag;
2)) then, equipment receives and discharges bag, by agency's message of making amendment.
CNA021368996A 2002-09-05 2002-09-05 Method for accessing server through wideband Pending CN1481133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA021368996A CN1481133A (en) 2002-09-05 2002-09-05 Method for accessing server through wideband

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA021368996A CN1481133A (en) 2002-09-05 2002-09-05 Method for accessing server through wideband

Publications (1)

Publication Number Publication Date
CN1481133A true CN1481133A (en) 2004-03-10

Family

ID=34146734

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA021368996A Pending CN1481133A (en) 2002-09-05 2002-09-05 Method for accessing server through wideband

Country Status (1)

Country Link
CN (1) CN1481133A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945007A (en) * 2010-09-03 2011-01-12 浙江鸿程计算机系统有限公司 Method for monitoring dynamic IP access equipment
CN101184051B (en) * 2007-12-18 2011-05-11 中兴通讯股份有限公司 Broadband access server and operation method thereof
CN101510902B (en) * 2009-03-25 2011-12-21 杭州华三通信技术有限公司 Method, system and equipment for preventing wireless client terminal from disconnection during internet process

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184051B (en) * 2007-12-18 2011-05-11 中兴通讯股份有限公司 Broadband access server and operation method thereof
CN101510902B (en) * 2009-03-25 2011-12-21 杭州华三通信技术有限公司 Method, system and equipment for preventing wireless client terminal from disconnection during internet process
CN101945007A (en) * 2010-09-03 2011-01-12 浙江鸿程计算机系统有限公司 Method for monitoring dynamic IP access equipment
CN101945007B (en) * 2010-09-03 2012-09-05 浙江鸿程计算机系统有限公司 Method for monitoring dynamic IP access equipment

Similar Documents

Publication Publication Date Title
CN1123154C (en) System, device and method for routine selection dhcp configuration agreement packets
JP5663549B2 (en) Method, apparatus and system for assigning public IP addresses
US6678732B1 (en) Dynamic host configuration protocol server for allocating IP addresses to a plurality of clients
CN101075944B (en) Method and system for allocating IP address
DE69928460T2 (en) IP mobile communication scheme with dynamic address allocation protocol
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
US7788345B1 (en) Resource allocation and reclamation for on-demand address pools
CN1549546A (en) Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN1744612A (en) DHCP address allocation method
CN101068208A (en) Method, system and proxy equipment for dynamic distributing network address
CN101159758B (en) Classification associated dynamic host machine configuring protocol option distribution method and device
CN1404276A (en) Apparatus and method for distributing interconnected network protocol address to network interface card
CN1871818A (en) Formtext handover method in dhcpv4, handover apparatus and medium having instructions for performing the method
US8195775B2 (en) Enhanced method and apparatus for reducing congestion in DHCP network system
CN1845554A (en) Control method for dynamically distributing IP address in 3G network
CN1926840A (en) Address and port number abstraction when setting up a connection between at least two computational devices
CN101227356A (en) Equipment, system and method for network access based on dynamic state host computer collocation protocol
TW200428818A (en) Method for dynamically allocating IP addresses for hosts on a network
CN106878481B (en) Method, device and system for acquiring Internet Protocol (IP) address
CN1901474A (en) IP address distributing method and device
CN1753411A (en) Improved method for assigning network identifiers using interface identifiers
Droms RFC1541: Dynamic Host Configuration Protocol
CN1628444A (en) Method and apparatus for dynamic host configuration protocol lease time determination
CN1553350A (en) Dynamic master configurating method
CN1481133A (en) Method for accessing server through wideband

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent for invention or patent application
COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHENG CITY ZTE CO., LTD. SHANGHAI SECOND INSTITUTE TO: ZTE CO., LTD.

CP02 Change in the address of a patent holder

Address after: Law of ZTE mansion in Guangdong city of Shenzhen province Nanshan District high tech Industrial Park, Cozi Road

Applicant after: ZTE Corp.

Address before: No. 396, Shanghai, Guilin Road

Applicant before: Shanghai Second Research Inst., Zhongxing Communictaions Co., Ltd., of Shenzhen

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication