CN108011839A - The implementation method of policy tag based on IPv4 - Google Patents

The implementation method of policy tag based on IPv4 Download PDF

Info

Publication number
CN108011839A
CN108011839A CN201711353395.3A CN201711353395A CN108011839A CN 108011839 A CN108011839 A CN 108011839A CN 201711353395 A CN201711353395 A CN 201711353395A CN 108011839 A CN108011839 A CN 108011839A
Authority
CN
China
Prior art keywords
policy
policy tag
field
packet head
ipv4
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.)
Withdrawn
Application number
CN201711353395.3A
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201711353395.3A priority Critical patent/CN108011839A/en
Publication of CN108011839A publication Critical patent/CN108011839A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/325Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the network layer [OSI layer 3], e.g. X.25

Landscapes

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

Abstract

The invention discloses a kind of implementation method of the policy tag based on IPv4, it is used for representing policy tag whether is included in IP packet head by the indication field that the highest order reserved field of Flags fields in IP packet head is used as to policy tag, the policy tag uses Identification fields in IP packet head to be defined.Using technical solution of the present invention, IP forwardings control and policy control uncoupling are more reasonably managed network, and being capable of compatible existing equipment, it is not necessary to do the upgrading of whole net.

Description

The implementation method of policy tag based on IPv4
Technical field
The present invention relates to a kind of network communication method, the implementation method of more particularly to a kind of policy tag based on IPv4, Belong to technical field of the computer network.
Background technology
In the existing network architecture, the flow of IPv4 still dominates.In IP flows, the network equipment often will Control of both being done to flow:When forwarding control, second, policy control.Forwarding control is generally basede on IP address progress, and Policy control often based on different demands, does different deployment.
The network equipment does flow policy control and is generally basede on IP address or dscp field progress, since the route of IP has The characteristic of longest prefix match, it is possible to when doing strategy for IP address section, but carrying out policy control, often produce forwarding The situation that behavior is coupled with strategy interaction.For some specific IP address, certain a kind of strategy can only be often used.It is if right It carries out uncoupling, then needs to do single control strategy for each IP address, so as to cause the waste of tactful list item again; When being controlled based on DSCP (Differentiated Services Code Point, differentiated services code points) field, by In the field digit very little, the policing type that can be supported is less.And dscp field is chiefly used in the priority of queue at present, if Policy control is used further to, then can produce other coupled relation.
The prior art also discloses a kind of method, additionally inserts a tactful identification field in messages and does plan to flow Slightly control.But the expense of message transmissions can be caused to increase in this way, and cannot compatible existing network, it is necessary to additionally set It is standby to update hardware specially to identify the strategy identification field so that the cost of policy control is higher.
In the practical application of the prior art, IP address-based policy control is still relatively broad policy control side How method, solve forwarding and be coupled with strategy, be then urgent problem to be solved in network application.
The content of the invention
In view of the deficiencies of the prior art, it is an object of the invention to provide a kind of realization side of the policy tag based on IPv4 Method, by redefine it is IPv4 existing in Flags and Identification fields, implementation strategy control and forwarding control go The method of coupling.
To realize aforementioned invention purpose, the technical solution adopted by the present invention includes:
It is used to represent IP using the highest order reserved field of Flags fields in IP packet head as the indication field of policy tag Whether policy tag is included in heading;The policy tag uses Identification fields in IP packet head to be determined Justice.
Preferably, when the value of the indication field is 1, represent to include policy tag in IP packet head;The indication field Value be 0 when, represent IP packet head in do not include policy tag.
Preferably, Identification field definitions are burst information or policy tag in the IP packet head.
Preferably, when the indication field represents to include policy tag, Identification field definitions are marked for strategy Label, for policy control;When the indication field represents not including policy tag, Identification field definitions are burst Information, the burst for IP packet are handled.
Equipment preferably for that cannot identify the indication field, performs equipment original strategy protocol.
Preferably, when equipment is by identifying that the indication field learns that IP packet head includes policy tag, institute is extracted The policy field in policy tag is stated, makees corresponding policy control, and the equipment no longer supports IP layers of burst to handle;
When equipment is by identifying that the indication field learns that IP packet head does not include policy tag, the equipment supports IP The burst processing of layer.
Compared with prior art, advantages of the present invention includes:IP is forwarded into control and policy control uncoupling, more reasonably Network is managed, and being capable of compatible existing equipment, it is not necessary to do the upgrading of whole net, traditional scheme and the technology of the present invention side Case can coexist in same network.
Brief description of the drawings
Fig. 1 is that IPv4 label fields define schematic diagram;
Fig. 2 is Flags field definition schematic diagrames.
Embodiment
In view of deficiency of the prior art, inventor is able to propose the present invention's through studying for a long period of time and largely putting into practice Technical solution.The technical solution, its implementation process and principle etc. will be further explained as follows.
Technical solution proposed by the present invention is to forward the behavior uncoupling with strategy, and forward still with traditional IP Address mode, and policy control then uses a new field, so therebetween without the relation of any coupling, control is more Flexibly;Meanwhile present invention further contemplates that the problem of compatible conventional network equipment, it is not necessary to carry out unified rise to conventional network equipment Level, enabling identifying the equipment of the newer field can use the technical solution in the present invention to carry out policy control, and traditional sets It is standby then traditional policy control mode can be continuing with, so can compatible existing network deployment, realize that upgrading progressively is changed Generation, framework and deployment on existing net influence minimum.
Technical scheme is will be apparent from as follows, in the prior art such as Fig. 1 of the definition to IPv4 label fields institutes Show, its data structure show is as follows:
Version, 4 bit fields, it is indicated that currently used IP version.
IP HeaderLength (IHL), refer to datagram protocol head length, and presentation protocol head has the quantity of 32 word lengths, It is directed toward data origination, minimum value 5.
Type-of-Service (TOS), it is indicated that upper-layer protocol to handle the desired service quality of current data report, and Datagram is allocated according to importance information, these 8 bit fields are used to distributing priority, delay, handling capacity and reliable Property.
Total Length, the byte length of specified whole IP data packets, including data and protocol header, its maximum are 65,535 bytes.Typical host can receive the datagram of 576 bytes.
Identification, identification field, for identifying current data report, which is received by transmitting terminal distribution help End intensive data is called the score piece.
Flags, attribute field, is made of 3 bit fields, wherein lowest order (MF) control burst, and there are next burst to put For 1, otherwise set to 0 representative and terminate burst;Interposition (DF) points out whether data packet can carry out burst;Highest order for reserved field not Use, be worth for 0.
Fragment Offset, 13 bit fields, it is indicated that the relevant fragment data position of initiating terminal with source data report, branch Hold Target IP and suitably rebuild source data report.
Time-to-Live, is a kind of counter, subtracts 1 successively in each point value for abandoning datagram until being reduced to 0, this Sample ensures the endless loop procedure of data packet (i.e. TTL).
Protocol, it is indicated that after the completion of IP processing procedures, there is which kind of upper-layer protocol to receive and import data packet.
Header Checksum, assist in ensuring that the integrality of IP agreement head.Due to the change of some protocol header fields, such as Life cycle (Time to Live), this just needs that each point is recalculated and examined.
Source Address, source host IP address.
DestinationAddress, destination host IP address.
Options, Option Field, it is allowed to which IP supports various options, such as security.
Padding, fills field, 32 is supplied by adding 0 behind Optional Field, in order to ensure header length is 32 multiple.
Wherein, Identification fields are used to represent burst information, and the burst for IP packet is handled, and works as datagram Due to MTU (maximum transmission unit) of the length more than network during necessary burst, the value of this identification field is copied to institute In the identification field of some data report tablets.The value of identical identification field makes each data report tablet after burst finally can correctly weigh Dress up as original datagram.In practical applications, since the use of fragment message may bring some problems, such as can not To 4 layers of information are controlled, fragment data is easily lost, and the MTU of conventional network equipment is often bigger, so real It is less in border to carry out burst processing to IP packet.
Based on the actual application background of above-mentioned Identification fields, technical solution of the present invention is by redefining IP Identification fields carry out implementation strategy control in heading.First, by the reserved word of the Flags fields in IP packet head Section, i.e. highest order Bit0 field definitions are the indication field of policy tag.Data structure schematic diagram such as Fig. 2 institutes of Flags fields Show, as it was previously stated, in the original definition of Flag fields, DF indicate whether to allow burst, and MF indicate whether it is last Burst, and highest order is then defaulted as 0, as reserved field without using.In the preferred embodiment of the present invention, if indication field Bit0 It is worth for 1, then it represents that policy tag is included in IP packet head;If the value of indication field Bit0 is 0, then it represents that is not wrapped in IP packet head Containing policy tag.Further, when the value of Bit0 is 1, Identification fields are used to represent policy tag, described Identification field sizes are 16Bit, can represent 64K strategy;When the value of Bit0 is 0, Identification Field still represents burst information, and the burst for IP packet is handled.By above-mentioned definition procedure, IP fields and tactful word are realized Section uncoupling, so as to achieve the purpose that forwarding and strategy decouple.
In technical solution of the present invention, any change is not made to the structure of IP packet head, by Identification words The dual definition of section, and the values of Flag reserved fields is cleverly make use of to indicate whether Identification fields are used for plan Slightly apply, have that definition is simple, is easily achieved, and do not increase the excellent of the extra costs such as list item space consumption, special equipment identification Point.
For conventional network equipment, due to nonrecognition Flag reserved field itself, existing strategy protocol is still carried out;And Equipment for can recognize that Flag reserved fields, then known there are during policy tag by the worth of indication field, can incited somebody to action Policy field in Identification fields extracts, and is controlled accordingly according to different strategy executions.And know It is clipped to the burst processing that the equipment of policy tag then no longer supports IP layer message, unidentified when arrive policy tag, still support divides Piece processing.In this way, can compatible conventional network equipment, it is not necessary to unified upgrading is carried out to conventional network equipment, progressively replaces and is Can, framework and deployment on current network influence minimum.
Based on technical scheme, it can be achieved that forwarding and strategy interaction uncoupling, can for any IP address Realize flexible policy control, and can be very good to need forwarding entry number to be used in planning network equipment, and strategy Entry number, reaches preferably control management.
It should be appreciated that the technical concepts and features of above-described embodiment only to illustrate the invention, its object is to allow be familiar with this The personage of item technology can understand present disclosure and implement according to this, and it is not intended to limit the scope of the present invention.It is all The equivalent change or modification that Spirit Essence is made according to the present invention, should be covered by the protection scope of the present invention.

