Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses

A technology of virtual local area network and network protocol, applied in the direction of network interconnection, data exchange network, digital transmission system, etc., can solve the problems of DHCP negotiation failure, cumbersome, error-prone, etc., and achieve the effect of improving the efficiency and accuracy of network configuration

Active Publication Date: 2010-11-10
ZTE CORP
View PDF4 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a kind of method and client for obtaining VLAN ID and IP address, to solve the related technology, if network transmission requires the message that DHCP cl

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
  • Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
  • Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] Example 1

[0029] In this embodiment, a method for acquiring VLAN ID and IP address is provided. figure 2 is a flow chart of a method for obtaining a VLAN ID and an IP address according to an embodiment of the present invention, such as figure 2 shown, including:

[0030] Step S202, the client in the VLAN determines that the packet sent by the client needs to carry the VLAN ID of the virtual local area network identifier.

[0031] Step S204, the client sends a plurality of DHCP DISCOVER messages carrying VLAN IDs to the DHCP server in the VLAN, wherein each DHCP DISCOVER message corresponds to a VLAN ID.

[0032] Step S206, within the first predetermined time, if the client receives a DHCP response message corresponding to the DHCP DISCOVER message from the server, the client obtains the VLAN ID and IP address according to the DHCP response message.

[0033] Through the above steps, the VLAN ID and IP address are obtained according to the DHCP response message, wh...

Example Embodiment

[0040] Embodiment 2

[0041] In this embodiment, the acquisition of the VLAN ID and the IP address by the client is implemented.

[0042] image 3 It is a flow chart of the method for obtaining VLAN ID and IP address according to the preferred embodiment of the present invention, such as image 3 shown, including:

[0043] Step S302, construct a DHCP DISCOVER message without VLAN tag, carry option 60 in the option request list, and send the message through the network interface.

[0044] Step S304, set a timer to enter the waiting state; if the DHCP OFFER message is received within the waiting 60s, and the DHCP OFFER message has passed the check of option 60, the device constructs a DHCP REQUEST packet and sends it out through the network interface, If the DHCP ACK message is received, and the content of the message is correct, the device has completed the correct DHCP message exchange process, and the obtained IP address is valid, and goes to step S306; if the judgment res...

Example Embodiment

[0054] Embodiment 3

[0055] This embodiment synthesizes the first embodiment and the preferred implementations therein, and provides a client in this embodiment. Figure 4 is a structural block diagram of a client according to an embodiment of the present invention, such as Figure 4 shown, the client includes:

[0056] The determining module 42 is used to determine that the message sent by the client needs to carry the VLAN ID of the virtual local area network; the sending module 44 is connected to the determining module 42, and when the determining module 42 determines that the message sent by the client needs to carry the VLAN ID of the virtual local area network , for sending a plurality of dynamic host allocation protocol DHCP DISCOVER messages that carry VLAN IDs to the DHCP server in the VLAN, wherein each DHCP DISCOVER message corresponds to a VLAN ID; the acquisition module 46 is connected to the sending module 44, for Within the first predetermined time, when the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses. The method comprises the following steps of: determining that a message sent by a client needs to carry a VLAN ID by the client in the VLAN; sending a plurality of dynamic host configuration protocol (DHCP) DISCOVER messages carrying the VLAN ID to a DHCP server in the VLAN by the client, wherein each DHCP DISCOVER message corresponds to a VLAN ID; and within a first preset time, if the client receives DHCP response messages corresponding to the DHCP DISCOVER messages from the server, acquiring the VLAN IDs and IP addresses. Through the invention, the network configuration efficiency and accuracy are improved.

Description

technical field [0001] The present invention relates to the field of communications, and in particular, to a method and a client for obtaining a virtual local area network (Virtual Local Area Network, referred to as VLAN) identifier and an Internet Protocol (Internet Protocol, referred to as IP) address. Background technique [0002] A virtual local area network is a technology that divides a physical network into multiple logical local area networks (Local Area Networks, referred to as LANs for short), and each VLAN has a virtual local area network identifier (VLAN ID). Using VLAN technology, network managers can logically divide users in the same physical local area network into different broadcast domains (each broadcast domain is a VLAN) according to actual application needs, so that users with the same needs are in the same broadcast domain and have different needs. users are in different broadcast domains. Each VLAN is logically like a separate local area network and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/12H04L12/56H04L12/46
Inventor 柳锋廖俊锋吴水华邓长兵赵金明常伟胡晓娇
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products