Claims (6)

  1. A kind of 1. implementation method of the policy tag based on IPv4, it is characterised in that the described method includes:By in IP packet head The highest order reserved field of Flags fields is as indication field, for representing whether include policy tag in IP packet head;It is described Policy tag uses Identification fields in IP packet head to be defined.
  2. 2. the implementation method of the policy tag according to claim 1 based on IPv4, it is characterised in that:The indication field Value be 1 when, represent IP packet head in include policy tag;When the value of the indication field is 0, represent not wrap in IP packet head Containing policy tag.
  3. 3. the implementation method of the policy tag according to claim 1 based on IPv4, it is characterised in that:The IP packet head Middle Identification field definitions are burst information or policy tag.
  4. 4. the implementation method of the policy tag according to claim 3 based on IPv4, it is characterised in that:The indication field When expression includes policy tag, Identification field definitions are policy tag, for policy control;The indication field When expression does not include policy tag, Identification field definitions are burst information, and the burst for IP packet is handled.
  5. 5. the implementation method of the policy tag as claimed in any of claims 1 to 4 based on IPv4, its feature exist In:Equipment for that cannot identify the indication field, performs equipment original strategy protocol.
  6. 6. the implementation method of the policy tag as claimed in any of claims 1 to 4 based on IPv4, its feature exist In:
    When equipment is by identifying that the indication field learns that IP packet head includes policy tag, extract in the policy tag Policy field, make corresponding policy control, and the equipment no longer supports IP layers of burst to handle;
    When equipment is by identifying that the indication field learns that IP packet head does not include policy tag, the equipment supports IP layers Burst processing.
CN201711353395.3A 2017-12-15 2017-12-15 The implementation method of policy tag based on IPv4 Withdrawn CN108011839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711353395.3A CN108011839A (en) 2017-12-15 2017-12-15 The implementation method of policy tag based on IPv4

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711353395.3A CN108011839A (en) 2017-12-15 2017-12-15 The implementation method of policy tag based on IPv4

Publications (1)

Publication Number Publication Date
CN108011839A true CN108011839A (en) 2018-05-08

Family

ID=62059417

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711353395.3A Withdrawn CN108011839A (en) 2017-12-15 2017-12-15 The implementation method of policy tag based on IPv4

Country Status (1)

Country Link
CN (1) CN108011839A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852239A (en) * 2005-10-12 2006-10-25 华为技术有限公司 Method for actualizing route strategy through boundary gateway
CN101854268A (en) * 2009-04-04 2010-10-06 华为技术有限公司 Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control
CN102571545A (en) * 2010-12-27 2012-07-11 华为技术有限公司 Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network
CN103532672A (en) * 2013-10-22 2014-01-22 芮雄丽 Processing method of disordered fragmentation messages in SDN and application
JP2016146516A (en) * 2015-02-06 2016-08-12 日本電信電話株式会社 Flow control system and flow control method
CN106506274A (en) * 2016-11-08 2017-03-15 东北大学秦皇岛分校 A kind of efficient single bag source tracing method of dynamic extending

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852239A (en) * 2005-10-12 2006-10-25 华为技术有限公司 Method for actualizing route strategy through boundary gateway
CN101854268A (en) * 2009-04-04 2010-10-06 华为技术有限公司 Method, device and system of IP (Internet Protocol) network performance measurement as well as method, device and system of IP network service quality control
CN102571545A (en) * 2010-12-27 2012-07-11 华为技术有限公司 Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network
CN103532672A (en) * 2013-10-22 2014-01-22 芮雄丽 Processing method of disordered fragmentation messages in SDN and application
JP2016146516A (en) * 2015-02-06 2016-08-12 日本電信電話株式会社 Flow control system and flow control method
CN106506274A (en) * 2016-11-08 2017-03-15 东北大学秦皇岛分校 A kind of efficient single bag source tracing method of dynamic extending

Similar Documents

Publication Publication Date Title
US9369398B2 (en) Method, device, and system to prioritize encapsulating packets in a plurality of logical network connections
CN105340217B (en) A kind of message processing method, apparatus and system
US10044628B2 (en) Methods and systems for receiving and transmitting packets based on priority levels
CN109379359A (en) The treating method and apparatus of SRv6 data packet
CN106464590A (en) Method and apparatus for obtaining path information
WO2016000513A1 (en) Method and device for updating processing manner of service flow packet
CN106375233B (en) Data transmission method and data transmission device
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN114095305A (en) BIER message forwarding method, equipment and system
CN110224934A (en) A kind of method and device carrying out Message processing using unified SR label stack
WO2017101815A1 (en) Message processing method, device and system
CN112437009B (en) SRv6 method, router, routing system and storage medium for end-to-end flow policy
CN105099919B (en) Message processing method and device
WO2021088813A1 (en) Packet encapsulating method and apparatus, and packet decapsulating method and apparatus
CN107370654B (en) Pseudo wire data message encapsulation and decapsulation methods and related devices
CN105939285A (en) Message forwarding method and device
US9686381B1 (en) Control word decapsulation in a hybrid BGP-VPLS network
WO2021088629A1 (en) Detnet data packet processing method and apparatus
CN103685032B (en) Message forwarding method and network address translation services device
CN112468396A (en) Method, device and system for programming host network performance requirements
CN104205729B (en) Method, device, and system for configuring device in network
CN101120554B (en) Method and nodes for aggregating data traffic through unicast messages over an access domain using service bindings
CN107277011B (en) Data classification method and device for terminal equipment
CN103297312A (en) MPLS VPN (Multi-Protocol Label Switching Virtual Private Network) access method and device
CN108011839A (en) The implementation method of policy tag based on IPv4

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180508